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 API_BASE_URL + const CANCEL_URI + const DEFAULT_HTTPCLIENT_TIMEOUT + const DEPTH_URI + const SUBMIT_ORDER_URI + const TICKERS_URI + const TICKER_URI + type Cryptopia struct + func New(client *http.Client, accessKey, secretKey string) *Cryptopia + func (cta *Cryptopia) CancelOrder(orderId string, currency CurrencyPair) (bool, error) + func (cta *Cryptopia) GetAccount() (*Account, error) + func (cta *Cryptopia) GetDepth(size int, currency CurrencyPair) (*Depth, error) + func (cta *Cryptopia) GetExchangeName() string + func (cta *Cryptopia) GetKlineRecords(currency CurrencyPair, period, size, since int) ([]Kline, error) + func (cta *Cryptopia) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error) + func (cta *Cryptopia) GetOrderHistorys(currency CurrencyPair, currentPage, pageSize int) ([]Order, error) + func (cta *Cryptopia) GetTicker(currency CurrencyPair) (*Ticker, error) + func (cta *Cryptopia) GetTickerInBuf(currency CurrencyPair) (*Ticker, error) + func (cta *Cryptopia) GetTickers(currency CurrencyPair) (*Ticker, error) + func (cta *Cryptopia) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error) + func (cta *Cryptopia) GetUnfinishOrders(currency CurrencyPair) ([]Order, error) + func (cta *Cryptopia) LimitBuy(amount, price string, currency CurrencyPair) (*Order, error) + func (cta *Cryptopia) LimitSell(amount, price string, currency CurrencyPair) (*Order, error) + func (cta *Cryptopia) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error) + func (cta *Cryptopia) MarketSell(amount, price string, currency CurrencyPair) (*Order, error) + func (cta *Cryptopia) SetDebug(enable bool)