rest

package
v0.0.0-...-eb36ede Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RestURL    = "https://www.okx.com"
	RestURLAWS = "https://aws.okx.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Addr           string `json:"addr"`
	ApiKey         string `json:"api_key"`
	SecretKey      string `json:"secret_key"`
	APIKeyPassword string `json:"passphrase"`
	DebugMode      bool   `json:"debug_mode"`
}

type OKXWS

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

func New

func New(config *Configuration) *OKXWS

func (*OKXWS) GetBalance

func (ex *OKXWS) GetBalance() interface{}

type WalletBalance

type WalletBalance struct {
	Code string              `json:"code"`
	Data []dataWalletBalance `json:"data"`
	Msg  string              `json:"msg"`
}

https://www.okx.com/docs-v5/en/#rest-api-account-get-balance

func OKXToWalletBalance

func OKXToWalletBalance(data interface{}) WalletBalance

Jump to

Keyboard shortcuts

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