股票當沖的處理有問題
Opened this issue · 0 comments
File "C:\Users\ypoch\miniconda3\envs\vnpy_310\lib\site-packages\vnpy_sinopac\gateway\sinopac_gateway.py", line 229, in relay_callback
self.impl_order(self.api.stock_account,relay_data)
│ │ │ │ │ └ {'operation': {'op_type': 'New', 'op_code': '88', 'op_msg': '集保賣出餘股數不足,餘股數 0 股'}, 'order': {'id': 'fa0da47d', 'seqno': '40001...
│ │ │ │ └ StockAccount(person_id='', broker_id='9A9', account_id='1234567', signed=True, username='xxx')
│ │ │ └ <shioaji.shioaji.Shioaji object at 0x000002128AB2E500>
│ │ └ <vnpy_sinopac.gateway.sinopac_gateway.SinopacGateway object at 0x00000212DF478850>
│ └ <function SinopacGateway.impl_order at 0x00000212DB61ECB0>
└ <vnpy_sinopac.gateway.sinopac_gateway.SinopacGateway object at 0x00000212DF478850>
File "C:\Users\ypoch\miniconda3\envs\vnpy_310\lib\site-packages\vnpy_sinopac\gateway\sinopac_gateway.py", line 260, in impl_order
(relay_data["order"]["order_cond"], sj_constant.StockFirstSell.No)
│ └ <module 'shioaji.constant' from 'C:\Users\ypoch\miniconda3\envs\vnpy_310\lib\site-packages\shioaji\constant.py'>
└ {'operation': {'op_type': 'New', 'op_code': '88', 'op_msg': '集保賣出餘股數不足,餘股數 0 股'}, 'order': {'id': 'fa0da47d', 'seqno': '40001...
AttributeError: module 'shioaji.constant' has no attribute 'StockFirstSell'