From 224f3eae69b7343619e4eeb9f08d3664457a63b5 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Mon, 22 Jul 2024 16:04:52 +0200 Subject: [PATCH] Document fields and add executed time --- fin_depo/data.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/fin_depo/data.py b/fin_depo/data.py index 1203c88..f82d29a 100644 --- a/fin_depo/data.py +++ b/fin_depo/data.py @@ -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