Documentation
¶
Index ¶
- 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 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
Click to show internal directories.
Click to hide internal directories.