Documentation
¶
Index ¶
- Constants
- type Zb
- func (zb *Zb) CancelOrder(orderId string, currency common.TradingPair) (bool, error)
- func (zb *Zb) CancelWithdraw(id string, currency common.Currency, safePwd string) (bool, error)
- func (zb *Zb) GetAccount() (*common.Account, error)
- func (zb *Zb) GetDepth(size int, currency common.TradingPair) (*common.Depth, error)
- func (zb *Zb) GetExchangeName() string
- func (zb *Zb) GetKlineRecords(currency common.TradingPair, period, size, since int) ([]common.Kline, error)
- func (zb *Zb) GetOneOrder(orderId string, currency common.TradingPair) (*common.Order, error)
- func (zb *Zb) GetOrderHistorys(currency common.TradingPair, currentPage, pageSize int) ([]common.Order, error)
- func (zb *Zb) GetTicker(currency common.TradingPair) (*common.Ticker, error)
- func (zb *Zb) GetTrades(currencyPair common.TradingPair, since int64) ([]common.Trade, error)
- func (zb *Zb) GetUnfinishOrders(currency common.TradingPair) ([]common.Order, error)
- func (zb *Zb) LimitBuy(amount, price string, currency common.TradingPair, ...) (*common.Order, error)
- func (zb *Zb) LimitSell(amount, price string, currency common.TradingPair, ...) (*common.Order, error)
- func (zb *Zb) MarketBuy(amount, price string, currency common.TradingPair) (*common.Order, error)
- func (zb *Zb) MarketSell(amount, price string, currency common.TradingPair) (*common.Order, error)
- func (zb *Zb) Withdraw(amount string, currency common.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) GetExchangeName ¶
func (*Zb) GetKlineRecords ¶
func (*Zb) GetOneOrder ¶
func (*Zb) GetOrderHistorys ¶
func (*Zb) GetUnfinishOrders ¶
func (*Zb) LimitBuy ¶
func (zb *Zb) LimitBuy(amount, price string, currency common.TradingPair, opt ...common.LimitOrderOptionalParameter) (*common.Order, error)
func (*Zb) LimitSell ¶
func (zb *Zb) LimitSell(amount, price string, currency common.TradingPair, opt ...common.LimitOrderOptionalParameter) (*common.Order, error)
func (*Zb) MarketSell ¶
Click to show internal directories.
Click to hide internal directories.