Documentation ¶
Index ¶
- Constants
- type 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)
Constants ¶
View Source
const ( API_BASE_URL = "https://www.cryptopia.co.nz/api/" TICKERS_URI = "GetMarkets" TICKER_URI = "GetMarket/" DEPTH_URI = "GetMarketOrders" CANCEL_URI = "CancelTrade" SUBMIT_ORDER_URI = "SubmitTrade" DEFAULT_HTTPCLIENT_TIMEOUT = 30 // HTTP client timeout )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cryptopia ¶
type Cryptopia struct {
// contains filtered or unexported fields
}
func (*Cryptopia) CancelOrder ¶
func (*Cryptopia) GetAccount ¶
func (*Cryptopia) GetExchangeName ¶
func (*Cryptopia) GetKlineRecords ¶
func (*Cryptopia) GetOneOrder ¶
func (*Cryptopia) GetOrderHistorys ¶
func (*Cryptopia) GetTickerInBuf ¶
func (*Cryptopia) GetTickers ¶
func (*Cryptopia) GetUnfinishOrders ¶
func (*Cryptopia) MarketSell ¶
Click to show internal directories.
Click to hide internal directories.