assets_history
Assets history.
This module contains the data classes for the assets history response.
Classes:
Transaction
: ATypedDict
that represents the structure of the transactionAssetsHistoryResponse
: ATypedDict
that represents the structure of the assets history response
AssetsHistoryResponse
Bases: TypedDict
Assets history response.
Attributes:
Name | Type | Description |
---|---|---|
message |
str
|
Message. |
has_paginate |
int
|
Has paginate. |
total_data |
int
|
Total data. |
current_page |
int
|
Current page. |
from_ |
int
|
From. |
to |
int
|
To. |
per_page |
int
|
Per page. |
results |
list[Transaction]
|
Results. |
Examples:
>>> AssetsHistoryResponse(
... message="message",
... has_paginate=1,
... total_data=1,
... current_page=1,
... from_=1,
... to=1,
... per_page=1,
... results=[
... {
... "id": 1,
... "name": "name",
... "fa_name": "fa_name",
... "symbol": "symbol",
... "logo": "logo",
... "value": "value",
... "done_value": "done_value",
... "type": 1,
... "transaction_code": "transaction_code",
... "type_text": "type_text",
... "reason_type": "reason_type",
... "reason_text": "reason_text",
... "reason_type_text": "reason_type_text",
... "reason_id": 1,
... "balance_status": 1,
... "balance_status_text": "balance_status_text",
... "commission": 1,
... "created_at": "created_at",
... "created_at_jalali": "created_at_jalali",
... }
... ],
... )
{
"message": "message",
"has_paginate": 1,
"total_data": 1,
"current_page": 1,
"from_": 1,
"to": 1,
"per_page": 1,
"results": [
{
"id": 1,
"name": "name",
"fa_name": "fa_name",
"symbol": "symbol",
"logo": "logo",
"value": "value",
"done_value": "done_value",
"type": 1,
"transaction_code": "transaction_code",
"type_text": "type_text",
"reason_type": "reason_type",
"reason_text": "reason_text",
"reason_type_text": "reason_type_text",
"reason_id": 1,
"balance_status": 1,
"balance_status_text": "balance_status_text",
"commission": 1,
"created_at": "created_at",
"created_at_jalali": "created_at_jalali"
}
]
}
Source code in src/bit24/types/responses/assets_history.py
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 |
|
Transaction
Bases: TypedDict
Transaction.
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
ID. |
name |
str
|
Name. |
fa_name |
str
|
Fa name. |
symbol |
str
|
Symbol. |
logo |
str
|
Logo. |
value |
str
|
Value. |
done_value |
str
|
Done value. |
type |
int
|
Type. |
transaction_code |
str
|
Transaction code. |
type_text |
str
|
Type text. |
reason_type |
str
|
Reason type. |
reason_text |
str
|
Reason text. |
reason_type_text |
str
|
Reason type text. |
reason_id |
int
|
Reason ID. |
balance_status |
int
|
Balance status. |
balance_status_text |
str
|
Balance status text. |
commission |
int
|
Commission. |
created_at |
str
|
Created at. |
created_at_jalali |
str
|
Created at jalali. |
Examples:
>>> Transaction(
... id=1,
... name="name",
... fa_name="fa_name",
... symbol="symbol",
... logo="logo",
... value="value",
... done_value="done_value",
... type=1,
... transaction_code="transaction_code",
... type_text="type_text",
... reason_type="reason_type",
... reason_text="reason_text",
... reason_type_text="reason_type_text",
... reason_id=1,
... balance_status=1,
... balance_status_text="balance_status_text",
... commission=1,
... created_at="created_at",
... created_at_jalali="created_at_jalali",
... )
{
"id": 1,
"name": "name",
"fa_name": "fa_name",
"symbol": "symbol",
"logo": "logo",
"value": "value",
"done_value": "done_value",
"type": 1,
"transaction_code": "transaction_code",
"type_text": "type_text",
"reason_type": "reason_type",
"reason_text": "reason_text",
"reason_type_text": "reason_type_text",
"reason_id": 1,
"balance_status": 1,
"balance_status_text": "balance_status_text",
"commission": 1,
"created_at": "created_at",
"created_at_jalali": "created_at_jalali"
}