Skip to content

Commit 5cd9476

Browse files
committed
fix bug
1 parent b14d3fa commit 5cd9476

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

trader/utils/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,8 @@ async def get_contracts_argument(day: datetime.datetime = None) -> bool:
690690
for cell in inst_data_raw:
691691
if len(cell) > 0:
692692
inst_data.append(cell)
693+
if len(inst_data) == 0:
694+
continue
693695
"""
694696
[0合约,1交易保证金比例(投机),2交易保证金金额(元/手)(投机),3交易保证金比例(套保),4交易保证金金额(元/手)(套保),5涨跌停板比例,
695697
6涨停板价位(元),7跌停板价位(元)]

0 commit comments

Comments
 (0)