Versions in this module Expand all Collapse all v1 v1.0.0 Dec 26, 2023 Changes in this version + var BaseURL = "https://api.binance.com" + type KlineInterval string + var Day1 KlineInterval = "1d" + var Day3 KlineInterval = "3d" + var Hour1 KlineInterval = "1h" + var Hour12 KlineInterval = "12h" + var Hour2 KlineInterval = "2h" + var Hour4 KlineInterval = "4h" + var Hour6 KlineInterval = "6h" + var Hour8 KlineInterval = "8h" + var Minute1 KlineInterval = "1m" + var Minute15 KlineInterval = "15m" + var Minute3 KlineInterval = "3m" + var Minute30 KlineInterval = "30m" + var Minute5 KlineInterval = "5m" + var Month1 KlineInterval = "1M" + var Second1 KlineInterval = "1s" + var Week1 KlineInterval = "1w" + type SecurityType string + var MARGIN SecurityType = "MARGIN" + var MARKET_DATA SecurityType = "MARKET_DATA" + var NONE SecurityType = "NONE" + var TRADE SecurityType = "TRADE" + var USER_DATA SecurityType = "USER_DATA" + var USER_STREAM SecurityType = "USER_STREAM" + type SpotClient struct + func NewSpotClient(cfg *SpotClientCfg) (*SpotClient, error) + func (s *SpotClient) GenHeaders(t SecurityType) (map[string]string, error) + func (s *SpotClient) GetBaseURL() string + func (s *SpotClient) GetDebug() bool + func (s *SpotClient) GetKey() string + func (s *SpotClient) GetRecvWindow() int + func (s *SpotClient) GetSecret() string + func (s *SpotClient) NeedSignature(t SecurityType) bool + func (s *SpotClient) SendHTTPRequest(ctx context.Context, req utils.HTTPRequest) (*utils.ApiResponse, error) + type SpotClientCfg struct + BaseURL string + Debug bool + Key string + Logger *slog.Logger + RecvWindow int + Secret string