localexchange

package
v1.5.22 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LE

type LE struct {
	// contains filtered or unexported fields
}

type LocalExchangeWs

type LocalExchangeWs struct {
	*WsBuilder

	WsConn *WsConn
	// contains filtered or unexported fields
}

func NewLocalExchangeWs

func NewLocalExchangeWs(base *LE, handle func(channel string, instId string, data json.RawMessage) error) *LocalExchangeWs

func (*LocalExchangeWs) ConnectWs

func (okV3Ws *LocalExchangeWs) ConnectWs()

func (*LocalExchangeWs) Subscribe

func (okV3Ws *LocalExchangeWs) Subscribe(sub map[string]interface{}) error

type OKExLogin

type OKExLogin struct {
	OP   string         `json:"op"`
	Args []OkexLoginArg `json:"args"`
}

type OkexLoginArg

type OkexLoginArg struct {
	APIKey     string `json:"apiKey"`
	Passphrase string `json:"passphrase"`
	Timestamp  string `json:"timestamp"`
	Sign       string `json:"sign"`
}

Jump to

Keyboard shortcuts

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