1
0

Document fields and add executed time
All checks were successful
Test Python / Test (push) Successful in 27s

This commit is contained in:
Jon Michael Aanes 2024-07-22 16:04:52 +02:00
parent 677e2af74c
commit 224f3eae69

View File

@ -101,16 +101,26 @@ class TradeOrderDetails:
Includes both well-structured data about the order, and unstructured data
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_amount: Decimal
output_asset: Asset
output_amount: Decimal
fee_asset: Asset
fee_amount: Decimal
executed_time: datetime.datetime
order_id: object
raw_order_details: object