Versions in this module Expand all Collapse all v2 v2.6.1 Sep 13, 2024 v2.6.0 Jul 9, 2024 Changes in this version + var ProxyUrl = "" + var UseTestnet = false + var WebsocketKeepalive = false + var WebsocketTimeout = time.Second * 60 + func SetWsProxyUrl(url string) + func WsCombinedServe(streamName []string, handler map[string]interface{}, errHandler ErrHandler) (doneC, stopC chan struct{}, err error) + func WsDepthServe(symbol string, levels string, rate *time.Duration, handler WsDepthHandler, ...) (doneC, stopC chan struct{}, err error) + func WsIndexServe(symbol string, handler WsIndexHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error) + func WsKlineServe(symbol string, interval string, handler WsKlineHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error) + func WsMarkPriceServe(symbol string, handler WsMarkPriceHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error) + func WsOpenInterestServe(underlying string, expireDate string, handler WsOpenInterestHandler, ...) (doneC, stopC chan struct{}, err error) + func WsOptionPairServe(handler WsOptionPairHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error) + func WsTickerServe(symbol string, handler WsTickerHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error) + func WsTickerWithExpireServe(underlying string, expireDate string, handler WsTickerHandler, ...) (doneC, stopC chan struct{}, err error) + func WsTradeServe(symbol string, handler WsTradeHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error) + func WsUserDataServe(listenKey string, handler WsUserDataHandler, errHandler ErrHandler) (doneC, stopC chan struct{}, err error) + type Account struct + Asset []*Asset + Greek []*Greek + RiskLevel string + Time uint64 + type AccountService struct + func (s *AccountService) Do(ctx context.Context, opts ...RequestOption) (res *Account, err error) + type Asset struct + Asset string + Available string + Equity string + Locked string + MarginBalance string + UnrealizedPNL string + type Bill struct + Amount string + Asset string + CreateDate int64 + Id string + Type string + type BillService struct + func (s *BillService) Currency(c string) *BillService + func (s *BillService) Do(ctx context.Context, opts ...RequestOption) (res []*Bill, err error) + func (s *BillService) EndTime(et uint64) *BillService + func (s *BillService) Limit(limit int) *BillService + func (s *BillService) RecordId(ri uint64) *BillService + func (s *BillService) StartTime(st uint64) *BillService + type CancelAllOpenOrdersByUnderlyingRsp struct + Code string + Data *string + Msg string + type CancelAllOpenOrdersByUnderlyingService struct + func (s *CancelAllOpenOrdersByUnderlyingService) Do(ctx context.Context, opts ...RequestOption) (res *CancelAllOpenOrdersByUnderlyingRsp, err error) + func (s *CancelAllOpenOrdersByUnderlyingService) Underlying(underlying string) *CancelAllOpenOrdersByUnderlyingService + type CancelAllOpenOrdersRsp struct + Code string + Msg string + type CancelBatchOrdersService struct + func (s *CancelBatchOrdersService) ClientOrderIds(clientOrderIds []string) *CancelBatchOrdersService + func (s *CancelBatchOrdersService) Do(ctx context.Context, opts ...RequestOption) (res []interface{}, err error) + func (s *CancelBatchOrdersService) OrderIds(orderIds []int64) *CancelBatchOrdersService + func (s *CancelBatchOrdersService) Symbol(symbol string) *CancelBatchOrdersService type CancelOrderService + func (s *CancelOrderService) ClientOrderId(clientOrderId string) *CancelOrderService + func (s *CancelOrderService) OrderId(orderId int64) *CancelOrderService type Client + KeyType string + func (c *Client) NewAccountService() *AccountService + func (c *Client) NewBillService() *BillService + func (c *Client) NewCancelAllOpenOrdersByUnderlyingService() *CancelAllOpenOrdersByUnderlyingService + func (c *Client) NewCancelBatchOrdersService() *CancelBatchOrdersService + func (c *Client) NewCloseUserStreamService() *CloseUserStreamService + func (c *Client) NewExerciseHistoryService() *ExerciseHistoryService + func (c *Client) NewExercistRecordService() *ExerciseRecordService + func (c *Client) NewHistoricalTradesService() *HistoricalTradesService + func (c *Client) NewHistoryOrdersService() *HistoryOrdersService + func (c *Client) NewIncomeDownloadIdService() *IncomeDownloadIdService + func (c *Client) NewIncomeDownloadLinkService() *IncomeDownloadLinkService + func (c *Client) NewIndexService() *IndexService + func (c *Client) NewKeepaliveUserStreamService() *KeepaliveUserStreamService + func (c *Client) NewMarkService() *MarkService + func (c *Client) NewOpenInterestService() *OpenInterestService + func (c *Client) NewPingService() *PingService + func (c *Client) NewPositionService() *PositionService + func (c *Client) NewServerTimeService() *ServerTimeService + func (c *Client) NewStartUserStreamService() *StartUserStreamService + func (c *Client) NewTickerService() *TickerService + func (c *Client) NewTradesService() *TradesService + func (c *Client) NewUserTradesService() *UserTradesService + type CloseUserStreamService struct + func (s *CloseUserStreamService) Do(ctx context.Context, opts ...RequestOption) (err error) + func (s *CloseUserStreamService) ListenKey(listenKey string) *CloseUserStreamService type CreateOrderService + func (s *CreateOrderService) ClientOrderId(ClientOrderId string) *CreateOrderService + type ErrHandler func(err error) + type ExerciseHistory struct + ExpiryDate uint64 + RealStrikePrice string + StrikePrice string + StrikeResult string + Symbol string + type ExerciseHistoryService struct + func (s *ExerciseHistoryService) Do(ctx context.Context, opts ...RequestOption) (res []*ExerciseHistory, err error) + func (s *ExerciseHistoryService) EndTime(endTime uint64) *ExerciseHistoryService + func (s *ExerciseHistoryService) Limit(limit uint64) *ExerciseHistoryService + func (s *ExerciseHistoryService) StartTime(startTime uint64) *ExerciseHistoryService + func (s *ExerciseHistoryService) Underlying(underlying string) *ExerciseHistoryService + type ExerciseRecord struct + Amount string + CreateDate uint64 + Currency string + ExercisePrice string + Fee string + Id string + MarkPrice string + OptionSide string + PositionSide string + PriceScale int + Quantity string + QuantityScale int + QuoteAsset string + Symbol string + type ExerciseRecordService struct + func (s *ExerciseRecordService) Do(ctx context.Context, opts ...RequestOption) (res []*ExerciseRecord, err error) + func (s *ExerciseRecordService) EndTime(et uint64) *ExerciseRecordService + func (s *ExerciseRecordService) Limit(limit int) *ExerciseRecordService + func (s *ExerciseRecordService) StartTime(st uint64) *ExerciseRecordService + func (s *ExerciseRecordService) Symbol(symbol string) *ExerciseRecordService type GetOrderService + func (s *GetOrderService) ClientOrderId(clientOrderId string) *GetOrderService + func (s *GetOrderService) OrderId(orderId int64) *GetOrderService + type Greek struct + Delta string + Gamma string + Theta string + Underlying string + Vega string + type HistoricalTrade struct + Id uint64 + Price string + Qty string + QuoteQty string + Side int + Time uint64 + TradeId int + type HistoricalTradesService struct + func (s *HistoricalTradesService) Do(ctx context.Context, opts ...RequestOption) (res []*HistoricalTrade, err error) + func (s *HistoricalTradesService) FromID(fromID int64) *HistoricalTradesService + func (s *HistoricalTradesService) Limit(limit int) *HistoricalTradesService + func (s *HistoricalTradesService) Symbol(symbol string) *HistoricalTradesService + type HistoryOrdersService struct + func (s *HistoryOrdersService) Do(ctx context.Context, opts ...RequestOption) (res []*Order, err error) + func (s *HistoryOrdersService) EndTime(et uint64) *HistoryOrdersService + func (s *HistoryOrdersService) Limit(limit int) *HistoryOrdersService + func (s *HistoryOrdersService) OrderId(orderId uint64) *HistoryOrdersService + func (s *HistoryOrdersService) StartTime(st uint64) *HistoryOrdersService + func (s *HistoryOrdersService) Symbol(symbol string) *HistoryOrdersService + type IncomeDownloadId struct + AvgCostTimestampOfLast30d uint64 + DownloadId string + Error *string + type IncomeDownloadIdService struct + func (s *IncomeDownloadIdService) Do(ctx context.Context, opts ...RequestOption) (res *IncomeDownloadId, err error) + func (s *IncomeDownloadIdService) EndTime(et uint64) *IncomeDownloadIdService + func (s *IncomeDownloadIdService) StartTime(st uint64) *IncomeDownloadIdService + type IncomeDownloadLink struct + DownloadId string + ExpirationTimestamp int64 + IsExpired *bool + Notified bool + Status string + Url string + type IncomeDownloadLinkService struct + func (s *IncomeDownloadLinkService) Do(ctx context.Context, opts ...RequestOption) (res *IncomeDownloadLink, err error) + func (s *IncomeDownloadLinkService) DownloadId(di string) *IncomeDownloadLinkService + type Index struct + IndexPrice string + Time uint64 + type IndexService struct + func (s *IndexService) Do(ctx context.Context, opts ...RequestOption) (res *Index, err error) + func (s *IndexService) Underlying(underlying string) *IndexService + type KeepaliveUserStreamService struct + func (s *KeepaliveUserStreamService) Do(ctx context.Context, opts ...RequestOption) (err error) + func (s *KeepaliveUserStreamService) ListenKey(listenKey string) *KeepaliveUserStreamService + type LastTrade struct + Id int64 + Price string + Qty string + Time int64 + TradeId int64 + type Mark struct + AskIV string + BidIV string + Delta string + Gamma string + HighPriceLimit string + LowPriceLimit string + MarkIV string + MarkPrice string + RiskFreeInterest string + Symbol string + Theta string + Vega string + type MarkService struct + func (s *MarkService) Do(ctx context.Context, opts ...RequestOption) (res []*Mark, err error) + func (s *MarkService) Symbol(symbol string) *MarkService + type OpenInterest struct + SumOpenInterest string + SumOpenInterestUsd string + Symbol string + Timestamp string + type OpenInterestService struct + func (s *OpenInterestService) Do(ctx context.Context, opts ...RequestOption) (res []*OpenInterest, err error) + func (s *OpenInterestService) Expiration(expiration string) *OpenInterestService + func (s *OpenInterestService) UnderlyingAsset(underlyingAsset string) *OpenInterestService type Order + ClientOrderId string + LastTrade *LastTrade + OrderId int64 + RateLimitOrder10s string + RateLimitOrder1m string + Reason *string + type PL struct + Price string + Quantity string + type PingService struct + func (s *PingService) Do(ctx context.Context, opts ...RequestOption) (err error) + type Position struct + EntryPrice string + ExpiryDate uint64 + MarkPrice string + MarkValue string + OptionSide string + PositionCost string + PriceScale int + Quantity string + QuantityScale int + QuoteAsset string + ReducibleQty string + Ror string + Side string + StrikePrice string + Symbol string + Time int64 + UnrealizedPNL string + type PositionService struct + func (s *PositionService) Do(ctx context.Context, opts ...RequestOption) (res []*Position, err error) + func (s *PositionService) Symbol(symbol string) *PositionService + type ServerTimeService struct + func (s *ServerTimeService) Do(ctx context.Context, opts ...RequestOption) (serverTime int64, err error) + type StartUserStreamService struct + func (s *StartUserStreamService) Do(ctx context.Context, opts ...RequestOption) (listenKey string, err error) + type Ticker struct + Amount string + AskPrice string + BidPrice string + CloseTime int64 + ExercisePrice string + FirstTradeId int + High string + LastPrice string + LastQty string + Low string + Open string + OpenTime int64 + PriceChange string + PriceChangePercent string + StrikePrice string + Symbol string + TradeCount int + Volume string + type TickerService struct + func (s *TickerService) Do(ctx context.Context, opts ...RequestOption) (res []*Ticker, err error) + func (s *TickerService) Symbol(symbol string) *TickerService + type Trade struct + Id uint64 + Price string + Qty string + QuoteQty string + Side int + Symbol string + Time uint64 + TradeId int + type TradesService struct + func (s *TradesService) Do(ctx context.Context, opts ...RequestOption) (res []*Trade, err error) + func (s *TradesService) Limit(limit int) *TradesService + func (s *TradesService) Symbol(symbol string) *TradesService + type UserTrade struct + Fee string + Id uint64 + Liquidity string + OptionSide string + OrderId uint64 + Price string + PriceScale int + Quantity string + QuantityScale int + QuoteAsset string + RealizedProfit string + Side string + Symbol string + Time uint64 + TradeId uint32 + Type string + Volatility string + type UserTradesService struct + func (s *UserTradesService) Do(ctx context.Context, opts ...RequestOption) (res []*UserTrade, err error) + func (s *UserTradesService) EndTime(et uint64) *UserTradesService + func (s *UserTradesService) FromId(fromId uint64) *UserTradesService + func (s *UserTradesService) Limit(limit int) *UserTradesService + func (s *UserTradesService) StartTime(st uint64) *UserTradesService + func (s *UserTradesService) Symbol(symbol string) *UserTradesService + type WsBalance struct + Asset string + Balance string + InitialMargin string + MaintenanceMargin string + Merit string + UnrealizedPnL string + type WsConfig struct + Endpoint string + Proxy *string + type WsDepthEvent struct + Asks []Ask + Bids []Bid + Event string + LastUpdateID int64 + PrevLastUpdateID int64 + Symbol string + Time int64 + TransactionTime int64 + type WsDepthHandler func(events *WsDepthEvent) + type WsFilled struct + Fee string + Marker string + Price string + Quantity string + TradeId string + TradedTime int64 + type WsGreek struct + Delta float64 + Gamma float64 + Theta float64 + UnderlyingId string + Vega float64 + type WsHandler func(message []byte) + type WsIndexEvent struct + Event string + Price string + Symbol string + Time int64 + type WsIndexHandler func(event *WsIndexEvent) + type WsKline struct + Close string + EndTime int64 + FirstTradeID string + High string + Interval string + IsFinal bool + LastTradeID string + Low string + Open string + QuoteVolume string + StartTime int64 + Symbol string + TakerQuoteVolume string + TakerVolume string + TradeNum int64 + Volume string + type WsKlineEvent struct + Event string + Kline *WsKline + Symbol string + Time int64 + type WsKlineHandler func(events *WsKlineEvent) + type WsMarkPriceEvent struct + Event string + MarkPrice string + Symbol string + Time int64 + type WsMarkPriceHandler func(events []*WsMarkPriceEvent) + type WsOpenInterestEvent struct + Event string + Hold string + OpenInterest string + Symbol string + Time int64 + type WsOpenInterestHandler func(events []*WsOpenInterestEvent) + type WsOptionPairEvent struct + CId int + Event string + ExerciseDate int64 + Id int + MinQuantity string + QuoteAsset string + StrikePrice string + Symbol string + Time int64 + Type string + Underlying string + Unit int + type WsOptionPairHandler func(events *WsOptionPairEvent) + type WsOrderTradeUpdate struct + ClientOrderID string + CreateTime int64 + ExecutedCost string + ExecutedQty string + Fee string + Filled []WsFilled + OrderId string + OrderType string + PostOnly bool + Price string + Quantity string + ReduleOnly bool + Status string + Stp int + Symbol string + TimeInForce string + UpdateTime int64 + type WsPosition struct + AvgPrice string + CountQty string + PositionVal string + ReduleQty string + Symbol string + type WsTickerEvent struct + Amount string + AskIV string + AskOpenPrice string + AskQty string + BidIV string + BidOpenPrice string + BidQty string + Close string + Delta string + Event string + ExercisPrice string + FirstID string + Gamma string + High string + HighPriceLimit string + LastID string + LastQty string + Low string + LowPriceLimit string + MarkPrice string + Open string + PriceChange string + PriceChangePercent string + RiskFreeInterest string + Symbol string + Theta string + Time int64 + TradeNum int64 + TradeTime int64 + Vega string + Volatility string + Volume string + type WsTickerHandler func(events []*WsTickerEvent) + type WsTradeEvent struct + BuyId string + Event string + Price string + Quantity string + SellId string + Side string + Symbol string + Time int64 + TradeId string + TradeTime int64 + type WsTradeHandler func(event *WsTradeEvent) + type WsUserDataEvent struct + AUBalance []*WsBalance + AUGreek []*WsGreek + AUPosition []*WsPosition + AUUid *int64 + Event UserDataEventType + OTU []*WsOrderTradeUpdate + RLCMaintenanceMargin *string + RLCMarginBalance *string + RLCStatus *string + Time int64 + type WsUserDataHandler func(event *WsUserDataEvent) v2.5.1 Jun 3, 2024 v2.5.0 Mar 10, 2024 Changes in this version + const ContractTypePerpetual + const ForceOrderCloseTypeADL + const ForceOrderCloseTypeLiquidation + const MarginTypeCrossed + const MarginTypeIsolated + const NewOrderRespTypeACK + const NewOrderRespTypeRESULT + const OptionSideTypeCall + const OptionSideTypePut + const OrderExecutionTypeCalculated + const OrderExecutionTypeCanceled + const OrderExecutionTypeExpired + const OrderExecutionTypeFill + const OrderExecutionTypeNew + const OrderExecutionTypePartialFill + const OrderExecutionTypeTrade + const OrderStatusTypeAccepted + const OrderStatusTypeCanceled + const OrderStatusTypeExpired + const OrderStatusTypeFilled + const OrderStatusTypeNew + const OrderStatusTypeNewADL + const OrderStatusTypeNewInsurance + const OrderStatusTypePartiallyFilled + const OrderStatusTypeRejected + const OrderTypeLimit + const OrderTypeMarket + const OrderTypeStop + const OrderTypeStopMarket + const OrderTypeTakeProfit + const OrderTypeTakeProfitMarket + const OrderTypeTrailingStopMarket + const PositionSideTypeBoth + const PositionSideTypeLong + const PositionSideTypeShort + const SideEffectTypeAutoRepay + const SideEffectTypeMarginBuy + const SideEffectTypeNoSideEffect + const SideTypeBuy + const SideTypeSell + const SymbolFilterTypeLotSize + const SymbolFilterTypeMarketLotSize + const SymbolFilterTypeMaxNumAlgoOrders + const SymbolFilterTypeMaxNumOrders + const SymbolFilterTypeMinNotional + const SymbolFilterTypePercentPrice + const SymbolFilterTypePrice + const SymbolStatusTypeAuctionMatch + const SymbolStatusTypeBreak + const SymbolStatusTypeEndOfDay + const SymbolStatusTypeHalt + const SymbolStatusTypePostTrading + const SymbolStatusTypePreTrading + const SymbolStatusTypeTrading + const SymbolTypeFuture + const TimeInForceTypeFOK + const TimeInForceTypeGTC + const TimeInForceTypeGTX + const TimeInForceTypeIOC + const UserDataEventReasonTypeAdjustment + const UserDataEventReasonTypeAdminDeposit + const UserDataEventReasonTypeAdminWithdraw + const UserDataEventReasonTypeAssetTransfer + const UserDataEventReasonTypeDeposit + const UserDataEventReasonTypeFundingFee + const UserDataEventReasonTypeInsuranceClear + const UserDataEventReasonTypeMarginTransfer + const UserDataEventReasonTypeMarginTypeChange + const UserDataEventReasonTypeOptionsPremiumFee + const UserDataEventReasonTypeOptionsSettleProfit + const UserDataEventReasonTypeOrder + const UserDataEventReasonTypeWithdraw + const UserDataEventReasonTypeWithdrawReject + const UserDataEventTypeAccountConfigUpdate + const UserDataEventTypeAccountUpdate + const UserDataEventTypeListenKeyExpired + const UserDataEventTypeMarginCall + const UserDataEventTypeOrderTradeUpdate + const WorkingTypeContractPrice + const WorkingTypeMarkPrice + type Ask = common.PriceLevel + type Bid = common.PriceLevel + type CancelAllOpenOrdersService struct + func (s *CancelAllOpenOrdersService) Do(ctx context.Context, opts ...RequestOption) (err error) + func (s *CancelAllOpenOrdersService) Symbol(symbol string) *CancelAllOpenOrdersService + type CancelMultiplesOrdersService struct + func (s *CancelMultiplesOrdersService) ClientOrderIDList(clientOrderIDList []string) *CancelMultiplesOrdersService + func (s *CancelMultiplesOrdersService) Do(ctx context.Context, opts ...RequestOption) (res []*CancelSingleOrderResponse, err error) + func (s *CancelMultiplesOrdersService) OrderIDList(orderIDList []int64) *CancelMultiplesOrdersService + func (s *CancelMultiplesOrdersService) Symbol(symbol string) *CancelMultiplesOrdersService + type CancelOrderResponse struct + AvgPrice string + ClientOrderID string + CreateTime int64 + ExecutedQty string + Fee string + Mmp bool + OptionSide OptionSideType + OrderID int64 + PostOnly bool + Price string + PriceScale int + Quantity string + QuantityScale int + QuoteAsset string + ReduceOnly bool + Side SideType + Source string + Status OrderStatusType + Symbol string + TimeInForce TimeInForceType + Type OrderType + UpdateTime int64 + type CancelOrderService struct + func (s *CancelOrderService) ClientOrderID(clientOrderID string) *CancelOrderService + func (s *CancelOrderService) Do(ctx context.Context, opts ...RequestOption) (res *CancelOrderResponse, err error) + func (s *CancelOrderService) OrderID(orderID int64) *CancelOrderService + func (s *CancelOrderService) Symbol(symbol string) *CancelOrderService + type CancelSingleOrderResponse struct + AvgPrice string + ClientOrderID string + CreateTime int64 + ExecutedQty string + Fee string + OrderID int64 + Price string + Quantity string + ReduceOnly bool + Side SideType + Status OrderStatusType + Symbol string + TimeInForce TimeInForceType + Type OrderType + UpdateTime int64 + type Client struct + APIKey string + BaseURL string + Debug bool + HTTPClient *http.Client + Logger *log.Logger + SecretKey string + TimeOffset int64 + UserAgent string + func NewClient(apiKey, secretKey string) *Client + func NewProxiedClient(apiKey, secretKey, proxyUrl string) *Client + func (c *Client) NewCancelAllOpenOrdersService() *CancelAllOpenOrdersService + func (c *Client) NewCancelMultipleOrdersService() *CancelMultiplesOrdersService + func (c *Client) NewCancelOrderService() *CancelOrderService + func (c *Client) NewCreateBatchOrdersService() *CreateBatchOrdersService + func (c *Client) NewCreateOrderService() *CreateOrderService + func (c *Client) NewDepthService() *DepthService + func (c *Client) NewExchangeInfoService() *ExchangeInfoService + func (c *Client) NewGetOrderService() *GetOrderService + func (c *Client) NewKlinesService() *KlinesService + func (c *Client) NewListOpenOrdersService() *ListOpenOrdersService + func (c *Client) SetApiEndpoint(url string) *Client + type ContractType string + type CreateBatchOrdersResponse struct + Orders []*SingleOrder + type CreateBatchOrdersService struct + func (s *CreateBatchOrdersService) Do(ctx context.Context, opts ...RequestOption) (res *CreateBatchOrdersResponse, err error) + func (s *CreateBatchOrdersService) OrderList(orders []*CreateOrderService) *CreateBatchOrdersService + type CreateOrderResponse struct + AvgPrice string + ClientOrderID string + CreateTime int64 + ExecutedQty string + Fee string + Mmp bool + OptionSide OptionSideType + OrderID int64 + PostOnly bool + Price string + PriceScale int + Quantity string + QuantityScale int + QuoteAsset string + RateLimitOrder10s string + RateLimitOrder1m string + ReduceOnly bool + Side SideType + Status OrderStatusType + Symbol string + TimeInForce TimeInForceType + Type OrderType + UpdateTime int64 + type CreateOrderService struct + func (s *CreateOrderService) ClientOrderID(ClientOrderID string) *CreateOrderService + func (s *CreateOrderService) Do(ctx context.Context, opts ...RequestOption) (res *CreateOrderResponse, err error) + func (s *CreateOrderService) IsMmp(isMmp bool) *CreateOrderService + func (s *CreateOrderService) NewOrderResponseType(newOrderResponseType NewOrderRespType) *CreateOrderService + func (s *CreateOrderService) PostOnly(postOnly bool) *CreateOrderService + func (s *CreateOrderService) Price(price string) *CreateOrderService + func (s *CreateOrderService) Quantity(quantity string) *CreateOrderService + func (s *CreateOrderService) ReduceOnly(reduceOnly bool) *CreateOrderService + func (s *CreateOrderService) Side(side SideType) *CreateOrderService + func (s *CreateOrderService) Symbol(symbol string) *CreateOrderService + func (s *CreateOrderService) TimeInForce(timeInForce TimeInForceType) *CreateOrderService + func (s *CreateOrderService) Type(orderType OrderType) *CreateOrderService + type DepthResponse struct + Asks []Ask + Bids []Bid + TradeTime int64 + UpdateID int64 + type DepthService struct + func (s *DepthService) Do(ctx context.Context, opts ...RequestOption) (res *DepthResponse, err error) + func (s *DepthService) Limit(limit int) *DepthService + func (s *DepthService) Symbol(symbol string) *DepthService + type ExchangeInfo struct + OptionAssets []OptionAsset + OptionContracts []OptionContract + OptionSymbols []OptionSymbol + RateLimits []RateLimit + ServerTime int64 + Timezone string + type ExchangeInfoService struct + func (s *ExchangeInfoService) Do(ctx context.Context, opts ...RequestOption) (res *ExchangeInfo, err error) + type ForceOrderCloseType string + type GetOrderService struct + func (s *GetOrderService) ClientOrderID(clientOrderID string) *GetOrderService + func (s *GetOrderService) Do(ctx context.Context, opts ...RequestOption) (res *Order, err error) + func (s *GetOrderService) OrderID(orderID int64) *GetOrderService + func (s *GetOrderService) Symbol(symbol string) *GetOrderService + type Kline struct + Amount string + Close string + CloseTime int64 + High string + Interval string + Low string + Open string + OpenTime int64 + TakerAmount string + TakerVolume string + TradeCount int64 + Volume string + type KlinesService struct + func (s *KlinesService) Do(ctx context.Context, opts ...RequestOption) (res []*Kline, err error) + func (s *KlinesService) EndTime(endTime int64) *KlinesService + func (s *KlinesService) Interval(interval string) *KlinesService + func (s *KlinesService) Limit(limit int) *KlinesService + func (s *KlinesService) StartTime(startTime int64) *KlinesService + func (s *KlinesService) Symbol(symbol string) *KlinesService + type ListOpenOrdersService struct + func (s *ListOpenOrdersService) Do(ctx context.Context, opts ...RequestOption) (res []*Order, err error) + func (s *ListOpenOrdersService) EndTime(endTime int64) *ListOpenOrdersService + func (s *ListOpenOrdersService) Limit(limit int) *ListOpenOrdersService + func (s *ListOpenOrdersService) OrderId(orderId int64) *ListOpenOrdersService + func (s *ListOpenOrdersService) StartTime(startTime int64) *ListOpenOrdersService + func (s *ListOpenOrdersService) Symbol(symbol string) *ListOpenOrdersService + type LotSizeFilter struct + MaxQuantity string + MinQuantity string + StepSize string + type MarginType string + type NewOrderRespType string + type OptionAsset struct + Id int64 + Name string + type OptionContract struct + BaseAsset string + Id int64 + QuoteAsset string + SettleAsset string + Underlying string + type OptionSideType string + type OptionSymbol struct + ContractId int64 + ExpiryDate int64 + Filters []map[string]interface{} + Id int64 + InitialMargin string + MaintenanceMargin string + MakerFeeRate string + MaxQty string + MinInitialMargin string + MinMaintenanceMargin string + MinQty string + PriceScale int + QuantityScale int + QuoteAsset string + Side string + StrikePrice string + Symbol string + TakerFeeRate string + Underlying string + Unit int64 + func (s *OptionSymbol) LotSizeFilter() *LotSizeFilter + func (s *OptionSymbol) PriceFilter() *PriceFilter + type Order struct + AvgPrice string + ClientOrderID string + CreateTime int64 + ExecutedQty string + Fee string + Mmp bool + OptionSide OptionSideType + OrderID int64 + PostOnly bool + Price string + PriceScale int + Quantity string + QuantityScale int + QuoteAsset string + ReduceOnly bool + Side SideType + Source string + Status OrderStatusType + Symbol string + TimeInForce TimeInForceType + Type OrderType + UpdateTime int64 + type OrderExecutionType string + type OrderStatusType string + type OrderType string + type PositionSideType string + type PriceFilter struct + MaxPrice string + MinPrice string + TickSize string + type RateLimit struct + Interval string + IntervalNum int64 + Limit int64 + RateLimitType string + type RequestOption func(*request) + func WithHeader(key, value string, replace bool) RequestOption + func WithHeaders(header http.Header) RequestOption + func WithRecvWindow(recvWindow int64) RequestOption + type SideEffectType string + type SideType string + type SingleOrder struct + ClientOrderID string + Mmp bool + OrderID int64 + PostOnly bool + Price string + Quantity string + ReduceOnly bool + Side SideType + Symbol string + Type OrderType + type SymbolFilterType string + type SymbolStatusType string + type SymbolType string + type TimeInForceType string + type UserDataEventReasonType string + type UserDataEventType string + type WorkingType string