rest

package
v0.0.0-...-cf1c484 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: 2

Documentation

Index

Constants

View Source
const (
	RestURL = "https://api.gateio.ws"
)
View Source
const (
	WalletDepositsrecords = "/api/v4/wallet/deposits"
)

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 GateRest

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

func New

func New(config *Configuration) *GateRest

func (*GateRest) GetBalance

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

type WalletDeposits

type WalletDeposits []struct {
	ID        string `json:"id"`
	Timestamp string `json:"timestamp"`
	Currency  string `json:"currency"`
	Address   string `json:"address"`
	Txid      string `json:"txid"`
	Amount    string `json:"amount"`
	Memo      string `json:"memo"`
	Status    string `json:"status"`
	Chain     string `json:"chain"`
}

https://www.gate.io/docs/developers/apiv4/#retrieve-deposit-records

func GateToWalletBalance

func GateToWalletBalance(data interface{}) WalletDeposits

Jump to

Keyboard shortcuts

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