bitget

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 7 Imported by: 0

README

bitget-golang-sdk-api

Custom code from a fork of Bitget Open API V3 SDK https://github.com/BitgetLimited/v3-bitget-api-sdk

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client rest client

func NewClient

func NewClient() *Client

func (*Client) GetBrokerService

func (c *Client) GetBrokerService() *broker.BrokerAccountClient

GetBrokerService broker

func (*Client) GetMixAccountService

func (c *Client) GetMixAccountService() *mix.MixAccountClient

GetMixAccountService mix

func (*Client) GetMixMarketService

func (c *Client) GetMixMarketService() *mix.MarketClient

func (*Client) GetMixOrderService

func (c *Client) GetMixOrderService() *mix.MixOrderClient

func (*Client) GetMixPlanService

func (c *Client) GetMixPlanService() *mix.MixPlanClient

func (*Client) GetMixPositionService

func (c *Client) GetMixPositionService() *mix.MixPositionClient

func (*Client) GetMixTraceService

func (c *Client) GetMixTraceService() *mix.MixTraceClient

func (*Client) GetSpotAccountService

func (c *Client) GetSpotAccountService() *spot.SpotAccountClient

GetSpotAccountService spot

func (*Client) GetSpotMarketService

func (c *Client) GetSpotMarketService() *spot.SpotMarketClient

func (*Client) GetSpotOrderService

func (c *Client) GetSpotOrderService() *spot.SpotOrderClient

func (*Client) GetSpotPublicService

func (c *Client) GetSpotPublicService() *spot.PublicClient

func (*Client) SetCredentials

func (c *Client) SetCredentials(creds *config.ApiCreds) *Client

func (*Client) SetHttpClient

func (c *Client) SetHttpClient(client *http.Client) *Client

type WsClient

type WsClient struct {
	// contains filtered or unexported fields
}

WsClient ws

func NewWsClient

func NewWsClient() *WsClient

NewWsClient ...

func (*WsClient) Close

func (c *WsClient) Close() error

Close websocket connection

func (*WsClient) InitPrivate

func (c *WsClient) InitPrivate(
	listener common.OnReceive,
	errorListener common.OnError,
) error

InitPrivate initial private ws API (wss://ws.bitget.com/v2/ws/private)

func (*WsClient) InitPublic

func (c *WsClient) InitPublic(
	errorListener common.OnError,
) (*ws.PublicClient, error)

InitPublic initial public ws API (wss://ws.bitget.com/v2/ws/public)

func (*WsClient) Ping

func (c *WsClient) Ping() error

Ping ping-pong

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL