Documentation
¶
Index ¶
- Constants
- func PrettyPrint(jString string)
- func PrettyPrintBytes(jBytes []byte) (string, error)
- type AccountBalance
- type ApiKey
- type Client
- func (cl *Client) GetBalances() ([]AccountBalance, error)
- func (cl *Client) GetOrderBook(pair string) (GetOrderBookResponse, error)
- func (cl *Client) GetPublicCurrencies() ([]Currency, error)
- func (cl *Client) GetPublicOrderBook(pair string) (GetOrderBookResponse, error)
- func (cl *Client) GetPublicOrderBookFull(pair string) (GetOrderBookFullResponse, error)
- func (cl *Client) GetPublicOrderTypes() ([]OrderTypes, error)
- func (cl *Client) GetPublicPairs() ([]CurrencyPair, error)
- func (cl *Client) GetTradeHistory(pair string, skip int, limit int, startTime time.Time, stopTime time.Time) ([]TradeHistoryEntry, error)
- func (cl *Client) LoadAuthFile(filepath string) error
- func (cl *Client) SendRequest(method string, path string) ([]byte, error)
- func (cl *Client) SetAuth(apiKeyID, apiKeySecret string) error
- func (cl *Client) SetBaseURL(baseURL string)
- func (cl *Client) SetDebug(debug bool)
- type Currency
- type CurrencyPair
- type GetOrderBookFullResponse
- type GetOrderBookResponse
- type OrderBookEntry
- type OrderBookFullEntry
- type OrderTypes
- type TradeHistoryEntry
Constants ¶
View Source
const Version = "0.0.01"
Variables ¶
This section is empty.
Functions ¶
func PrettyPrint ¶
func PrettyPrint(jString string)
func PrettyPrintBytes ¶
Types ¶
type AccountBalance ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetBalances ¶
func (cl *Client) GetBalances() ([]AccountBalance, error)
func (*Client) GetOrderBook ¶
func (cl *Client) GetOrderBook(pair string) (GetOrderBookResponse, error)
func (*Client) GetPublicCurrencies ¶
Public
func (*Client) GetPublicOrderBook ¶
func (cl *Client) GetPublicOrderBook(pair string) (GetOrderBookResponse, error)
Public
func (*Client) GetPublicOrderBookFull ¶
func (cl *Client) GetPublicOrderBookFull(pair string) (GetOrderBookFullResponse, error)
Public
func (*Client) GetPublicOrderTypes ¶
func (cl *Client) GetPublicOrderTypes() ([]OrderTypes, error)
Public
func (*Client) GetTradeHistory ¶
func (*Client) LoadAuthFile ¶
func (*Client) SendRequest ¶
func (*Client) SetBaseURL ¶
type CurrencyPair ¶
type CurrencyPair struct { Symbol string `json:"symbol"` BaseCurrency string `json:"baseCurrency"` QuoteCurrency string `json:"quoteCurrency"` ShortName string `json:"shortName"` Active bool `json:"active"` MinBaseAmount decimal.Decimal `json:"minBaseAmount"` MaxBaseAmount decimal.Decimal `json:"maxBaseAmount"` MinQuoteAmount decimal.Decimal `json:"minQuoteAmount"` MaxQuoteAmount decimal.Decimal `json:"maxQuoteAmount"` TickSize decimal.Decimal `json:"tickSize"` BaseDecimalPlaces quotedInt `json:"baseDecimalPlaces"` }
type GetOrderBookFullResponse ¶
type GetOrderBookFullResponse struct { Asks []OrderBookFullEntry `json:"Asks"` Bids []OrderBookFullEntry `json:"Bids"` Timestamp time.Time `json:"LastChange"` }
type GetOrderBookResponse ¶
type GetOrderBookResponse struct { Asks []OrderBookEntry `json:"Asks"` Bids []OrderBookEntry `json:"Bids"` Timestamp time.Time `json:"LastChange"` }
type OrderBookEntry ¶
type OrderBookFullEntry ¶
type OrderTypes ¶
type TradeHistoryEntry ¶
type TradeHistoryEntry struct { Price decimal.Decimal `json:"price"` Quantity decimal.Decimal `json:"quantity"` CurrencyPair string `json:"currencyPair"` TradedAt time.Time `json:"tradedAt"` TakerSide string `json:"takerSide"` SequenceId int `json:"sequenceId"` Id string `json:"id"` QuoteVolume decimal.Decimal `json:"quoteVolume"` }
Click to show internal directories.
Click to hide internal directories.