Documentation ¶
Index ¶
- Constants
- type Zb
- func (zb *Zb) CancelOrder(orderId string, currency CurrencyPair) (bool, error)
- func (zb *Zb) CancelWithdraw(id string, currency Currency, safePwd string) (bool, error)
- func (zb *Zb) GetAccount() (*Account, error)
- func (zb *Zb) GetDepth(size int, currency CurrencyPair) (*Depth, error)
- func (zb *Zb) GetExchangeName() string
- func (zb *Zb) GetKlineRecords(currency CurrencyPair, period KlinePeriod, size int, opt ...OptionalParameter) ([]Kline, error)
- func (zb *Zb) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error)
- func (zb *Zb) GetOrderHistorys(currency CurrencyPair, opt ...OptionalParameter) ([]Order, error)
- func (zb *Zb) GetTicker(currency CurrencyPair) (*Ticker, error)
- func (zb *Zb) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error)
- func (zb *Zb) GetUnfinishOrders(currency CurrencyPair) ([]Order, error)
- func (zb *Zb) LimitBuy(amount, price string, currency CurrencyPair, ...) (*Order, error)
- func (zb *Zb) LimitSell(amount, price string, currency CurrencyPair, ...) (*Order, error)
- func (zb *Zb) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error)
- func (zb *Zb) MarketSell(amount, price string, currency CurrencyPair) (*Order, error)
- func (zb *Zb) Withdraw(amount string, currency Currency, fees, receiveAddr, safePwd string) (string, error)
Constants ¶
View Source
const ( MARKET_URL = "http://api.zb.com/data/v1/" TICKER_API = "ticker?market=%s" DEPTH_API = "depth?market=%s&size=%d" TRADE_URL = "https://trade.zb.com/api/" GET_ACCOUNT_API = "getAccountInfo" GET_ORDER_API = "getOrder" GET_UNFINISHED_ORDERS_API = "getUnfinishedOrdersIgnoreTradeType" CANCEL_ORDER_API = "cancelOrder" PLACE_ORDER_API = "order" WITHDRAW_API = "withdraw" CANCELWITHDRAW_API = "cancelWithdraw" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Zb ¶
type Zb struct {
// contains filtered or unexported fields
}
func (*Zb) CancelOrder ¶
func (*Zb) CancelWithdraw ¶
func (*Zb) GetAccount ¶
func (*Zb) GetExchangeName ¶
func (*Zb) GetKlineRecords ¶
func (*Zb) GetOneOrder ¶
func (*Zb) GetOrderHistorys ¶
func (*Zb) GetUnfinishOrders ¶
func (*Zb) MarketSell ¶
Click to show internal directories.
Click to hide internal directories.