add: bot bond selling
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user