You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
grid_trader/example/trade/post_batch_cancel_open_orde...

9 lines
277 B

from huobi.client.trade import TradeClient
from huobi.constant import *
# cancel all the open orders under account
trade_client = TradeClient(api_key=g_api_key, secret_key=g_secret_key)
result = trade_client.cancel_open_orders(account_id=g_account_id)
result.print_object()