Documentation ¶
Index ¶
- Constants
- type Btcmarkets
- func (btcm *Btcmarkets) CancelOrder(orderId string, currency CurrencyPair) (bool, error)
- func (btcm *Btcmarkets) GetAccount() (*Account, error)
- func (btcm *Btcmarkets) GetDepth(size int, currency CurrencyPair) (*Depth, error)
- func (btcm *Btcmarkets) GetExchangeName() string
- func (btcm *Btcmarkets) GetKlineRecords(currency CurrencyPair, period, size, since int) ([]Kline, error)
- func (btcm *Btcmarkets) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error)
- func (btcm *Btcmarkets) GetOrderHistorys(currency CurrencyPair, currentPage, pageSize int) ([]Order, error)
- func (btcm *Btcmarkets) GetTicker(currency CurrencyPair) (*Ticker, error)
- func (btcm *Btcmarkets) GetTickerInBuf(currency CurrencyPair) (*Ticker, error)
- func (btcm *Btcmarkets) GetTickers(currency CurrencyPair) (*Ticker, error)
- func (btcm *Btcmarkets) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error)
- func (btcm *Btcmarkets) GetUnfinishOrders(currency CurrencyPair) ([]Order, error)
- func (btcm *Btcmarkets) LimitBuy(amount, price string, currency CurrencyPair) (*Order, error)
- func (btcm *Btcmarkets) LimitSell(amount, price string, currency CurrencyPair) (*Order, error)
- func (btcm *Btcmarkets) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error)
- func (btcm *Btcmarkets) MarketSell(amount, price string, currency CurrencyPair) (*Order, error)
Constants ¶
View Source
const ( EXCHANGE_NAME = "btcmarkets.net" API_BASE_URL = "https://api.btcmarkets.net/" TICKER_URI = "market/%s/%s/tick" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Btcmarkets ¶
type Btcmarkets struct {
// contains filtered or unexported fields
}
func (*Btcmarkets) CancelOrder ¶
func (btcm *Btcmarkets) CancelOrder(orderId string, currency CurrencyPair) (bool, error)
func (*Btcmarkets) GetAccount ¶
func (btcm *Btcmarkets) GetAccount() (*Account, error)
func (*Btcmarkets) GetDepth ¶
func (btcm *Btcmarkets) GetDepth(size int, currency CurrencyPair) (*Depth, error)
func (*Btcmarkets) GetExchangeName ¶
func (btcm *Btcmarkets) GetExchangeName() string
func (*Btcmarkets) GetKlineRecords ¶
func (btcm *Btcmarkets) GetKlineRecords(currency CurrencyPair, period, size, since int) ([]Kline, error)
func (*Btcmarkets) GetOneOrder ¶
func (btcm *Btcmarkets) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error)
func (*Btcmarkets) GetOrderHistorys ¶
func (btcm *Btcmarkets) GetOrderHistorys(currency CurrencyPair, currentPage, pageSize int) ([]Order, error)
func (*Btcmarkets) GetTicker ¶
func (btcm *Btcmarkets) GetTicker(currency CurrencyPair) (*Ticker, error)
func (*Btcmarkets) GetTickerInBuf ¶
func (btcm *Btcmarkets) GetTickerInBuf(currency CurrencyPair) (*Ticker, error)
func (*Btcmarkets) GetTickers ¶
func (btcm *Btcmarkets) GetTickers(currency CurrencyPair) (*Ticker, error)
func (*Btcmarkets) GetTrades ¶
func (btcm *Btcmarkets) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error)
非个人,整个交易所的交易记录
func (*Btcmarkets) GetUnfinishOrders ¶
func (btcm *Btcmarkets) GetUnfinishOrders(currency CurrencyPair) ([]Order, error)
func (*Btcmarkets) LimitBuy ¶
func (btcm *Btcmarkets) LimitBuy(amount, price string, currency CurrencyPair) (*Order, error)
func (*Btcmarkets) LimitSell ¶
func (btcm *Btcmarkets) LimitSell(amount, price string, currency CurrencyPair) (*Order, error)
func (*Btcmarkets) MarketBuy ¶
func (btcm *Btcmarkets) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error)
func (*Btcmarkets) MarketSell ¶
func (btcm *Btcmarkets) MarketSell(amount, price string, currency CurrencyPair) (*Order, error)
Click to show internal directories.
Click to hide internal directories.