Class Wallet
java.lang.Object
com.binance.connector.client.impl.spot.Wallet
Wallet Endpoints
All endpoints under the Wallet Endpoint section of the API documentation will be implemented in this class.Response will be returned in String format.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccountSnapshot(LinkedHashMap<String,Object> parameters)
GET /sapi/v1/accountSnapshotaccountStatus(LinkedHashMap<String,Object> parameters)
Fetch account status detail.apiPermission(LinkedHashMap<String,Object> parameters)
GET /sapi/v1/account/apiRestrictionsapiTradingStatus(LinkedHashMap<String,Object> parameters)
Fetch account api trading status detail.assetDetail(LinkedHashMap<String,Object> parameters)
Fetch details of assets supported on Binance.assetDividend(LinkedHashMap<String,Object> parameters)
Query asset dividend record.coinInfo(LinkedHashMap<String,Object> parameters)
Get information of coins (available for deposit and withdraw) for user.depositAddress(LinkedHashMap<String,Object> parameters)
Fetch deposit address with network.depositHistory(LinkedHashMap<String,Object> parameters)
Fetch deposit history.disableFastWithdraw(LinkedHashMap<String,Object> parameters)
POST /sapi/v1/account/disableFastWithdrawSwitchdustLog(LinkedHashMap<String,Object> parameters)
Fetch account api trading status detail.dustTransfer(LinkedHashMap<String,Object> parameters)
Convert dust assets to BNB.enableFastWithdraw(LinkedHashMap<String,Object> parameters)
POST /sapi/v1/account/enableFastWithdrawSwitchfundingWallet(LinkedHashMap<String,Object> parameters)
POST /sapi/v1/asset/get-funding-assetqueryUniversalTransfer(LinkedHashMap<String,Object> parameters)
GET /sapi/v1/asset/transferFetch system status.tradeFee(LinkedHashMap<String,Object> parameters)
Fetch trade fee.universalTransfer(LinkedHashMap<String,Object> parameters)
You need to enable Permits Universal Transfer option for the api key which requests this endpoint.withdraw(LinkedHashMap<String,Object> parameters)
Submit a withdraw request.withdrawHistory(LinkedHashMap<String,Object> parameters)
Fetch withdraw history.
-
Constructor Details
-
Wallet
-
-
Method Details
-
systemStatus
Fetch system status.
GET /sapi/v1/system/status- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#system-status-system
-
coinInfo
Get information of coins (available for deposit and withdraw) for user.
GET /sapi/v1/capital/config/getall- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#all-coins-39-information-user_data
-
accountSnapshot
GET /sapi/v1/accountSnapshot- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
type -- mandatory/string -- "SPOT", "MARGIN", "FUTURES"
startTime -- optional/long
endTime -- optional/long
limit -- optional/int -- min 5, max 30, default 5
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#daily-account-snapshot-user_data
-
disableFastWithdraw
POST /sapi/v1/account/disableFastWithdrawSwitch- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#disable-fast-withdraw-switch-user_data
-
enableFastWithdraw
POST /sapi/v1/account/enableFastWithdrawSwitch- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#enable-fast-withdraw-switch-user_data
-
withdraw
Submit a withdraw request.
POST /sapi/v1/capital/withdraw/apply- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
coin -- mandatory/string
withdrawOrderId -- optional/string -- client id for withdraw
network -- optional/string
address -- mandatory/string
addressTag -- optional/string -- Secondary address identifier for coins like XRP,XMR etc.
amount -- mandatory/decimal
transactionFeeFlag -- optional/boolean -- When making internal transfer, true for returning the fee to the destination account; false for returning the fee back to the departure account. Default false.
name -- optional/string -- Description of the address. Space in name should be encoded into %20.
walletType -- optional/int -- The wallet type for withdraw,0-spot wallet ,1-funding wallet.Default spot wallet
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#withdraw-user_data
-
depositHistory
Fetch deposit history.
GET /sapi/v1/capital/deposit/hisrec- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
coin -- optional/string
status -- optional/int -- 0(0:pending,6: credited but cannot withdraw, 1:success)
startTime -- optional/long -- Default: 90 days from current timestamp
endTime -- optional/long -- Default: present timestamp
offset -- optional/int -- Default:0
limit -- optional/int -- Default:1000, Max:1000
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#deposit-history-supporting-network-user_data
-
withdrawHistory
Fetch withdraw history.
GET /sapi/v1/capital/withdraw/history- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
coin -- optional/string
status -- optional/int -- 0(0:Email Sent,1:Cancelled 2:Awaiting Approval 3:Rejected 4:Processing 5:Failure 6:Completed)
startTime -- optional/long -- Default: 90 days from current timestamp
endTime -- optional/long -- Default: present timestamp
offset -- optional/int
limit -- optional/int -- Default:1000, Max:1000
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#withdraw-history-supporting-network-user_data
-
depositAddress
Fetch deposit address with network.
GET /sapi/v1/capital/withdraw/history- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
coin -- mandatory/string
network -- optional/string
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#deposit-address-supporting-network-user_data
-
accountStatus
Fetch account status detail.
GET /sapi/v1/account/status- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#account-status-user_data
-
apiTradingStatus
Fetch account api trading status detail.
GET /sapi/v1/account/apiTradingStatus- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#account-api-trading-status-user_data
-
dustLog
Fetch account api trading status detail.
GET /sapi/v1/account/apiTradingStatus- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
startTime -- optional/long
endTime -- optional/long
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#dustlog-user_data
-
dustTransfer
Convert dust assets to BNB.
POST /sapi/v1/asset/dust- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
asset -- mandatory/array -- The asset being converted. For example: asset=BTC&asset=USDT
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#dust-transfer-user_data
-
assetDividend
Query asset dividend record.
GET /sapi/v1/asset/assetDividend- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
asset -- optional/string
startTime -- optional/long
endTime -- optional/long
limit -- optional/int -- Default 20, max 500
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#asset-dividend-record-user_data
-
assetDetail
Fetch details of assets supported on Binance.
GET /sapi/v1/asset/assetDetail- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
asset -- optional/string
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#asset-detail-user_data
-
tradeFee
Fetch trade fee.
GET /sapi/v1/asset/tradeFee- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
symbol -- optional/string
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#trade-fee-user_data
-
universalTransfer
You need to enable Permits Universal Transfer option for the api key which requests this endpoint.
POST /sapi/v1/asset/transfer- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
type -- mandatory/enum
asset -- mandatory/string
amount -- mandatory/string
fromSymbol -- optional/string
toSymbol -- optional/string
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#user-universal-transfer-user_data
-
queryUniversalTransfer
GET /sapi/v1/asset/transfer- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
type -- mandatory/enum
startTime -- optional/long
endTime -- optional/long
current -- optional/int -- Default 1
size -- optional/int -- Default 10, Max 100
fromSymbol -- optional/string
toSymbol -- optional/string
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#query-user-universal-transfer-history-user_data
-
fundingWallet
POST /sapi/v1/asset/get-funding-asset- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
asset -- optional/string
needBtcValuation -- optional/string -- true or false
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#funding-wallet-user_data
-
apiPermission
GET /sapi/v1/account/apiRestrictions- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#get-api-key-permission-user_data
-