import pandas as pd
import requests
import json
def get_market_fund_flow():
"""
东方财富网-数据中心-资金流向-大盘
https://data.eastmoney.com/zjlx/dpzjlx.html
:return: 近期大盘的资金流数据
:rtype: pandas.DataFrame
"""
url = "http://push2his.eastmoney.com/api/qt/stock/fflow/daykline/get"
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36",
}
params = {
"lmt": "0",
"klt": "101",
"secid": "1.000001",
"secid2": "0.399001",
"fields1": "f1,f2,f3,f7",
"fields2": "f51,f52,f53,f54,f55,f56,f57,f58,f59,f60,f61,f62,f63,f64,f65",
"ut": "b2884a393a59ad64002292a3e90d46a5
python量化数据7:获取东方财富每日大盘资金流入流出数据
最新推荐文章于 2025-03-19 12:23:03 发布