From d2aa2db84f6a7e35722ad86d2346e0184dff5683 Mon Sep 17 00:00:00 2001 From: khwkim1111 Date: Sat, 9 May 2026 11:54:43 +0900 Subject: [PATCH] add: bot bond selling --- bot bond sell.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/bot bond sell.py b/bot bond sell.py index d6e571d..5423dd2 100644 --- a/bot bond sell.py +++ b/bot bond sell.py @@ -203,14 +203,15 @@ class ExchangeConnection: ): """Add a new order""" self._write_message( - { - "type": "add", - "order_id": order_id, - "symbol": symbol, - "dir": dir, - "price": price, - "size": size, - } + { + "type": "add", + "order_id": order_id, + "symbol": symbol, + "dir": dir, + "price": price, + "size": size, + "tif" : "GFD", # Good-For-Day (주문이 체결되거나 취소될 때까지 유효) + } ) def send_convert_message(self, order_id: int, symbol: str, dir: Dir, size: int):