accountwebsocketclient

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

Initializer

func (*RequestAccountWebSocketV1Client) Request

func (p *RequestAccountWebSocketV1Client) Request(clientId string) error

Request all account data of the current user.

func (*RequestAccountWebSocketV1Client) SetHandler

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

Initializer

func (*SubscribeAccountWebSocketV1Client) SetHandler

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

Initializer

func (*SubscribeAccountWebSocketV2Client) SetHandler

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

Jump to

Keyboard shortcuts

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