File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -1779,6 +1779,45 @@ def get_trade_fee(self, **params):
17791779 raise BinanceWithdrawException (res ['msg' ])
17801780 return res
17811781
1782+ def get_asset_details (self , ** params ):
1783+ """Fetch details on assets.
1784+
1785+ https://github.com/binance-exchange/binance-official-api-docs/blob/master/wapi-api.md#asset-detail-user_data
1786+
1787+ :param recvWindow: the number of milliseconds the request is valid for
1788+ :type recvWindow: int
1789+
1790+ :returns: API response
1791+
1792+ .. code-block:: python
1793+
1794+ {
1795+ "success": true,
1796+ "assetDetail": {
1797+ "CTR": {
1798+ "minWithdrawAmount": "70.00000000", //min withdraw amount
1799+ "depositStatus": false,//deposit status
1800+ "withdrawFee": 35, // withdraw fee
1801+ "withdrawStatus": true, //withdraw status
1802+ "depositTip": "Delisted, Deposit Suspended" //reason
1803+ },
1804+ "SKY": {
1805+ "minWithdrawAmount": "0.02000000",
1806+ "depositStatus": true,
1807+ "withdrawFee": 0.01,
1808+ "withdrawStatus": true
1809+ }
1810+ }
1811+ }
1812+
1813+ :raises: BinanceWithdrawException
1814+
1815+ """
1816+ res = self ._request_withdraw_api ('get' , 'assetDetail.html' , True , data = params )
1817+ if not res ['success' ]:
1818+ raise BinanceWithdrawException (res ['msg' ])
1819+ return res
1820+
17821821 # Withdraw Endpoints
17831822
17841823 def withdraw (self , ** params ):
Original file line number Diff line number Diff line change @@ -171,6 +171,13 @@ Account
171171 # get fee for one symbol
172172 fees = client.get_trade_fee(symbol = ' BNBBTC' )
173173
174+ `Get asset details <binance.html#binance.client.Client.get_asset_details >`_
175+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
176+
177+ .. code :: python
178+
179+ details = client.get_asset_details()
180+
174181 `Get dust log <binance.html#binance.client.Client.get_dust_log >`_
175182^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
176183
You can’t perform that action at this time.
0 commit comments