Documentation
¶
Index ¶
- type Client
- func NewClient(ctx context.Context, apiKey, secretKey, passphrase string, ...) (*Client, error)
- func NewClientWithIP(ctx context.Context, apiKey, secretKey, passphrase string, ...) (*Client, error)
- func NewClientWithIPWithUrl(ctx context.Context, apiKey, secretKey, passphrase string, ...) (*Client, error)
- func NewClientWithSourceAndTargetIP(ctx context.Context, apiKey, secretKey, passphrase string, ...) (*Client, error)
- func NewClientWithSourceAndTargetIPWithUrl(ctx context.Context, apiKey, secretKey, passphrase string, ...) (*Client, error)
- func NewClientWithUrl(ctx context.Context, apiKey, secretKey, passphrase string, ...) (*Client, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Rest *rest.ClientRest Ws *ws.ClientWs // contains filtered or unexported fields }
Client is the main api wrapper of okx
func NewClient ¶
func NewClient(ctx context.Context, apiKey, secretKey, passphrase string, destination okx.Destination) (*Client, error)
NewClient returns a pointer to a fresh Client
func NewClientWithIP ¶
func NewClientWithIP(ctx context.Context, apiKey, secretKey, passphrase string, destination okx.Destination, ip string) (*Client, error)
NewClient returns a pointer to a fresh Client
func NewClientWithIPWithUrl ¶ added in v1.0.35
func NewClientWithSourceAndTargetIP ¶ added in v1.0.30
func NewClientWithSourceAndTargetIP(ctx context.Context, apiKey, secretKey, passphrase string, destination okx.Destination, sourceIp, targetIp string) (*Client, error)
NewClient returns a pointer to a fresh Client
func NewClientWithSourceAndTargetIPWithUrl ¶ added in v1.0.35
Click to show internal directories.
Click to hide internal directories.