Document fields and add executed time
All checks were successful
Test Python / Test (push) Successful in 27s
All checks were successful
Test Python / Test (push) Successful in 27s
This commit is contained in:
parent
677e2af74c
commit
224f3eae69
|
@ -101,16 +101,26 @@ class TradeOrderDetails:
|
||||||
|
|
||||||
Includes both well-structured data about the order, and unstructured data
|
Includes both well-structured data about the order, and unstructured data
|
||||||
from the backend. The unstructured data might be needed for tax purposes.
|
from the backend. The unstructured data might be needed for tax purposes.
|
||||||
|
|
||||||
|
Fields:
|
||||||
|
- `input_asset`: Asset that have been sold
|
||||||
|
- `input_amount`: Amount of asset that has been sold
|
||||||
|
- `output_asset`: Asset that have been bought
|
||||||
|
- `output_amount`: Amount of asset that have been bought.
|
||||||
|
- `fee_asset`: Asset used to pay fee.
|
||||||
|
- `fee_amount`: Amount of asset that have been used to pay fee.
|
||||||
|
- `executed_time`: Point in time when order was executed.
|
||||||
|
- `order_id`: Unique identifier of order. Determined by backend.
|
||||||
|
- `raw_order_details`: For storing arbitrary unstructured data from backend.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
input_asset: Asset
|
input_asset: Asset
|
||||||
input_amount: Decimal
|
input_amount: Decimal
|
||||||
|
|
||||||
output_asset: Asset
|
output_asset: Asset
|
||||||
output_amount: Decimal
|
output_amount: Decimal
|
||||||
|
|
||||||
fee_asset: Asset
|
fee_asset: Asset
|
||||||
fee_amount: Decimal
|
fee_amount: Decimal
|
||||||
|
executed_time: datetime.datetime
|
||||||
|
|
||||||
order_id: object
|
order_id: object
|
||||||
raw_order_details: object
|
raw_order_details: object
|
||||||
|
|
Loading…
Reference in New Issue
Block a user