btcbox

package
v0.0.0-...-2a0cda8 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BtcBox

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

func New

func New(client *http.Client, apikey, secretkey string) *BtcBox

func (*BtcBox) CancelOrder

func (btcbox *BtcBox) CancelOrder(orderId string, currency CurrencyPair) (bool, error)

func (*BtcBox) GetAccount

func (btcbox *BtcBox) GetAccount() (*Account, error)

func (*BtcBox) GetDepth

func (btcbox *BtcBox) GetDepth(size int, currency CurrencyPair) (*Depth, error)

func (*BtcBox) GetExchangeName

func (btcbox *BtcBox) GetExchangeName() string

func (*BtcBox) GetKlineRecords

func (btcbox *BtcBox) GetKlineRecords(currency CurrencyPair, period, size, since int) ([]Kline, error)

func (*BtcBox) GetOneOrder

func (btcbox *BtcBox) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error)

func (*BtcBox) GetOrderHistorys

func (btcbox *BtcBox) GetOrderHistorys(currency CurrencyPair, currentPage, pageSize int) ([]Order, error)

func (*BtcBox) GetTicker

func (btcbox *BtcBox) GetTicker(currency CurrencyPair) (*Ticker, error)

func (*BtcBox) GetTrades

func (btcbox *BtcBox) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error)

非个人,整个交易所的交易记录

func (*BtcBox) GetUnfinishOrders

func (btcbox *BtcBox) GetUnfinishOrders(currency CurrencyPair) ([]Order, error)

func (*BtcBox) LimitBuy

func (btcbox *BtcBox) LimitBuy(amount, price string, currency CurrencyPair) (*Order, error)

func (*BtcBox) LimitSell

func (btcbox *BtcBox) LimitSell(amount, price string, currency CurrencyPair) (*Order, error)

func (*BtcBox) MarketBuy

func (btcbox *BtcBox) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error)

func (*BtcBox) MarketSell

func (btcbox *BtcBox) MarketSell(amount, price string, currency CurrencyPair) (*Order, error)

Jump to

Keyboard shortcuts

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