orderwebsocketclient

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 SubscribeOrderWebSocketV2Client

type SubscribeOrderWebSocketV2Client struct {
	websocketclientbase.WebSocketV2ClientBase
}

Responsible to handle order subscription from WebSocket This need authentication version 2

func (*SubscribeOrderWebSocketV2Client) Init

Initializer

func (*SubscribeOrderWebSocketV2Client) SetHandler

Set callback handler

func (*SubscribeOrderWebSocketV2Client) Subscribe

func (p *SubscribeOrderWebSocketV2Client) Subscribe(symbol string, clientId string)

Subscribe all order updates of the current account

func (*SubscribeOrderWebSocketV2Client) UnSubscribe

func (p *SubscribeOrderWebSocketV2Client) UnSubscribe(symbol string, clientId string)

Unsubscribe order updates

type SubscribeTradeClearWebSocketV2Client

type SubscribeTradeClearWebSocketV2Client struct {
	websocketclientbase.WebSocketV2ClientBase
}

Responsible to handle trade clear from WebSocket This need authentication version 2

func (*SubscribeTradeClearWebSocketV2Client) Init

Initializer

func (*SubscribeTradeClearWebSocketV2Client) SetHandler

Set callback handler

func (*SubscribeTradeClearWebSocketV2Client) Subscribe

func (p *SubscribeTradeClearWebSocketV2Client) Subscribe(symbol string, clientId string)

Subscribe trade details including transaction fee and transaction fee deduction etc. It only updates when transaction occurs.

func (*SubscribeTradeClearWebSocketV2Client) UnSubscribe

func (p *SubscribeTradeClearWebSocketV2Client) UnSubscribe(symbol string, clientId string)

Unsubscribe trade update

Jump to

Keyboard shortcuts

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