1
0

Executed time
Some checks failed
Test Python / Test (push) Failing after 24s

This commit is contained in:
Jon Michael Aanes 2024-07-22 16:05:42 +02:00
parent a0b1ee9ae1
commit dd9a4c3d5d
3 changed files with 6 additions and 1 deletions

View File

@ -68,7 +68,8 @@ most mature on the danish market, and does support KuCoin.
* Show errors to log.
* Stop loop and exit with results, and error indicator.
- [ ] Document configuration
- [ ] Document auditing
- [ ] Document code auditing
- [X] Ensure sell time is included in order details
- [X] Log all trades to CSV file.
- [X] Collect information during the run and output after run

View File

@ -10,6 +10,7 @@ class CsvFileLogger:
def __call__(self, trade_order: fin_depo.data.TradeOrderDetails):
fieldnames: list[str] = [
'executed_time',
'input_asset',
'input_amount',
'output_asset',

View File

@ -30,7 +30,10 @@ class SellerMock(fin_depo.data.DepoFetcher):
assert input_amount <= self.amount_left, 'Attempt to sell too much'
self.amount_left -= input_amount
executed_time = datetime.datetime.now(tz=datetime.UTC)
return fin_depo.data.TradeOrderDetails(
executed_time = executed_time,
input_asset=input_asset,
input_amount=input_amount,
output_asset=output_asset,