Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderBook ¶
type OrderBook struct {
Client coinmate.ClientInterface
}
func (*OrderBook) GetOrderBook ¶
func (o *OrderBook) GetOrderBook(currencyPair string, groupByPriceLimit bool) (OrderBookResponse, error)
Order book endpoint
func (*OrderBook) GetTradingPairs ¶
func (o *OrderBook) GetTradingPairs() (TraidingPairsResponse, error)
Trading pairs endpoint
type OrderBookAsksBids ¶
type OrderBookData ¶
type OrderBookData struct { Asks []OrderBookAsksBids `json:"asks"` Bids []OrderBookAsksBids `json:"bids"` }
type OrderBookResponse ¶
type OrderBookResponse struct { Error bool ErrorMessage string Data OrderBookData }
Order book response
type Ticker ¶
type Ticker struct {
Client coinmate.ClientInterface
}
type TickerData ¶
type TickerResponse ¶
type TickerResponse struct { Error bool `json:"error"` ErrorMessage string `json:"errorMessage"` Data TickerData `json:"data"` }
Ticker endpoint response
type TraidingPairs ¶
type TraidingPairs struct {
Client coinmate.ClientInterface
}
type TraidingPairsData ¶
type TraidingPairsData struct { Name string `json:"name"` FirstCurrency string `json:"firstCurrency"` SecondCurrency string `json:"secondCurrency"` PriceDecimals uint64 `json:"priceDecimals"` LotDecimals uint64 `json:"lotDecimals"` MinAmount float64 `json:"minAmount"` TradesWebSocketChannelId string `json:"tradesWebSocketChannelId"` OrderBookWebSocketChannelId string `json:"orderBookWebSocketChannelId"` TradeStatisticsWebSocketChannelId string `json:"tradeStatisticsWebSocketChannelId"` }
type TraidingPairsResponse ¶
type TraidingPairsResponse struct { Error bool ErrorMessage string Data []TraidingPairsData }
type Transactions ¶
type Transactions struct {
Client coinmate.ClientInterface
}
func (*Transactions) GetTransactions ¶
func (t *Transactions) GetTransactions(currencyPair string, minutesIntoHistory uint64) (TransactionsResponse, error)
Transactions
type TransactionsData ¶
type TransactionsResponse ¶
type TransactionsResponse struct { Error bool `json:"error"` ErrorMessage string `json:"errorMessage"` Data []TransactionsData `json:"data"` }
Ticker endpoint response
Click to show internal directories.
Click to hide internal directories.