Documentation ¶
Index ¶
- Variables
- type BybitClient
- func (bb *BybitClient) GenAuthHeaders(req utils.HTTPRequest) (map[string]string, error)
- func (bb *BybitClient) GetBaseURL() string
- func (bb *BybitClient) GetDebug() bool
- func (bb *BybitClient) GetKey() string
- func (bb *BybitClient) GetRecvWindow() int
- func (bb *BybitClient) GetSecret() string
- func (bb *BybitClient) SendHTTPRequest(ctx context.Context, req utils.HTTPRequest) (*utils.ApiResponse, error)
- type BybitClientCfg
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BaseURL = "https://api.bybit.com" TestBaseURL = "https://api-testnet.bybit.com" )
Functions ¶
This section is empty.
Types ¶
type BybitClient ¶
type BybitClient struct {
// contains filtered or unexported fields
}
func NewBybitClient ¶
func NewBybitClient(cfg *BybitClientCfg) (*BybitClient, error)
func (*BybitClient) GenAuthHeaders ¶
func (bb *BybitClient) GenAuthHeaders(req utils.HTTPRequest) (map[string]string, error)
func (*BybitClient) GetBaseURL ¶
func (bb *BybitClient) GetBaseURL() string
func (*BybitClient) GetDebug ¶
func (bb *BybitClient) GetDebug() bool
func (*BybitClient) GetKey ¶
func (bb *BybitClient) GetKey() string
func (*BybitClient) GetRecvWindow ¶
func (bb *BybitClient) GetRecvWindow() int
func (*BybitClient) GetSecret ¶
func (bb *BybitClient) GetSecret() string
func (*BybitClient) SendHTTPRequest ¶
func (bb *BybitClient) SendHTTPRequest(ctx context.Context, req utils.HTTPRequest) (*utils.ApiResponse, error)
Click to show internal directories.
Click to hide internal directories.