Documentation ¶
Index ¶
- type Asset
- type Assets
- type Candle
- type Candles
- type CandlesRequest
- type Client
- func (c *Client) GetAssets() (listOfAssets Assets, err error)
- func (c *Client) GetCandles(cr CandlesRequest) (candles Candles, err error)
- func (c *Client) GetOrderbook(obr OrderbookRequest) (ob Orderbook, err error)
- func (c *Client) GetSummary() (md MarketData, err error)
- func (c *Client) GetTicker() (t Ticker, err error)
- func (c *Client) GetTrades(tr TradesRequest) (t Trades, err error)
- type ErrorResponse
- type MarketData
- type MarketProp
- type Orderbook
- type OrderbookRequest
- type PriceChange
- type Ticker
- type Trades
- type TradesRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct { Name string `json:"name"` Description string `json:"description"` CanWithdraw bool `json:"can_withdraw"` CanDeposit bool `json:"can_deposit"` MinWithdraw float64 `json:"min_withdraw"` MaxWithdraw float64 `json:"max_withdraw"` MakerFee float64 `json:"maker_fee"` TakerFee float64 `json:"taker_fee"` }
type CandlesRequest ¶
type Client ¶
func (*Client) GetCandles ¶
func (c *Client) GetCandles(cr CandlesRequest) (candles Candles, err error)
func (*Client) GetOrderbook ¶
func (c *Client) GetOrderbook(obr OrderbookRequest) (ob Orderbook, err error)
func (*Client) GetSummary ¶
func (c *Client) GetSummary() (md MarketData, err error)
type ErrorResponse ¶
type ErrorResponse struct { // HTTP response that caused this error Response *http.Response `json:"-"` // Error message Timestamp int64 `json:"timestamp"` Status int `json:"status"` ErrorMsg string `json:"error"` Message string `json:"message"` Path string `json:"path"` Msg string `json:"msg"` Code int `json:"code"` }
func (*ErrorResponse) Error ¶
func (r *ErrorResponse) Error() string
type MarketData ¶
type MarketData struct { Message string `json:"msg"` Data map[string]MarketProp `json:"data"` }
type MarketProp ¶
type MarketProp struct { ID int64 `json:"id"` BaseVolume string `json:"baseVolume"` High24Hr string `json:"high24hr"` HighestBid string `json:"highestBid"` IsFrozen string `json:"isFrozen"` Last string `json:"last"` Low24Hr string `json:"low24hr"` LowestAsk string `json:"lowestAsk"` PercentChange string `json:"percentChange"` QuoteVolume string `json:"quoteVolume"` }
type OrderbookRequest ¶
type PriceChange ¶
type PriceChange struct { BaseCurrency string `json:"base_currency"` BaseVolume float64 `json:"base_volume"` Description string `json:"description"` HighestBidPrice float64 `json:"highest_bid_price"` IsFrozen bool `json:"isFrozen"` LastPrice float64 `json:"last_price"` LowestAskPrice float64 `json:"lowest_ask_price"` Past24HrsHighPrice float64 `json:"past_24hrs_high_price"` Past24HrsLowPrice float64 `json:"past_24hrs_low_price"` Past24HrsPriceChange float64 `json:"past_24hrs_price_change"` QuoteVolume float64 `json:"quote_volume"` QuoteCurrency string `json:"quote_currency"` }
type Ticker ¶
type Ticker map[string]PriceChange
type TradesRequest ¶
Click to show internal directories.
Click to hide internal directories.