Skip to content

Commit d56ac5c

Browse files
committed
[Server] Add upload time in UTC
1 parent 77ff7cf commit d56ac5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

triangular_arbitrage/detector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import os
2-
import time
2+
import datetime
33
import ccxt.async_support as ccxt
44
from typing import List
55
from tqdm.auto import tqdm
@@ -127,6 +127,6 @@ def upload_result(best_opportunities, best_profit, exchange_id):
127127
'best_opportunity': [str(best_opportunity.symbol) for best_opportunity in best_opportunities],
128128
'best_profit': best_profit,
129129
'exchange_id': exchange_id,
130-
'timestamp': time.time()
130+
'timestamp': datetime.datetime.utcnow().timestamp()
131131
}
132132
redis_client.json().set(f"{os.getenv(REDIS_KEY_ENV, None)}:{exchange_id}", '$', data)

0 commit comments

Comments
 (0)