fa45d8aa5f
- health_checklist.json: 192.168.1.122→node122
- ocr_client.py: docstring IP→node122
- docs/market-data-requirements.md: IP→node122
- 所有API调用通过ProxyHandler({})绕过系统代理
Privoxy对node122:18003返回500,直连正常
39 lines
963 B
Python
39 lines
963 B
Python
#!/usr/bin/env python
|
|
# -*- coding:utf-8 -*-
|
|
"""
|
|
Date: 2024/1/17 19:30
|
|
Desc: 东方财富网-期货行情-品种及交易规则
|
|
https://portal.eastmoneyfutures.com/pages/service/jyts.html#jyrl
|
|
"""
|
|
|
|
import pandas as pd
|
|
import requests
|
|
from akshare.utils.cons import headers
|
|
|
|
|
|
def futures_rule_em() -> pd.DataFrame:
|
|
"""
|
|
东方财富网-期货行情-品种及交易规则
|
|
https://portal.eastmoneyfutures.com/pages/service/jyts.html#jyrl
|
|
:return: 品种及交易规则
|
|
:rtype: pandas.DataFrame
|
|
"""
|
|
url = "https://eastmoneyfutures.com/api/ComManage/GetPZJYInfo"
|
|
r = requests.get(url, headers=headers)
|
|
data_json = r.json()
|
|
temp_df = pd.DataFrame(data_json["Data"])
|
|
return temp_df
|
|
|
|
|
|
def futures_trading_hours_em():
|
|
"""
|
|
东方财富网-期货交易时间
|
|
https://qhweb.eastmoney.com/tradinghours
|
|
"""
|
|
pass
|
|
|
|
|
|
if __name__ == "__main__":
|
|
futures_rule_em_df = futures_rule_em()
|
|
print(futures_rule_em_df)
|