accountwebsocketclient

package
v0.0.0-...-2ae9e21 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 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 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