  
- UID
- 2
- 积分
- 2942454
- 威望
- 1421263 布
- 龙e币
- 1521191 刀
- 在线时间
- 13696 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2025-4-17

|
[API-数据事件] 东方财富(Python/C++量化) - 数据事件【on_l2order_queue - 委托队列事件】
接收委托队列, L2行情时有效,最优价最大50笔委托量
仅特定券商版本可用
函数原型:- on_l2order_queue(context, l2order_queue)
复制代码 参数:
 - def on_l2order_queue(context, l2order_queue):
- print(l2order_queue)
复制代码 输出:- {'symbol': 'SHSE.600000', 'price': 9.90999984741211, 'total_orders': 155, 'queue_orders': 50, 'queue_volumes': [52452, 600, 1200, 3200, 10000, 1800, 1000, 300, 10000, 2000, 500, 500, 2000, 1000, 2000, 300, 1200, 1400, 1000, 200, 1000, 100, 500, 1000, 500, 2380
- 0, 25400, 1000, 2000, 200, 500, 1200, 5000, 2000, 17600, 5000, 1000, 1300, 1000, 1200, 1000, 3000, 1000, 1000, 15000, 400, 15000, 5000, 2000, 10000], 'created_at': datetime.datetime(2020, 11, 23, 14, 0, 1, tzinfo=tzfile('PRC')), 'side': '', 'volume': 0}
复制代码 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|