client

package
v0.1.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Client represents a client for Binance's futures trading.

func NewFuturesClient

func NewFuturesClient(apiKey, apiSecret string, isTestnet bool) *Client

NewFuturesClient creates a new client instance.

func (*Client) MakeAuthenticatedRequest

func (c *Client) MakeAuthenticatedRequest(method, endpoint, bodyData string, responseData interface{}) error

MakeAuthenticatedRequest creates an authenticated request to the API.

func (*Client) MakeRequestWithoutSignature

func (c *Client) MakeRequestWithoutSignature(method, endpoint string, responseData interface{}) error

MakeRequestWithoutSignature handles making a non-authenticated API request.

type Config

type Config struct {
	APIKey    string
	APISecret string
	BaseURL   string
	WSBaseURL string
}

Config stores configuration for the API client.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL