Documentation
¶
Index ¶
- func Do[T any](r *Request) (resp *T, err error)
- func Subscribe[T any](ctx context.Context, client WebSocketClient, endpoint string, ...) (done chan<- struct{}, stop <-chan struct{}, err error)
- type Client
- type Request
- func Delete(ctx context.Context, client Client, url string, params ...map[string]string) *Request
- func Get(ctx context.Context, client Client, url string, params ...map[string]string) *Request
- func Post(client Client, ctx context.Context, url string, body ...map[string]string) *Request
- func Put(ctx context.Context, client Client, url string, params ...map[string]string) *Request
- type WebSocketClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface {
GetHttpClient() *resty.Client
GetRecvWindow() int64
GetApiKey() string
GetSecretKey() string
GetLogger() log.Logger
GetSignFn() func(apiKey, secretKey string, payload string) (string, error)
GetTimeOffsetMs() int64
SetUsedWeight(used, used1m *int64)
SetOrderCount(count10s, count1d *int64)
}
Click to show internal directories.
Click to hide internal directories.