spot

package
v0.3.0-pre2 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SpotHost = "api.huobi.pro"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RestClient

type RestClient struct {
	*huobi.RestClient
	// contains filtered or unexported fields
}

func NewRestClient

func NewRestClient(key, secret string) *RestClient

func (*RestClient) FeeRate

func (rc *RestClient) FeeRate(ctx context.Context, syms ...exchange.Symbol) ([]exchange.TradeFee, error)

func (*RestClient) Init

func (rc *RestClient) Init(ctx context.Context) error

func (*RestClient) NewSpotSymbol

func (rc *RestClient) NewSpotSymbol(base, quote string) exchange.SpotSymbol

func (*RestClient) ParseSpotSymbol

func (rc *RestClient) ParseSpotSymbol(pair string) (exchange.SpotSymbol, error)

type SpotSymbol

type SpotSymbol struct {
	*exchange.BaseSpotSymbol
}

func (*SpotSymbol) String

func (ss *SpotSymbol) String() string

type Symbol

type Symbol struct {
	BaseCurrency string `json:"base-currency"`
	QuoteCurreny string `json:"quote-currency"`
	Symbol       string `json:"symbol"`
}

type SymbolResp

type SymbolResp struct {
	Status string   `json:"status"`
	Data   []Symbol `json:"data"`
}

type TradeFeeResult

type TradeFeeResult struct {
	Code    int               `json:"code"`
	Success bool              `json:"success"`
	Data    []TransactFeeRate `json:"data"`
}

type TransactFeeRate

type TransactFeeRate struct {
	Symbol             string `json:"symbol"`
	MakerFeeRate       string `json:"makerFeeRate"`
	TakerFeeRate       string `json:"takerFeeRate"`
	ActualMakerFeeRate string `json:"actualMakerFeeRate"`
	ActualTakerFeeRate string `json:"actualTakerFeeRate"`
}

Jump to

Keyboard shortcuts

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