BYBIT撤消活动委托

1.USDT永续合约撤消活动委托:

logging.info(test.order_cancel('BITUSDT','d265a3ea-d5a3-4d17-865b-6863bfc13003'))

# 返回
 {'ret_code': 0, 'ret_msg': 'OK', 'ext_code': '', 'ext_info': '', 'result': {'order_id': 'd265a3ea-d5a3-4d17-865b-6863bfc13003'}, 'time_now': '1637673785.439427', 'rate_limit_status': 99, 'rate_limit_reset_ms': 1637673785435, 'rate_limit': 100}

2.反向永续拿合约撤消活动委托:

logging.info(test.order_cancel('BITUSD','a297af93-df29-4dc3-afb0-c3c88d2cc50d'))

# 返回
 {'ret_code': 0, 'ret_msg': 'OK', 'ext_code': '', 'ext_info': '', 'result': {'user_id': 3506111, 'order_id': 'a297af93-df29-4dc3-afb0-c3c88d2cc50d', 'symbol': 'BITUSD', 'side': 'Sell', 'order_type': 'Limit', 'price': 2.701, 'qty': 1, 'time_in_force': 'GoodTillCancel', 'order_status': 'New', 'last_exec_time': 1637657622.900386, 'last_exec_price': 0, 'leaves_qty': 1, 'cum_exec_qty': 0, 'cum_exec_value': 0, 'cum_exec_fee': 0, 'reject_reason': 'EC_NoError', 'order_link_id': '', 'created_at': '2021-11-23T08:53:42.9Z', 'updated_at': '2021-11-23T13:26:19.9Z', 'take_profit': '', 'stop_loss': '', 'tp_trigger_by': '', 'sl_trigger_by': ''}, 'time_now': '1637673979.901385', 'rate_limit_status': 99, 'rate_limit_reset_ms': 1637673979897, 'rate_limit': 100}

3.现货撤消活动委托:

logging.info(test.order_cancel('bitusdt','1031234017554391808'))

# 返回
{'ret_code': 0, 'ret_msg': '', 'ext_code': None, 'ext_info': None, 'result': {'accountId': '4063428', 'symbol': 'BITUSDT', 'orderLinkId': '1637668674590267', 'orderId': '1031234017554391808', 'transactTime': '1637668674593', 'price': '2.701', 'origQty': '3.71', 'executedQty': '0', 'status': 'CANCELED', 'timeInForce': 'GTC', 'type': 'LIMIT', 'side': 'SELL'}}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值