Versions in this module Expand all Collapse all v0 v0.2.20 May 27, 2026 Changes in this version + const BaseURL + func GenerateSignature(secretKey, data string) string + func Timestamp() int64 + type APIError struct + Code int + Message string + func (e *APIError) Error() string + type CancelAllOrdersParams struct + Symbol string + type CancelOrderParams struct + ClientOrderID string + OrderID string + Symbol string + type Client struct + APIKey string + BaseURL string + HTTPClient *http.Client + Logger *zap.SugaredLogger + OrderCount mbx.OrderCount + SecretKey string + UsedWeight mbx.UsedWeight + func NewClient() *Client + func (c *Client) CancelAllOpenOrders(ctx context.Context, p CancelAllOrdersParams) error + func (c *Client) CancelOrder(ctx context.Context, p CancelOrderParams) (*OrderResponse, error) + func (c *Client) Delete(ctx context.Context, endpoint string, params map[string]interface{}, ...) error + func (c *Client) Depth(ctx context.Context, symbol string, limit int) (*DepthResponse, error) + func (c *Client) ExchangeInfo(ctx context.Context) (*ExchangeInfoResponse, error) + func (c *Client) Get(ctx context.Context, endpoint string, params map[string]interface{}, ...) error + func (c *Client) GetOpenOrders(ctx context.Context, symbol string) ([]OrderResponse, error) + func (c *Client) GetOrder(ctx context.Context, symbol, orderID, clientOrderID string) (*OrderResponse, error) + func (c *Client) GetOrderHistory(ctx context.Context, symbol string) ([]OrderResponse, error) + func (c *Client) HasCredentials() bool + func (c *Client) Klines(ctx context.Context, symbol, interval string, limit int, ...) ([]KlineResponse, error) + func (c *Client) PlaceOrder(ctx context.Context, p PlaceOrderParams) (*OrderResponse, error) + func (c *Client) Post(ctx context.Context, endpoint string, params map[string]interface{}, ...) error + func (c *Client) Ticker(ctx context.Context, symbol string) (*TickerResponse, error) + func (c *Client) Trades(ctx context.Context, symbol string, limit int) ([]TradeResponse, error) + func (c *Client) WithBaseURL(baseURL string) *Client + func (c *Client) WithCredentials(apiKey, secretKey string) *Client + type DepthResponse struct + Asks [][]string + Bids [][]string + Time int64 + type ExchangeInfoResponse struct + OptionSymbols []OptionSymbol + type KlineResponse []interface + type NumberString string + func (n *NumberString) UnmarshalJSON(data []byte) error + type OptionSymbol struct + BaseAsset string + ExpiryDate int64 + MinQty string + PriceScale int32 + QuantityScale int32 + QuoteAsset string + SettleAsset string + Side string + Status string + StrikePrice string + Symbol string + Underlying string + Unit NumberString + type OrderResponse struct + AvgPrice string + ClientOrderID string + CreateDate int64 + ExecutedQty string + Fee string + ID NumberString + OrderID NumberString + Price string + Quantity string + ReduceOnly bool + Side string + Status string + Symbol string + TimeInForce string + Type string + UpdateTime int64 + func (o OrderResponse) IDString() string + type PlaceOrderParams struct + ClientOrderID string + Price string + Quantity string + ReduceOnly bool + Side string + Symbol string + TimeInForce string + Type string + type TickerResponse struct + Amount string + AskPrice string + BidPrice string + CloseTime int64 + HighPrice string + LastPrice string + LowPrice string + OpenPrice string + OpenTime int64 + StrikePrice string + Symbol string + TradeCount int64 + Volume string + type TradeResponse struct + ID json.Number + Price string + Quantity string + Side string + Time int64 + TradeID json.Number