rest

package
v0.0.0-...-f1b18c9 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: 3

Documentation

Index

Constants

View Source
const (
	RestEndpointURL = "https://ftx.com/api"
)

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"`
	DebugMode bool   `json:"debug_mode"`
}

type FTXWS

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

func New

func New(config *Configuration) *FTXWS

func (*FTXWS) GetBalance

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

type WalletBalance

type WalletBalance struct {
	Success bool                  `json:"success"`
	Result  []resultWalletBalance `json:"result"`
}

https://docs.ftx.com/#get-balances

func FTXToWalletBalance

func FTXToWalletBalance(data interface{}) (WalletBalance, bool)

Jump to

Keyboard shortcuts

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