Versions in this module Expand all Collapse all v0 v0.3.2 Oct 11, 2022 v0.3.1 Oct 11, 2022 v0.3.0 Oct 11, 2022 Changes in this version + const API_BASE + type APIError struct + Message string + Status int + func (e APIError) Error() string + type Balance struct + Available float64 + AvailableLocal float64 + Balance float64 + BalanceLocal float64 + Currency string + Rate float64 + type BalanceMap struct + Primary []Balance + type BaseOrder struct + ClOrdId string + ExpireDate int32 + MinQty float64 + OrdType OrdType + OrderQty float64 + Price float64 + Side Side + StopPx float64 + Symbol string + TimeInForce TimeInForce + type Client struct + func NewClient(apiKey, apiSecret string) (c *Client) + func NewClientWithCustomHttpConfig(apiKey, apiSecret string, httpClient *http.Client) (c *Client) + func NewClientWithCustomTimeout(apiKey, apiSecret string, timeout time.Duration) (c *Client) + func (client *Client) CreateOrder(requestOrder BaseOrder) (order OrderSummary, err error) + func (client *Client) DeleteAllOrders(options *DeleteAllOrdersOpts) (err error) + func (client *Client) DeleteOrderById(orderId int64) error + func (client *Client) GetAllTicker() (tickers Tickers, err error) + func (client *Client) GetBalances() (balances BalanceMap, err error) + func (client *Client) GetFees() (fees Fees, err error) + func (client *Client) GetFills(options *GetFillsOpts) (fills []OrderSummary, err error) + func (client *Client) GetL2Orderbook(market string) (orderbook OrderBook, err error) + func (client *Client) GetL3Orderbook(market string) (orderbook OrderBook, err error) + func (client *Client) GetOrderById(orderId int64) (order OrderSummary, err error) + func (client *Client) GetOrders(options *GetOrdersOpts) (orders []OrderSummary, err error) + func (client *Client) GetSymbol(market string) (symbol Symbol, err error) + func (client *Client) GetSymbols() (symbols []Symbol, err error) + func (client *Client) GetTicker(market string) (ticker Ticker, err error) + func (client *Client) GetTrades(options *GetTradesOpts) (trades []Trade, err error) + type DeleteAllOrdersOpts struct + Symbol string + type Fees struct + MakerRate float64 + TakerRate float64 + VolumeInUSD float64 + type GetFillsOpts struct + From int64 + Limit int32 + Symbol string + To int64 + type GetOrdersOpts struct + From int64 + Limit int32 + Status interface{} + Symbol string + To int64 + type GetTradesOpts struct + From int64 + Limit int32 + Symbol string + To int64 + type OrdType string + const LIMIT + const MARKET + const STOP + const STOPLIMIT + type OrderBook struct + Asks []OrderBookEntry + Bids []OrderBookEntry + Symbol string + type OrderBookEntry struct + Num int64 + Px float64 + Qty float64 + type OrderStatus string + const CANCELED + const EXPIRED + const FILLED + const OPEN + const PART_FILLED + const REJECTED + type OrderSummary struct + AvgPx float64 + ClOrdId string + CumQty float64 + ExOrdId int64 + LastPx float64 + LastShares float64 + LeavesQty float64 + OrdStatus OrderStatus + OrdType OrdType + Price float64 + Side Side + Symbol string + Text string + Timestamp int64 + type Side string + const BUY + const SELL + type Symbol struct + AuctionPrice float64 + AuctionSize float64 + AuctionTime string + BaseCurrency string + BaseCurrencyScale int32 + CounterCurrency string + CounterCurrencyScale int32 + Id int64 + Imbalance float64 + LotSize int64 + LotSizeScale int32 + MaxOrderSize int64 + MaxOrderSizeScale int32 + MinOrderSize int64 + MinOrderSizeScale int32 + MinPriceIncrement int64 + MinPriceIncrementScale int32 + Status string + type Ticker struct + LastTradePrice float64 + Price24h float64 + Symbol string + Volume24h float64 + type Tickers []Ticker + type TimeInForce string + const FOK + const GTC + const GTD + const IOC + type Trade struct + ClientOrderId string + Fee float64 + Id uint64 + OrderId uint64 + Price float64 + Quantity float64 + Symbol string + Timestamp time.Time + Type string v0.2.3 Jun 5, 2022 v0.2.2 Jun 5, 2022 v0.2.1 Jun 5, 2022 v0.2.0 Jun 5, 2022 v0.1.0 Jun 2, 2022