Versions in this module Expand all Collapse all v1 v1.0.0 Dec 26, 2023 Changes in this version + var BaseURL = "https://api.mexc.com" + type HTTPRequest struct + BaseURL string + Body any + Headers map[string]string + Method string + Path string + Query any + type KlineInterval string + var Day1 KlineInterval = "1d" + var Hour4 KlineInterval = "4h" + var Minute1 KlineInterval = "1m" + var Minute15 KlineInterval = "15m" + var Minute30 KlineInterval = "30m" + var Minute5 KlineInterval = "5m" + var Minute60 KlineInterval = "60m" + var Month1 KlineInterval = "1M" + type SpotClient struct + func NewSpotClient(cfg *SpotClientCfg) (*SpotClient, error) + func (s *SpotClient) GenAuthHeaders(req HTTPRequest) (map[string]string, error) + func (s *SpotClient) GenPubHeaders() (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) SendHTTPRequest(ctx context.Context, req HTTPRequest) ([]byte, error) + type SpotClientCfg struct + BaseURL string + Debug bool + Key string + Logger *slog.Logger + RecvWindow int + Secret string