Documentation ¶
Index ¶
- type RequestAccountWebSocketV1Client
- func (p *RequestAccountWebSocketV1Client) Init(accessKey string, secretKey string, host string) *RequestAccountWebSocketV1Client
- func (p *RequestAccountWebSocketV1Client) Request(clientId string) error
- func (p *RequestAccountWebSocketV1Client) SetHandler(authHandler websocketclientbase.AuthenticationV1ResponseHandler, ...)
- type SubscribeAccountWebSocketV1Client
- func (p *SubscribeAccountWebSocketV1Client) Init(accessKey string, secretKey string, host string) *SubscribeAccountWebSocketV1Client
- func (p *SubscribeAccountWebSocketV1Client) SetHandler(authHandler websocketclientbase.AuthenticationV1ResponseHandler, ...)
- func (p *SubscribeAccountWebSocketV1Client) Subscribe(mode string, clientId string) error
- func (p *SubscribeAccountWebSocketV1Client) UnSubscribe(mode string, clientId string) error
- type SubscribeAccountWebSocketV2Client
- func (p *SubscribeAccountWebSocketV2Client) Init(accessKey string, secretKey string, host string) *SubscribeAccountWebSocketV2Client
- func (p *SubscribeAccountWebSocketV2Client) SetHandler(authHandler websocketclientbase.AuthenticationV2ResponseHandler, ...)
- func (p *SubscribeAccountWebSocketV2Client) Subscribe(mode string, clientId string)
- func (p *SubscribeAccountWebSocketV2Client) UnSubscribe(mode string, clientId string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestAccountWebSocketV1Client ¶
type RequestAccountWebSocketV1Client struct {
websocketclientbase.WebSocketV1ClientBase
}
Responsible to handle account asset request from WebSocket This need authentication version 1
func (*RequestAccountWebSocketV1Client) Init ¶
func (p *RequestAccountWebSocketV1Client) Init(accessKey string, secretKey string, host string) *RequestAccountWebSocketV1Client
Initializer
func (*RequestAccountWebSocketV1Client) Request ¶
func (p *RequestAccountWebSocketV1Client) Request(clientId string) error
Request all account data of the current user.
func (*RequestAccountWebSocketV1Client) SetHandler ¶
func (p *RequestAccountWebSocketV1Client) SetHandler( authHandler websocketclientbase.AuthenticationV1ResponseHandler, responseHandler websocketclientbase.ResponseHandler)
Set callback handler
type SubscribeAccountWebSocketV1Client ¶
type SubscribeAccountWebSocketV1Client struct {
websocketclientbase.WebSocketV1ClientBase
}
Responsible to handle account asset subscription from WebSocket This need authentication version 1
func (*SubscribeAccountWebSocketV1Client) Init ¶
func (p *SubscribeAccountWebSocketV1Client) Init(accessKey string, secretKey string, host string) *SubscribeAccountWebSocketV1Client
Initializer
func (*SubscribeAccountWebSocketV1Client) SetHandler ¶
func (p *SubscribeAccountWebSocketV1Client) SetHandler( authHandler websocketclientbase.AuthenticationV1ResponseHandler, responseHandler websocketclientbase.ResponseHandler)
Set callback handler
func (*SubscribeAccountWebSocketV1Client) Subscribe ¶
func (p *SubscribeAccountWebSocketV1Client) Subscribe(mode string, clientId string) error
Subscribe all balance updates of the current account 1 to include frozen balance 0 to not
func (*SubscribeAccountWebSocketV1Client) UnSubscribe ¶
func (p *SubscribeAccountWebSocketV1Client) UnSubscribe(mode string, clientId string) error
Unsubscribe balance updates
type SubscribeAccountWebSocketV2Client ¶
type SubscribeAccountWebSocketV2Client struct {
websocketclientbase.WebSocketV2ClientBase
}
Responsible to handle account asset request from WebSocket This need authentication version 2
func (*SubscribeAccountWebSocketV2Client) Init ¶
func (p *SubscribeAccountWebSocketV2Client) Init(accessKey string, secretKey string, host string) *SubscribeAccountWebSocketV2Client
Initializer
func (*SubscribeAccountWebSocketV2Client) SetHandler ¶
func (p *SubscribeAccountWebSocketV2Client) SetHandler( authHandler websocketclientbase.AuthenticationV2ResponseHandler, responseHandler websocketclientbase.ResponseHandler)
Set callback handler
func (*SubscribeAccountWebSocketV2Client) Subscribe ¶
func (p *SubscribeAccountWebSocketV2Client) Subscribe(mode string, clientId string)
Subscribe all balance updates of the current account 0: Only update when account balance changed 1: Update when either account balance changed or available balance changed
func (*SubscribeAccountWebSocketV2Client) UnSubscribe ¶
func (p *SubscribeAccountWebSocketV2Client) UnSubscribe(mode string, clientId string)
Unsubscribe balance updates