Skip to content

Commit

Permalink
更新上期所行情接口
Browse files Browse the repository at this point in the history
更新上期所行情接口
  • Loading branch information
timercrack committed May 13, 2024
1 parent fe2e12c commit acee43b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trader/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ async def update_from_shfe(day: datetime.datetime) -> bool:
async with aiohttp.ClientSession() as session:
day_str = day.strftime('%Y%m%d')
await max_conn_shfe.acquire()
async with session.get(f'http://{shfe_ip}/data/dailydata/kx/kx{day_str}.dat') as response:
async with session.get(f'http://{shfe_ip}/data/tradedata/future/dailydata/kx{day_str}.dat') as response:
rst = await response.read()
rst_json = json.loads(rst)
max_conn_shfe.release()
Expand Down

0 comments on commit acee43b

Please sign in to comment.