Skip to content

TuringZhu/binanceapi-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go API client for binanceapi

OpenAPI Specifications for the Binance Public Spot API generated with binance/binance-api-swagger/blob/master/spot_api.yaml with commit v1.2.0 release

API documents:

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit https://www.turingzhu7.top

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import sw "./binanceapi"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1)

Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://api.binance.com

Class Method HTTP request Description
BLVTApi BlvtGetRedeemRecord Get /sapi/v1/blvt/redeem/record Redemption Record (USER_DATA)
BLVTApi BlvtGetSubscribeRecord Get /sapi/v1/blvt/subscribe/record Query Subscription Record (USER_DATA)
BLVTApi BlvtGetTokenInfo Get /sapi/v1/blvt/tokenInfo BLVT Info (MARKET_DATA)
BLVTApi BlvtGetUserLimitInfo Get /sapi/v1/blvt/userLimit BLVT User Limit Info (USER_DATA)
BLVTApi BlvtRedeem Post /sapi/v1/blvt/redeem Redeem BLVT (USER_DATA)
BLVTApi BlvtSubscribe Post /sapi/v1/blvt/subscribe Subscribe BLVT (USER_DATA)
BSwapApi BswapAddLiquidityPreview Get /sapi/v1/bswap/addLiquidityPreview Add Liquidity Preview (USER_DATA)
BSwapApi BswapAddLiquidityToPool Post /sapi/v1/bswap/liquidityAdd Add Liquidity (TRADE)
BSwapApi BswapGetLiquidityOperationHistory Get /sapi/v1/bswap/liquidityOps Liquidity Operation Record (USER_DATA)
BSwapApi BswapGetPoolConfigure Get /sapi/v1/bswap/poolConfigure Pool Configure (USER_DATA)
BSwapApi BswapGetPoolLiquidityInfo Get /sapi/v1/bswap/liquidity Liquidity information of a pool (USER_DATA)
BSwapApi BswapGetPools Get /sapi/v1/bswap/pools List All Swap Pools (MARKET_DATA)
BSwapApi BswapGetQuoteBasePrice Get /sapi/v1/bswap/quote Request Quote (USER_DATA)
BSwapApi BswapRemoveLiquidityFromPool Post /sapi/v1/bswap/liquidityRemove Remove Liquidity (TRADE)
BSwapApi BswapRemoveLiquidityPreview Get /sapi/v1/bswap/removeLiquidityPreview Remove Liquidity Preview (USER_DATA)
BSwapApi SwapGetHistory Get /sapi/v1/bswap/swap Swap History (USER_DATA)
BSwapApi SwapQoteAssetToBaseAsset Post /sapi/v1/bswap/swap Swap (TRADE)
C2CApi C2cGetOrderHistory Get /sapi/v1/c2c/orderMatch/listUserOrderHistory Get C2C Trade History (USER_DATA)
FiatApi FiatGetHistoryOrders Get /sapi/v1/fiat/orders Fiat Deposit/Withdraw History (USER_DATA)
FiatApi FiatGetPaymentsHistory Get /sapi/v1/fiat/payments Fiat Payments History (USER_DATA)
IsolatedMarginStreamApi CloseIsolatediMarginListenKey Delete /sapi/v1/userDataStream/isolated Close a ListenKey (USER_STREAM)
IsolatedMarginStreamApi CreateIsolatediMarginListenKey Post /sapi/v1/userDataStream/isolated Generate a Listen Key (USER_STREAM)
IsolatedMarginStreamApi DelayIsolatediMarginListenKey Put /sapi/v1/userDataStream/isolated Ping/Keep-alive a Listen Key (USER_STREAM)
MarginApi EnableBnbBurn Post /sapi/v1/bnbBurn Toggle BNB Burn On Spot Trade And Margin Interest (USER_DATA)
MarginApi GetBnbBurnStatus Get /sapi/v1/bnbBurn Get All Isolated Margin Symbol(USER_DATA)
MarginApi MarginAccountRepay Post /sapi/v1/margin/repay Margin Account Repay (MARGIN)
MarginApi MarginApplyLoan Post /sapi/v1/margin/loan Margin Account Borrow (MARGIN)
MarginApi MarginCancelAllSymbolOrders Delete /sapi/v1/margin/openOrders Margin Account Cancel all Open Orders on a Symbol (TRADE)
MarginApi MarginCancelOcoOrders Delete /sapi/v1/margin/orderList Margin Account Cancel OCO (TRADE)
MarginApi MarginCancelOrder Delete /sapi/v1/margin/order Margin Account Cancel Order (TRADE)
MarginApi MarginCreateOcoOrder Post /sapi/v1/margin/order/oco Margin Account New OCO (TRADE)
MarginApi MarginCreateOrder Post /sapi/v1/margin/order Margin Account New Order (TRADE)
MarginApi MarginDisableAccount Delete /sapi/v1/margin/isolated/account Disable Isolated Margin Account (TRADE)
MarginApi MarginEnableAccount Post /sapi/v1/margin/isolated/account Enable Isolated Margin Account (TRADE)
MarginApi MarginExecuteTransfer Post /sapi/v1/margin/transfer Cross Margin Account Transfer (MARGIN)
MarginApi MarginGetAccount Get /sapi/v1/margin/account Query Cross Margin Account Details (USER_DATA)
MarginApi MarginGetAccountInfo Get /sapi/v1/margin/isolated/account Query Isolated Margin Account Info (USER_DATA)
MarginApi MarginGetAccountLimit Get /sapi/v1/margin/isolated/accountLimit Query Enabled Isolated Margin Account Limit (USER_DATA)
MarginApi MarginGetAllAssets Get /sapi/v1/margin/allAssets Get All Margin Assets (MARKET_DATA)
MarginApi MarginGetAllCrossPairs Get /sapi/v1/margin/allPairs Get All Cross Margin Pairs (MARKET_DATA)
MarginApi MarginGetAllOcoOrders Get /sapi/v1/margin/allOrderList Query Margin Account's all OCO (USER_DATA)
MarginApi MarginGetAllOrders Get /sapi/v1/margin/allOrders Query Margin Account's All Orders (USER_DATA)
MarginApi MarginGetAllPairs Get /sapi/v1/margin/isolated/allPairs Get All Isolated Margin Symbol(USER_DATA)
MarginApi MarginGetAsset Get /sapi/v1/margin/asset Query Margin Asset (MARKET_DATA)
MarginApi MarginGetCrossTransferRecord Get /sapi/v1/margin/transfer Get Cross Margin Transfer History (USER_DATA)
MarginApi MarginGetForceLiquidationRecord Get /sapi/v1/margin/forceLiquidationRec Get Force Liquidation Record (USER_DATA)
MarginApi MarginGetInterestRateRecord Get /sapi/v1/margin/interestRateHistory Margin Interest Rate History (USER_DATA)
MarginApi MarginGetInterestRecord Get /sapi/v1/margin/interestHistory Get Interest History (USER_DATA)
MarginApi MarginGetLoan Get /sapi/v1/margin/loan Query Loan Record (USER_DATA)
MarginApi MarginGetMaxBorrowable Get /sapi/v1/margin/maxBorrowable Query Max Borrow (USER_DATA)
MarginApi MarginGetMaxTransferable Get /sapi/v1/margin/maxTransferable Query Max Transfer-Out Amount (USER_DATA)
MarginApi MarginGetOcoOrders Get /sapi/v1/margin/openOrderList Query Margin Account's Open OCO (USER_DATA)
MarginApi MarginGetOrder Get /sapi/v1/margin/order Query Margin Account's Order (USER_DATA)
MarginApi MarginGetOrders Get /sapi/v1/margin/openOrders Query Margin Account's Open Orders (USER_DATA)
MarginApi MarginGetPair Get /sapi/v1/margin/isolated/pair Query Isolated Margin Symbol (USER_DATA)
MarginApi MarginGetPairs Get /sapi/v1/margin/pair Query Cross Margin Pair (MARKET_DATA)
MarginApi MarginGetPriceIndex Get /sapi/v1/margin/priceIndex Query Margin PriceIndex (MARKET_DATA)
MarginApi MarginGetRepayRecord Get /sapi/v1/margin/repay Query Repay Record (USER_DATA)
MarginApi MarginGetSpecificOcoOrders Get /sapi/v1/margin/orderList Query Margin Account's OCO (USER_DATA)
MarginApi MarginGetTrades Get /sapi/v1/margin/myTrades Query Margin Account's Trade List (USER_DATA)
MarginApi MarginGetTransferRecord Get /sapi/v1/margin/isolated/transfer Get Isolated Margin Transfer History (USER_DATA)
MarginApi MarginTransfer Post /sapi/v1/margin/isolated/transfer Isolated Margin Account Transfer (MARGIN)
MarginStreamApi CloseMarginListenKey Delete /sapi/v1/userDataStream Close a ListenKey (USER_STREAM)
MarginStreamApi CreateMarginListenKey Post /sapi/v1/userDataStream Create a ListenKey (USER_STREAM)
MarginStreamApi DelayMarginListenKey Put /sapi/v1/userDataStream Ping/Keep-alive a ListenKey (USER_STREAM)
MarketApi Depth Get /api/v3/depth Order Book
MarketApi GetAggregateTrades Get /api/v3/aggTrades Compressed/Aggregate Trades List
MarketApi GetAvgPrice Get /api/v3/avgPrice Current Average Price
MarketApi GetBookTicker Get /api/v3/ticker/bookTicker Symbol Order Book Ticker
MarketApi GetCurrentServerTime Get /api/v3/time Check Server Time
MarketApi GetExchangeInfo Get /api/v3/exchangeInfo Exchange Information
MarketApi GetHistoricalTrades Get /api/v3/historicalTrades Old Trade Lookup
MarketApi GetKlines Get /api/v3/klines Kline/Candlestick Data
MarketApi GetRecentTrades Get /api/v3/trades Recent Trades List
MarketApi GetTicker24hrPrice Get /api/v3/ticker/24hr 24hr Ticker Price Change Statistics
MarketApi GetTickerPrice Get /api/v3/ticker/price Symbol Price Ticker
MarketApi Ping Get /api/v3/ping Test Connectivity
MiningApi BlvtGetTokenIn Get /sapi/v1/mining/statistics/user/status Statistic List (USER_DATA)
MiningApi MiningCancelHashrateResaleConfig Post /sapi/v1/mining/hash-transfer/config/cancel Cancel Hashrate Resale configuration (USER_DATA)
MiningApi MiningGetAccounts Get /sapi/v1/mining/statistics/user/list Account List (USER_DATA)
MiningApi MiningGetAlgorithms Get /sapi/v1/mining/pub/algoList Acquiring Algorithm (MARKET_DATA)
MiningApi MiningGetCoins Get /sapi/v1/mining/pub/coinList Acquiring CoinName (MARKET_DATA)
MiningApi MiningGetEarnings Get /sapi/v1/mining/payment/list Earnings List (USER_DATA)
MiningApi MiningGetHashrateResaleDetai Get /sapi/v1/mining/hash-transfer/profit/details Hashrate Resale Details (USER_DATA)
MiningApi MiningGetOtherPayment Get /sapi/v1/mining/payment/other Extra Bonus List (USER_DATA)
MiningApi MiningGetWorkerDetail Get /sapi/v1/mining/worker/detail Request for Detail Miner List (USER_DATA)
MiningApi MiningGetWorkers Get /sapi/v1/mining/worker/list Request for Miner List (USER_DATA)
MiningApi MiningListHashrateResale Get /sapi/v1/mining/hash-transfer/config/details/list Hashrate Resale List (USER_DATA)
MiningApi MiningRequestHashrateResale Post /sapi/v1/mining/hash-transfer/config Hashrate Resale Request (USER_DATA)
SavingsApi LendingChangeFixedOrActivityToDailyPosition Post /sapi/v1/lending/positionChanged Change Fixed/Activity Position to Daily Position (USER_DATA)
SavingsApi LendingGetAccount Get /sapi/v1/lending/union/account Lending Account (USER_DATA)
SavingsApi LendingGetFixedOrActivityProjectPosition Get /sapi/v1/lending/project/position/list Get Fixed/Activity Project Position (USER_DATA)
SavingsApi LendingGetFixedOrActivityProjects Get /sapi/v1/lending/project/list Get Fixed/Activity Project List(USER_DATA)
SavingsApi LendingGetFlexibleProductPosition Get /sapi/v1/lending/daily/token/position Get Flexible Product Position (USER_DATA)
SavingsApi LendingGetInterestHistory Get /sapi/v1/lending/union/interestHistory Get Interest History (USER_DATA)
SavingsApi LendingGetLeftDailyPurchaseQuotaOfFlexibleProduct Get /sapi/v1/lending/daily/userLeftQuota Get Left Daily Purchase Quota of Flexible Product (USER_DATA)
SavingsApi LendingGetLeftDailyRedemptionQuotaOfFlexibleProduct Get /sapi/v1/lending/daily/userRedemptionQuota Get Left Daily Redemption Quota of Flexible Product (USER_DATA)
SavingsApi LendingGetPurchaseRecord Get /sapi/v1/lending/union/purchaseRecord Get Purchase Record (USER_DATA)
SavingsApi LendingGetRedemptionRecord Get /sapi/v1/lending/union/redemptionRecord Get Redemption Record (USER_DATA)
SavingsApi LendingListFlexibleProducts Get /sapi/v1/lending/daily/product/list Get Flexible Product List (USER_DATA)
SavingsApi LendingPurchaseFixedOrActivityProject Post /sapi/v1/lending/customizedFixed/purchase Purchase Fixed/Activity Project (USER_DATA)
SavingsApi LendingPurchaseFlexibleProduct Post /sapi/v1/lending/daily/purchase Purchase Flexible Product (USER_DATA)
SavingsApi LendingRedeemFlexibleProduct Post /sapi/v1/lending/daily/redeem Redeem Flexible Product (USER_DATA)
StreamApi CloseSpotListenKey Delete /api/v3/userDataStream Close a ListenKey (USER_STREAM)
StreamApi CreateSpotListenKey Post /api/v3/userDataStream Create a ListenKey (USER_STREAM)
StreamApi DelaySpotListenKey Put /api/v3/userDataStream Ping/Keep-alive a ListenKey (USER_STREAM)
SubAccountApi SubaccountCreateVirtualSubAccount Post /sapi/v1/sub-account/virtualSubAccount Create a Virtual Sub-account(For Master Account)
SubAccountApi SubaccountDeposit Post /sapi/v1/managed-subaccount/deposit Deposit assets into the managed sub-account(For Investor Master Account)
SubAccountApi SubaccountEnableFutures Post /sapi/v1/sub-account/futures/enable Enable Futures for Sub-account (For Master Account)
SubAccountApi SubaccountEnableLeverageToken Post /sapi/v1/sub-account/blvt/enable Enable Leverage Token for Sub-account (For Master Account)
SubAccountApi SubaccountEnableMargin Post /sapi/v1/sub-account/margin/enable Enable Margin for Sub-account (For Master Account)
SubAccountApi SubaccountFuturesInternalTransfer Post /sapi/v1/sub-account/futures/internalTransfer Sub-account Futures Asset Transfer (For Master Account)
SubAccountApi SubaccountFuturesTransfer Post /sapi/v1/sub-account/futures/transfer Transfer for Sub-account (For Master Account)
SubAccountApi SubaccountGetAssetDetail Get /sapi/v1/managed-subaccount/asset Managed sub-account asset details(For Investor Master Account)
SubAccountApi SubaccountGetAssets Get /sapi/v3/sub-account/assets Sub-account Assets (For Master Account)
SubAccountApi SubaccountGetDepositAddress Get /sapi/v1/capital/deposit/subAddress Sub-account Spot Assets Summary (For Master Account)
SubAccountApi SubaccountGetDepositRecords Get /sapi/v1/capital/deposit/subHisrec Sub-account Deposit History (For Master Account)
SubAccountApi SubaccountGetDetailFuturesAccount Get /sapi/v2/sub-account/futures/account Detail on Sub-account's Futures Account V2 (For Master Account)
SubAccountApi SubaccountGetFuturesAccountDetail Get /sapi/v1/sub-account/futures/account Detail on Sub-account's Futures Account (For Master Account)
SubAccountApi SubaccountGetFuturesAccountSummary Get /sapi/v1/sub-account/futures/accountSummary Summary of Sub-account's Futures Account (For Master Account)
SubAccountApi SubaccountGetFuturesAccountSummaryV2 Get /sapi/v2/sub-account/futures/accountSummary Summary of Sub-account's Futures Account V2 (For Master Account)
SubAccountApi SubaccountGetFuturesPositionRisk Get /sapi/v1/sub-account/futures/positionRisk Futures Position-Risk of Sub-account (For Master Account)
SubAccountApi SubaccountGetFuturesPositionRiskV2 Get /sapi/v2/sub-account/futures/positionRisk Futures Position-Risk of Sub-account V2 (For Master Account)
SubAccountApi SubaccountGetFuturesTransferRecord Get /sapi/v1/sub-account/futures/internalTransfer Sub-account Futures Asset Transfer History (For Master Account)
SubAccountApi SubaccountGetMarginAccountDetail Get /sapi/v1/sub-account/margin/account Detail on Sub-account's Margin Account (For Master Account)
SubAccountApi SubaccountGetMarginAccountSummary Get /sapi/v1/sub-account/margin/accountSummary Summary of Sub-account's Margin Account (For Master Account)
SubAccountApi SubaccountGetSpotSummary Get /sapi/v1/sub-account/spotSummary Sub-account Spot Assets Summary (For Master Account)
SubAccountApi SubaccountGetSpotTransferHistory Get /sapi/v1/sub-account/sub/transfer/history Sub-account Spot Asset Transfer History (For Master Account)
SubAccountApi SubaccountGetTransferHistory Get /sapi/v1/sub-account/transfer/subUserHistory Sub-account Transfer History (For Sub-account)
SubAccountApi SubaccountGetUniversalTransferRecord Get /sapi/v1/sub-account/universalTransfer Universal Transfer History (For Master Account)
SubAccountApi SubaccountList Get /sapi/v1/sub-account/list Query Sub-account List (For Master Account)
SubAccountApi SubaccountMarginTransfer Post /sapi/v1/sub-account/margin/transfer Margin Transfer for Sub-account (For Master Account)
SubAccountApi SubaccountStatus Get /sapi/v1/sub-account/status Sub-account's Status on Margin/Futures (For Master Account)
SubAccountApi SubaccountTransferBetweenSub Post /sapi/v1/sub-account/transfer/subToSub Transfer to Sub-account of Same Master (For Sub-account)
SubAccountApi SubaccountTransferToMaster Post /sapi/v1/sub-account/transfer/subToMaster Transfer to Master (For Sub-account)
SubAccountApi SubaccountUniversalTransfer Post /sapi/v1/sub-account/universalTransfer Universal Transfer (For Master Account)
SubAccountApi SubaccountWithdrawlAssets Post /sapi/v1/managed-subaccount/withdraw Withdrawl assets from the managed sub-account(For Investor Master Account)
TradeApi BatchCancelOrders Delete /api/v3/orderList Cancel OCO (TRADE)
TradeApi CancelAllSymbolOrders Delete /api/v3/openOrders Cancel all Open Orders on a Symbol (TRADE)
TradeApi CancelOrder Delete /api/v3/order Cancel Order (TRADE)
TradeApi CreateOcoOrder Post /api/v3/order/oco New OCO (TRADE)
TradeApi CreateOrder Post /api/v3/order New Order (TRADE)
TradeApi GetAccount Get /api/v3/account Account Information (USER_DATA)
TradeApi GetAllOcoOrder Get /api/v3/allOrderList Query all OCO (USER_DATA)
TradeApi GetAllOrders Get /api/v3/allOrders All Orders (USER_DATA)
TradeApi GetAllSymbolOrder Get /api/v3/openOrders Current Open Orders (USER_DATA)
TradeApi GetOpenedOcoOrder Get /api/v3/openOrderList Query Open OCO (USER_DATA)
TradeApi GetOrder Get /api/v3/order Query Order (USER_DATA)
TradeApi GetOrderRateLimit Get /api/v3/rateLimit/order Query Current Order Count Usage (TRADE)
TradeApi GetSpecificOcoOrder Get /api/v3/orderList Query OCO (USER_DATA)
TradeApi GetTrades Get /api/v3/myTrades Account Trade List (USER_DATA)
TradeApi TestOrderCreation Post /api/v3/order/test Test New Order (TRADE)
WalletApi ApplyWithdraw Post /sapi/v1/capital/withdraw/apply Withdraw (USER_DATA)
WalletApi DisableFastWithdraw Post /sapi/v1/account/disableFastWithdrawSwitch Disable Fast Withdraw Switch (USER_DATA)
WalletApi EnableFastWithdraw Post /sapi/v1/account/enableFastWithdrawSwitch Enable Fast Withdraw Switch (USER_DATA)
WalletApi GetAccountSnapshot Get /sapi/v1/accountSnapshot Daily Account Snapshot (USER_DATA)
WalletApi GetAccountStatus Get /sapi/v1/account/status Account Status (USER_DATA)
WalletApi GetAllTokenInfo Get /sapi/v1/capital/config/getall All Coins' Information (USER_DATA)
WalletApi GetApiRestrictions Get /sapi/v1/account/apiRestrictions Get API Key Permission (USER_DATA)
WalletApi GetApiTradingStatus Get /sapi/v1/account/apiTradingStatus Account API Trading Status (USER_DATA)
WalletApi GetAssetDetail Get /sapi/v1/asset/assetDetail Asset Detail (USER_DATA)
WalletApi GetAssetDividendHistory Get /sapi/v1/asset/assetDividend Asset Dividend Record (USER_DATA)
WalletApi GetDepositAddress Get /sapi/v1/capital/deposit/address Deposit Address (supporting network) (USER_DATA)
WalletApi GetDepositRecords Get /sapi/v1/capital/deposit/hisrec Deposit History(supporting network) (USER_DATA)
WalletApi GetDustLog Get /sapi/v1/asset/dribblet DustLog(USER_DATA)
WalletApi GetFundingAsset Post /sapi/v1/asset/get-funding-asset Funding Wallet (USER_DATA)
WalletApi GetSystemStatus Get /sapi/v1/system/status System Status (System)
WalletApi GetTradeFee Get /sapi/v1/asset/tradeFee Trade Fee (USER_DATA)
WalletApi GetTransferRecord Get /sapi/v1/asset/transfer Query User Universal Transfer History (USER_DATA)
WalletApi GetWithdrawRecords Get /sapi/v1/capital/withdraw/history Withdraw History (supporting network) (USER_DATA)
WalletApi Transfer Post /sapi/v1/asset/transfer User Universal Transfer (USER_DATA)
WalletApi TransferDustToBnb Post /sapi/v1/asset/dust Dust Transfer (USER_DATA)

Documentation For Models

Documentation For Authorization

ApiKeyAuth

  • Type: API key
  • API key parameter name: X-MBX-APIKEY
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: X-MBX-APIKEY and passed in as the auth context for each request.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

qishiwenjun@163.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages