CEX Wallet Status¶
Deposit and withdrawal availability for centralized exchange assets.
Usage¶
Sync
from datamaxi import Datamaxi
maxi = Datamaxi(api_key="YOUR_API_KEY")
exchanges = maxi.cex.wallet_status.exchanges()
assets = maxi.cex.wallet_status.assets(exchange="binance")
status = maxi.cex.wallet_status(exchange="binance", asset="BTC")
Async
import asyncio
from datamaxi.aio import AsyncDatamaxi
async def main():
async with AsyncDatamaxi(api_key="YOUR_API_KEY") as client:
exchanges = await client.cex.wallet_status.exchanges()
assets = await client.cex.wallet_status.assets(exchange="binance")
status = await client.cex.wallet_status(exchange="binance", asset="BTC")
asyncio.run(main())
Notes¶
- Set
pandas=Falseto return the raw dict response.
Bases: Resource
Client to fetch transfer status data from DataMaxi+ API.
Parameters:
-
api_key(str, default:None) –The DataMaxi+ API key
-
**kwargs(Any, default:{}) –Keyword arguments used by
datamaxi.api.API.
__call__
¶
__call__(
exchange: str, asset: str, pandas: bool = True
) -> Union[pd.DataFrame, List[WalletStatusRow]]
Fetch transfer status data
GET /api/v1/wallet-status
https://docs.datamaxiplus.com/rest/cex/wallet-status/data
Parameters:
-
exchange(str) –Exchange name
-
asset(str) –Asset name
-
pandas(bool, default:True) –Return data as pandas DataFrame
Returns:
-
Union[DataFrame, List[WalletStatusRow]]–Wallet status data
exchanges
¶
exchanges() -> List[str]
Fetch supported exchanges for wallet status data.
GET /api/v1/wallet-status/exchanges
https://docs.datamaxiplus.com/rest/cex/wallet-status/exchanges
Returns:
-
List[str]–List of supported exchange
assets
¶
assets(exchange: str) -> List[str]
Fetch supported assets for wallet status data.
GET /api/v1/wallet-status/assets
https://docs.datamaxiplus.com/rest/cex/wallet-status/assets
Parameters:
-
exchange(str) –Exchange name
Returns:
-
List[str]–List of supported assets