assets_information
Assets Information
This module contains the data classes for the assets information response.
Classes:
AssetMarketInfo
: ATypedDict
that represents the structure of the market informationAssetInfo
: ATypedDict
that represents the structure of the asset informationAssetInformationResponse
: ATypedDict
that represents the structure of the asset information response
AssetInfo
Bases: TypedDict
, CoinInfo
Asset Information.
Attributes:
Name | Type | Description |
---|---|---|
coin_type |
int
|
Coin type. |
each_price |
str
|
Each price. |
change_24hr |
str
|
Change 24hr. |
balance |
str
|
Balance. |
available_balance |
str
|
Available balance. |
in_orders |
str
|
In orders. |
balance_irt |
str
|
Balance IRT. |
balance_usdt |
str
|
Balance USDT. |
markets |
list[AssetMarketInfo]
|
Markets. |
Examples:
>>> AssetInfo(
... coin_type=1,
... each_price="each_price",
... change_24hr="change_24hr",
... balance="balance",
... available_balance="available_balance",
... in_orders="in_orders",
... balance_irt="balance_irt",
... balance_usdt="balance_usdt",
... markets=[...], # AssetMarketInfo
... )
{
'coin_type': 1,
'each_price': 'each_price',
'change_24hr': 'change_24hr',
'balance': 'balance',
'available_balance': 'available_balance',
'in_orders': 'in_orders',
'balance_irt': 'balance_irt',
'balance_usdt': 'balance_usdt',
'markets': [...] # AssetMarketInfo
}
Source code in src/bit24/types/responses/assets_information.py
AssetInformationResponse
Bases: TypedDict
Asset Information Response.
Attributes:
Name | Type | Description |
---|---|---|
message |
str
|
Message. |
asset |
list[AssetInfo]
|
Asset. |
Examples:
>>> AssetInformationResponse(
... message="message",
... asset=[...], # AssetInfo
... )
{
'message': 'message',
'asset': [...] # AssetInfo
}
Source code in src/bit24/types/responses/assets_information.py
AssetMarketInfo
Bases: TypedDict
Market Information.
Attributes:
Name | Type | Description |
---|---|---|
base_coin_symbol |
str
|
Base coin symbol. |
quote_coin_symbol |
str
|
Quote coin symbol. |
is_active |
int
|
Is active. |
Examples:
>>> AssetMarketInfo(
... base_coin_symbol="base_coin_symbol",
... quote_coin_symbol="quote_coin_symbol",
... is_active=1,
... )
{
'base_coin_symbol': 'base_coin_symbol',
'quote_coin_symbol': 'quote_coin_symbol',
'is_active': 1
}