Versions in this module Expand all Collapse all v1 v1.0.0 Dec 26, 2023 Changes in this version + const AskOrderType + const BUY + const BaseURL + const BidOrderType + const FokOrderType + const IocOrderType + const LimitOrderType + const MarketOrderType + const PostOnlyOrderType + const SELL + const TestNetBaseURL + var V1DefaultContentType = map[string]string + type WooXRestClient struct + func NewWooXRestClient(cfg *WooXRestClientCfg) (*WooXRestClient, error) + func (w *WooXRestClient) CancelOrder(ctx context.Context, params types.CancelOrderParam) (*types.CancelOrderResp, error) + func (w *WooXRestClient) CancelOrderByClientOrderID(ctx context.Context, params types.CancelOrderByClientOrderIDParam) (*types.CancelOrderResp, error) + func (w *WooXRestClient) CancelOrders(ctx context.Context, params types.CancelOrdersParam) (*types.CancelOrderResp, error) + func (w *WooXRestClient) GenV1APIAuthHeaders(req types.HTTPRequest) (map[string]string, error) + func (w *WooXRestClient) GenV3APIAuthHeaders(req types.HTTPRequest) (map[string]string, error) + func (w *WooXRestClient) GetAccountInfo(ctx context.Context) (*types.GetAccountInfo, error) + func (w *WooXRestClient) GetAllPositionInfo(ctx context.Context) (*types.GetAllV3PositionInfo, error) + func (w *WooXRestClient) GetAssetHisotry(ctx context.Context, params types.GetAssetHisotryParam) (*types.AssetHisotryResp, error) + func (w *WooXRestClient) GetBalances(ctx context.Context) (*types.Balance, error) + func (w *WooXRestClient) GetIPRestriction(ctx context.Context) (*types.IPRestriction, error) + func (w *WooXRestClient) GetOnePositionInfo(ctx context.Context, symbol string) (*types.GetOnePositionInfo, error) + func (w *WooXRestClient) GetOrder(ctx context.Context, orderID string) (*types.CancelOrderResp, error) + func (w *WooXRestClient) GetOrderByClientOrderID(ctx context.Context, clientOrderID string) (*types.CancelOrderResp, error) + func (w *WooXRestClient) GetOrders(ctx context.Context, params types.GetOrdersParam) (*types.GetOrders, error) + func (w *WooXRestClient) GetPublicAllFuturesInfo(ctx context.Context) (*types.AllFuturesInfo, error) + func (w *WooXRestClient) GetPublicFundingRateForSymbol(ctx context.Context, symbol string) (*types.FundingRate, error) + func (w *WooXRestClient) GetPublicFundingRates(ctx context.Context) (*types.FundingRates, error) + func (w *WooXRestClient) GetPublicFuturesInfoForSymbol(ctx context.Context, symbol string) (*types.OneFuturesInfo, error) + func (w *WooXRestClient) GetPublicInfo(ctx context.Context) (*types.AvailableSymbols, error) + func (w *WooXRestClient) GetPublicInfoForSymbol(ctx context.Context, symbol string) (*types.SymbolInfo, error) + func (w *WooXRestClient) GetPublicKline(ctx context.Context, params *types.GetKlineParam) (*types.Kline, error) + func (w *WooXRestClient) GetPublicMarketTrades(ctx context.Context, params *types.GetMarketTradesParam) (*types.MarketTrade, error) + func (w *WooXRestClient) GetPublicOrderbook(ctx context.Context, symbol string, params *types.GetOrderbookParam) (*types.Orderbook, error) + func (w *WooXRestClient) GetPublicTokens(ctx context.Context) (*types.Tokens, error) + func (w *WooXRestClient) GetSubAccounts(ctx context.Context) (*types.SubAccounts, error) + func (w *WooXRestClient) GetTrade(ctx context.Context, tradeID string) (*types.GetTrade, error) + func (w *WooXRestClient) GetTradeHistory(ctx context.Context, params types.GetTradeHistoryParam) (*types.GetTradeHistory, error) + func (w *WooXRestClient) SendHTTPRequest(ctx context.Context, req types.HTTPRequest) ([]byte, error) + func (w *WooXRestClient) SendOrder(ctx context.Context, params types.SendOrderReq) (*types.SendOrderResp, error) + func (w *WooXRestClient) TransferAsset(ctx context.Context, params types.TransferAssetParam) (*types.TransferAssetResp, error) + func (w *WooXRestClient) UpdateAccountMode(ctx context.Context, params types.UpdateAccountModeParam) (*types.Response, error) + func (w *WooXRestClient) UpdateLeverageSetting(ctx context.Context, params types.UpdateLeverageSettingParam) (*types.Response, error) + type WooXRestClientCfg struct + BaseURL string + Debug bool + Key string + Logger *slog.Logger + Secret string