Versions in this module Expand all Collapse all v1 v1.0.3 Jul 29, 2019 Changes in this version + const API_BASE_URL + const CANCEL_ALL_ORDER_API + const CANCEL_ORDER_API + const DEPTH_API + const GET_ACCOUNT_API + const GET_ORDER_API + const PLACE_ORDER_API + const SERVER_TIME + const TICKERS_API + const TICKER_API + const TRADE_URL + const V2 + var TimeOffset int64 = 0 + type Ocx struct + func New(client *http.Client, apikey, secretkey string) *Ocx + func (o *Ocx) CancelOrder(orderId string, currency CurrencyPair) (bool, error) + func (o *Ocx) GetAccount() (*Account, error) + func (o *Ocx) GetDepth(size int, currency CurrencyPair) (*Depth, error) + func (o *Ocx) GetExchangeName() string + func (o *Ocx) GetKlineRecords(currency CurrencyPair, period, size, since int) ([]Kline, error) + func (o *Ocx) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error) + func (o *Ocx) GetOrderHistorys(currency CurrencyPair, currentPage, pageSize int) ([]Order, error) + func (o *Ocx) GetOrdersList() + func (o *Ocx) GetServerTime() int64 + func (o *Ocx) GetTicker(currencyPair CurrencyPair) (*Ticker, error) + func (o *Ocx) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error) + func (o *Ocx) GetUnfinishOrders(currency CurrencyPair) ([]Order, error) + func (o *Ocx) LimitBuy(amount, price string, currency CurrencyPair) (*Order, error) + func (o *Ocx) LimitSell(amount, price string, currency CurrencyPair) (*Order, error) + func (o *Ocx) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error) + func (o *Ocx) MarketSell(amount, price string, currency CurrencyPair) (*Order, error) v1.0.2 Jul 25, 2019 v1.0.1 Jul 16, 2019