Versions in this module Expand all Collapse all v1 v1.0.0 Dec 26, 2023 Changes in this version + var PortfolioMarginBaseURL = "https://papi.binance.com" + type PortfolioMarginClient struct + func NewPortfolioMarginClient(cfg *PortfolioMarginClientCfg) (*PortfolioMarginClient, error) + func (p *PortfolioMarginClient) GenHeaders(t SecurityType) (map[string]string, error) + func (p *PortfolioMarginClient) GetBaseURL() string + func (p *PortfolioMarginClient) GetDebug() bool + func (p *PortfolioMarginClient) GetKey() string + func (p *PortfolioMarginClient) GetRecvWindow() int + func (p *PortfolioMarginClient) GetSecret() string + func (p *PortfolioMarginClient) NeedSignature(t SecurityType) bool + func (p *PortfolioMarginClient) SendHTTPRequest(ctx context.Context, req utils.HTTPRequest) (*utils.ApiResponse, error) + type PortfolioMarginClientCfg struct + BaseURL string + Debug bool + Key string + Logger *slog.Logger + RecvWindow int + Secret string + type SecurityType = string + var NONE SecurityType = "NONE" + var TRADE SecurityType = "TRADE" + var USER_DATA SecurityType = "USER_DATA" + var USER_STREAM SecurityType = "USER_STREAM"