Versions in this module Expand all Collapse all v1 v1.1.3 Jan 15, 2020 v1.0.4 Aug 27, 2019 Changes in this version + const ALL_TICKERs + const API_BASE_URL + const API_URL + const CANCELWITHDRAW_API + const CANCEL_ORDER_API + const DEPTH_API + const GET_ACCOUNT_API + const GET_ORDER_API + const GET_UNFINISHED_ORDERS_API + const PLACE_ORDER_API + const Pair_List + const TICKER_API + const TRADE_URL + const V1 + const WITHDRAW_API + type Cpk struct + func New(client *http.Client, apikey, secretkey string) *Cpk + func (c *Cpk) CancelOrder(orderId string, currency CurrencyPair) (bool, error) + func (c *Cpk) GetAccount() (*Account, error) + func (c *Cpk) GetDepth(size int, currency CurrencyPair) (*Depth, error) + func (c *Cpk) GetExchangeName() string + func (c *Cpk) GetKlineRecords(currency CurrencyPair, period, size, since int) ([]Kline, error) + func (c *Cpk) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error) + func (c *Cpk) GetOrderHistorys(currency CurrencyPair, currentPage, pageSize int) ([]Order, error) + func (c *Cpk) GetOrdersList() + func (c *Cpk) GetPairList() ([]CurrencyPair, error) + func (c *Cpk) GetServerTime() error + func (c *Cpk) GetTicker(currencyPair CurrencyPair) (*Ticker, error) + func (c *Cpk) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error) + func (c *Cpk) GetUnfinishOrders(currency CurrencyPair) ([]Order, error) + func (c *Cpk) LimitBuy(amount, price string, currency CurrencyPair) (*Order, error) + func (c *Cpk) LimitSell(amount, price string, currency CurrencyPair) (*Order, error) + func (c *Cpk) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error) + func (c *Cpk) MarketSell(amount, price string, currency CurrencyPair) (*Order, error)