Versions in this module Expand all Collapse all v1 v1.0.0 Jun 16, 2026 Changes in this version + const BaseURL + const ServerTimeURL + type AssetBalance struct + Asset string + Free string + Freeze string + Locked string + Withdrawing string + type AssetsResponse struct + Balances []AssetBalance + type Client struct + APIKey string + BaseURL string + HTTPClient *http.Client + SecretKey string + ServerTimeBaseURL string + func NewClient() *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 struct + TxnID string + type SpotAssetsSummary struct + Extra map[string]interface{} + MasterAccountTotalAsset string + SpotSubUserAssetBTCVOList []SpotSubAccountAsset + SpotSubUserAssetBTCVoListV2 []SpotSubAccountAsset + SpotSubUserAssetBtcVOList []SpotSubAccountAsset + TotalCount int + type SpotSubAccountAsset struct + Email string + TotalAsset string + type UniversalTransferRequest struct + Amount string + Asset string + ClientTranID string + FromAccountType string + FromEmail string + Symbol string + ToAccountType string + ToEmail string + type UniversalTransferResponse struct + ClientTranID string + TranID int64