Versions in this module Expand all Collapse all v1 v1.0.0 Dec 26, 2023 Changes in this version + var CoinMarginedBaseURL = "https://dapi.binance.com" + type CoinMarginedClient struct + func NewCoinMarginedClient(cfg *CoinMarginedClientCfg) (*CoinMarginedClient, error) + func (u *CoinMarginedClient) GenHeaders(t usdmutils.SecurityType) (map[string]string, error) + func (u *CoinMarginedClient) GetBaseURL() string + func (u *CoinMarginedClient) GetDebug() bool + func (u *CoinMarginedClient) GetKey() string + func (u *CoinMarginedClient) GetRecvWindow() int + func (u *CoinMarginedClient) GetSecret() string + func (u *CoinMarginedClient) NeedSignature(t usdmutils.SecurityType) bool + func (u *CoinMarginedClient) SendHTTPRequest(ctx context.Context, req utils.HTTPRequest) (*utils.ApiResponse, error) + type CoinMarginedClientCfg struct + BaseURL string + Debug bool + Key string + Logger *slog.Logger + RecvWindow int + Secret string + type ContractType = string + var All ContractType = "ALL" + var CurrentQuarter ContractType = "CURRENT_QUARTER" + var NextQuarter ContractType = "NEXT_QUARTER" + var Perpetual ContractType = "PERPETUAL" + type OrderStatus = string + var Canceled OrderStatus = "CANCELED" + var Expired OrderStatus = "EXPIRED" + var Filled OrderStatus = "FILLED" + var New OrderStatus = "NEW" + var PartiallyFilled OrderStatus = "PARTIALLY_FILLED"