Documentation
¶
Index ¶
- Constants
- type AssetBalance
- type AssetsResponse
- type Client
- func (c *Client) FuturesTransfer(ctx context.Context, email, asset, amount string, transferType int) (*FuturesTransferResponse, error)
- func (c *Client) GetAssetsV4(ctx context.Context, email string) (*AssetsResponse, error)
- func (c *Client) GetSpotAssetsSummary(ctx context.Context, email string, page, size int) (*SpotAssetsSummary, error)
- func (c *Client) UniversalTransfer(ctx context.Context, req UniversalTransferRequest) (*UniversalTransferResponse, error)
- func (c *Client) WithBaseURL(baseURL string) *Client
- func (c *Client) WithCredentials(apiKey, secretKey string) *Client
- func (c *Client) WithServerTimeBaseURL(baseURL string) *Client
- type FuturesTransferResponse
- type SpotAssetsSummary
- type SpotSubAccountAsset
- type UniversalTransferRequest
- type UniversalTransferResponse
Constants ¶
View Source
const ( BaseURL = "https://api.binance.com" ServerTimeURL = "https://api.binance.com" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetBalance ¶
type AssetsResponse ¶
type AssetsResponse struct {
Balances []AssetBalance `json:"balances"`
}
type Client ¶
type Client struct {
BaseURL string
ServerTimeBaseURL string
APIKey string
SecretKey string
HTTPClient *http.Client
}
func (*Client) FuturesTransfer ¶
func (*Client) GetAssetsV4 ¶
func (*Client) GetSpotAssetsSummary ¶
func (*Client) UniversalTransfer ¶
func (c *Client) UniversalTransfer(ctx context.Context, req UniversalTransferRequest) (*UniversalTransferResponse, error)
func (*Client) WithBaseURL ¶
func (*Client) WithCredentials ¶
func (*Client) WithServerTimeBaseURL ¶
type FuturesTransferResponse ¶
type FuturesTransferResponse struct {
TxnID string `json:"txnId"`
}
type SpotAssetsSummary ¶
type SpotAssetsSummary struct {
TotalCount int `json:"totalCount"`
MasterAccountTotalAsset string `json:"masterAccountTotalAsset"`
SpotSubUserAssetBTCVOList []SpotSubAccountAsset `json:"spotSubUserAssetBtcVoList"`
SpotSubUserAssetBtcVOList []SpotSubAccountAsset `json:"spotSubUserAssetBTCVoList"`
SpotSubUserAssetBTCVoListV2 []SpotSubAccountAsset `json:"spotSubUserAssetBtcVoListV2"`
Extra map[string]interface{} `json:"-"`
}
type SpotSubAccountAsset ¶
Click to show internal directories.
Click to hide internal directories.