add: bot bond selling

This commit is contained in:
2026-05-09 11:54:43 +09:00
parent a2681a1c80
commit d2aa2db84f

View File

@@ -203,14 +203,15 @@ class ExchangeConnection:
): ):
"""Add a new order""" """Add a new order"""
self._write_message( self._write_message(
{ {
"type": "add", "type": "add",
"order_id": order_id, "order_id": order_id,
"symbol": symbol, "symbol": symbol,
"dir": dir, "dir": dir,
"price": price, "price": price,
"size": size, "size": size,
} "tif" : "GFD", # Good-For-Day (주문이 체결되거나 취소될 때까지 유효)
}
) )
def send_convert_message(self, order_id: int, symbol: str, dir: Dir, size: int): def send_convert_message(self, order_id: int, symbol: str, dir: Dir, size: int):