From 9f6361e6054596b6c407a68bb36fe9664a9ed6d8 Mon Sep 17 00:00:00 2001 From: ryuji-hashimoto0110 Date: Sun, 7 Apr 2024 14:43:08 +0900 Subject: [PATCH] allow order_id and order_time to be None. --- pams/logs/base.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pams/logs/base.py b/pams/logs/base.py index e11977b..6b72233 100644 --- a/pams/logs/base.py +++ b/pams/logs/base.py @@ -128,10 +128,10 @@ class ExpirationLog(Log): def __init__( self, - order_id: int, + order_id: Optional[int], market_id: int, time: int, - order_time: int, + order_time: Optional[int], agent_id: int, is_buy: bool, kind: OrderKind, @@ -153,10 +153,10 @@ def __init__( price (float, Optional): order price. ttl (int, Optional): time to order expiration. """ - self.order_id: int = order_id + self.order_id: Optional[int] = order_id self.market_id: int = market_id self.time: int = time - self.order_time: int = order_time + self.order_time: Optional[int] = order_time self.agent_id: int = agent_id self.is_buy: bool = is_buy self.kind: OrderKind = kind