关于基金主题数据如何获取,在后面的博文中会介绍,这里只介绍下,Json数据转DataFrame方便进行数据分析。
从互联网中得到的json数据如下:
{
"Data":{
"hy":[
{
"IndexCode":"817008",
"BKCode":"BK0429",
"BKName":"交运设备",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":8092.45,
"ZDF":2.01,
"ZS_3":-0.03,
"ZS_5":0.05,
"Cinflow":10036722,
"SYL_W":1.1311,
"SYL_M":2.9988,
"SYL_Q":13.0276,
"SYL_1N":14.898,
"SYL_JN":1.3487,
"Cinflow_W":-837861554,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":6,
"TYPE":"1"
},
{
"IndexCode":"817012",
"BKCode":"BK0438",
"BKName":"食品饮料",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":27258.24,
"ZDF":0.13,
"ZS_3":0.01,
"ZS_5":0.09,
"Cinflow":-726734144,
"SYL_W":-0.4119,
"SYL_M":3.9976,
"SYL_Q":9.4295,
"SYL_1N":7.706,
"SYL_JN":0.881,
"Cinflow_W":-5605143360,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":2,
"TYPE":"1"
},
{
"IndexCode":"817017",
"BKCode":"BK0451",
"BKName":"房地产开发",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":14331.09,
"ZDF":0.38,
"ZS_3":0,
"ZS_5":0.09,
"Cinflow":-274966720,
"SYL_W":-1.6409,
"SYL_M":5.4224,
"SYL_Q":9.5946,
"SYL_1N":12.3021,
"SYL_JN":3.6303,
"Cinflow_W":-4255166560,
"LZTS":0,
"LDTS":1,
"JLRTS":0,
"JLCTS":5,
"TYPE":"1"
},
{
"IndexCode":"817018",
"BKCode":"BK0454",
"BKName":"塑料制品",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":12911.51,
"ZDF":1.31,
"ZS_3":-0.04,
"ZS_5":0.06,
"Cinflow":-7067584,
"SYL_W":1.3699,
"SYL_M":1.9829,
"SYL_Q":16.0322,
"SYL_1N":27.5325,
"SYL_JN":1.1767,
"Cinflow_W":-1040491112,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":0,
"TYPE":"1"
},
{
"IndexCode":"817024",
"BKCode":"BK0465",
"BKName":"化学制药",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":32927.64,
"ZDF":1.55,
"ZS_3":0.02,
"ZS_5":0.08,
"Cinflow":-760694784,
"SYL_W":7.0704,
"SYL_M":17.3475,
"SYL_Q":18.64,
"SYL_1N":28.9915,
"SYL_JN":6.5688,
"Cinflow_W":-4419691792,
"LZTS":1,
"LDTS":0,
"JLRTS":1,
"JLCTS":0,
"TYPE":"1"
},
{
"IndexCode":"817027",
"BKCode":"BK0473",
"BKName":"证券",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":132006.58,
"ZDF":0.19,
"ZS_3":-0.02,
"ZS_5":0,
"Cinflow":-183986320,
"SYL_W":-2.4079,
"SYL_M":-4.6107,
"SYL_Q":-0.7838,
"SYL_1N":-8.7758,
"SYL_JN":-3.9232,
"Cinflow_W":-7451563904,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":10,
"TYPE":"1"
},
{
"IndexCode":"817028",
"BKCode":"BK0474",
"BKName":"保险",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":958.59,
"ZDF":-0.09,
"ZS_3":-0.06,
"ZS_5":-0.01,
"Cinflow":-443230912,
"SYL_W":-3.3894,
"SYL_M":-0.1542,
"SYL_Q":-5.2243,
"SYL_1N":-35.4476,
"SYL_JN":-0.4548,
"Cinflow_W":-2335256848,
"LZTS":0,
"LDTS":3,
"JLRTS":0,
"JLCTS":5,
"TYPE":"1"
},
{
"IndexCode":"817029",
"BKCode":"BK0475",
"BKName":"银行",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":2965.94,
"ZDF":-0.12,
"ZS_3":-0.09,
"ZS_5":-0.01,
"Cinflow":-1109561152,
"SYL_W":-0.7808,
"SYL_M":2.2964,
"SYL_Q":-0.6089,
"SYL_1N":-5.7986,
"SYL_JN":2.6028,
"Cinflow_W":-4642330544,
"LZTS":0,
"LDTS":1,
"JLRTS":0,
"JLCTS":3,
"TYPE":"1"
},
{
"IndexCode":"817032",
"BKCode":"BK0478",
"BKName":"有色金属",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":15178.31,
"ZDF":1.11,
"ZS_3":-0.03,
"ZS_5":0.03,
"Cinflow":-228097760,
"SYL_W":1.3933,
"SYL_M":0.3833,
"SYL_Q":6.2467,
"SYL_1N":65.2716,
"SYL_JN":-0.3308,
"Cinflow_W":-911734160,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":2,
"TYPE":"1"
},
{
"IndexCode":"817033",
"BKCode":"BK0479",
"BKName":"钢铁行业",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":7872.06,
"ZDF":0.19,
"ZS_3":-0.05,
"ZS_5":-0.06,
"Cinflow":-141384272,
"SYL_W":-3.358,
"SYL_M":-0.8959,
"SYL_Q":-4.6874,
"SYL_1N":46.5286,
"SYL_JN":0.6113,
"Cinflow_W":-4618616720,
"LZTS":0,
"LDTS":3,
"JLRTS":0,
"JLCTS":5,
"TYPE":"1"
},
{
"IndexCode":"817034",
"BKCode":"BK0480",
"BKName":"航天航空",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":45995.72,
"ZDF":2.05,
"ZS_3":0.02,
"ZS_5":0.03,
"Cinflow":258252144,
"SYL_W":-0.2907,
"SYL_M":-6.0189,
"SYL_Q":3.4599,
"SYL_1N":1.3061,
"SYL_JN":-7.8969,
"Cinflow_W":-2225825424,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":2,
"TYPE":"1"
},
{
"IndexCode":"817035",
"BKCode":"BK0481",
"BKName":"汽车零部件",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":29342.34,
"ZDF":2.13,
"ZS_3":0,
"ZS_5":0.05,
"Cinflow":115466768,
"SYL_W":4.7817,
"SYL_M":3.159,
"SYL_Q":25.1052,
"SYL_1N":45.2987,
"SYL_JN":3.2982,
"Cinflow_W":-1714158832,
"LZTS":1,
"LDTS":0,
"JLRTS":1,
"JLCTS":0,
"TYPE":"1"
},
{
"IndexCode":"817041",
"BKCode":"BK0538",
"BKName":"化学制品",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":26225.3,
"ZDF":1.21,
"ZS_3":0.02,
"ZS_5":0.07,
"Cinflow":-45011328,
"SYL_W":1.1292,
"SYL_M":1.4092,
"SYL_Q":11.9732,
"SYL_1N":65.6494,
"SYL_JN":-0.0518,
"Cinflow_W":-2440956240,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":2,
"TYPE":"1"
},
{
"IndexCode":"817047",
"BKCode":"BK0727",
"BKName":"医疗服务",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":1492.88,
"ZDF":-0.13,
"ZS_3":0,
"ZS_5":0.06,
"Cinflow":-584936224,
"SYL_W":1.1053,
"SYL_M":-0.1899,
"SYL_Q":0.4447,
"SYL_1N":6.149,
"SYL_JN":-1.6367,
"Cinflow_W":-2326019360,
"LZTS":1,
"LDTS":0,
"JLRTS":0,
"JLCTS":4,
"TYPE":"1"
},
{
"IndexCode":"817048",
"BKCode":"BK0728",
"BKName":"环保行业",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":478.29,
"ZDF":1.4,
"ZS_3":0.04,
"ZS_5":0.1,
"Cinflow":-57019376,
"SYL_W":-1.0407,
"SYL_M":-0.8335,
"SYL_Q":9.1239,
"SYL_1N":21.7488,
"SYL_JN":-0.0982,
"Cinflow_W":-2741694157,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":6,
"TYPE":"1"
},
{
"IndexCode":"817051",
"BKCode":"BK0731",
"BKName":"化肥行业",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":1354.79,
"ZDF":0.02,
"ZS_3":0.05,
"ZS_5":0.14,
"Cinflow":-250986720,
"SYL_W":-1.1744,
"SYL_M":-3.5579,
"SYL_Q":1.6057,
"SYL_1N":103.6513,
"SYL_JN":-4.0306,
"Cinflow_W":-2703938128,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":3,
"TYPE":"1"
},
{
"IndexCode":"817052",
"BKCode":"BK0732",
"BKName":"贵金属",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":707.83,
"ZDF":-0.93,
"ZS_3":0.03,
"ZS_5":0.09,
"Cinflow":-381444639,
"SYL_W":3.4824,
"SYL_M":0.9974,
"SYL_Q":3.4446,
"SYL_1N":21.1022,
"SYL_JN":4.2091,
"Cinflow_W":567470377,
"LZTS":0,
"LDTS":1,
"JLRTS":0,
"JLCTS":1,
"TYPE":"1"
},
{
"IndexCode":"817057",
"BKCode":"BK0737",
"BKName":"软件开发",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":900.45,
"ZDF":5.97,
"ZS_3":0.02,
"ZS_5":0.09,
"Cinflow":3392579968,
"SYL_W":4.3528,
"SYL_M":6.9418,
"SYL_Q":18.7443,
"SYL_1N":23.125,
"SYL_JN":4.8388,
"Cinflow_W":-834951872,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":8,
"TYPE":"1"
},
{
"IndexCode":"817059",
"BKCode":"BK0739",
"BKName":"工程机械",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":1163,
"ZDF":0.86,
"ZS_3":0.03,
"ZS_5":0.13,
"Cinflow":-331330503,
"SYL_W":-2.7226,
"SYL_M":-2.078,
"SYL_Q":12.661,
"SYL_1N":45.3514,
"SYL_JN":-1.0457,
"Cinflow_W":-2771214055,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":5,
"TYPE":"1"
},
{
"IndexCode":"817061",
"BKCode":"BK0910",
"BKName":"专用设备",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":2150.77,
"ZDF":1.83,
"ZS_3":-0.02,
"ZS_5":0.05,
"Cinflow":-153602416,
"SYL_W":0.2354,
"SYL_M":-1.1463,
"SYL_Q":15.5328,
"SYL_1N":46.5781,
"SYL_JN":-1.4394,
"Cinflow_W":-4210354176,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":0,
"TYPE":"1"
}
],
"gn":[
{
"IndexCode":"861003",
"BKCode":"BK0492",
"BKName":"煤化工",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":9433.9,
"ZDF":0.71,
"ZS_3":0.02,
"ZS_5":0.03,
"Cinflow":-551503728,
"SYL_W":-1.8977,
"SYL_M":-3.6442,
"SYL_Q":2.1137,
"SYL_1N":78.5577,
"SYL_JN":-1.8956,
"Cinflow_W":-6220662064,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":15,
"TYPE":"2"
},
{
"IndexCode":"861004",
"BKCode":"BK0493",
"BKName":"新能源",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":14932.33,
"ZDF":0.81,
"ZS_3":-0.01,
"ZS_5":0.06,
"Cinflow":-321293312,
"SYL_W":-0.7008,
"SYL_M":-7.1519,
"SYL_Q":8.1354,
"SYL_1N":52.7392,
"SYL_JN":-5.2738,
"Cinflow_W":-11600175360,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":2,
"TYPE":"2"
},
{
"IndexCode":"861005",
"BKCode":"BK0494",
"BKName":"节能环保",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":11227.52,
"ZDF":1.34,
"ZS_3":0,
"ZS_5":0.07,
"Cinflow":-937347696,
"SYL_W":-0.4023,
"SYL_M":-1.1571,
"SYL_Q":12.0613,
"SYL_1N":37.7781,
"SYL_JN":-0.7812,
"Cinflow_W":-15057446864,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":6,
"TYPE":"2"
},
{
"IndexCode":"861020",
"BKCode":"BK0512",
"BKName":"化工原料",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":23501.26,
"ZDF":0.51,
"ZS_3":0.01,
"ZS_5":0.03,
"Cinflow":-388152624,
"SYL_W":-0.0873,
"SYL_M":-0.5378,
"SYL_Q":8.3658,
"SYL_1N":78.3594,
"SYL_JN":-0.9808,
"Cinflow_W":-4657964064,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":9,
"TYPE":"2"
},
{
"IndexCode":"861024",
"BKCode":"BK0519",
"BKName":"稀缺资源",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":19126.59,
"ZDF":0.5,
"ZS_3":-0.01,
"ZS_5":0.04,
"Cinflow":-1365311696,
"SYL_W":-0.481,
"SYL_M":-3.7265,
"SYL_Q":-4.369,
"SYL_1N":69.7966,
"SYL_JN":-1.4432,
"Cinflow_W":-2775808208,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":2,
"TYPE":"2"
},
{
"IndexCode":"861038",
"BKCode":"BK0547",
"BKName":"黄金概念",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":10684.16,
"ZDF":-0.15,
"ZS_3":0,
"ZS_5":0.05,
"Cinflow":-794818960,
"SYL_W":0.9852,
"SYL_M":1.4849,
"SYL_Q":3.607,
"SYL_1N":33.3934,
"SYL_JN":1.6469,
"Cinflow_W":-945428928,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":2,
"TYPE":"2"
},
{
"IndexCode":"861039",
"BKCode":"BK0548",
"BKName":"生物疫苗",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":34306.14,
"ZDF":0.21,
"ZS_3":-0.02,
"ZS_5":0.02,
"Cinflow":-800267040,
"SYL_W":0.6353,
"SYL_M":6.6615,
"SYL_Q":8.2472,
"SYL_1N":12.6106,
"SYL_JN":2.189,
"Cinflow_W":-3123317744,
"LZTS":1,
"LDTS":0,
"JLRTS":1,
"JLCTS":0,
"TYPE":"2"
},
{
"IndexCode":"861043",
"BKCode":"BK0552",
"BKName":"机构重仓",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":13188.77,
"ZDF":1.27,
"ZS_3":-0.01,
"ZS_5":0.06,
"Cinflow":-3216249856,
"SYL_W":0.9803,
"SYL_M":1.2856,
"SYL_Q":9.8477,
"SYL_1N":27.5185,
"SYL_JN":0.5734,
"Cinflow_W":-34866246400,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":9,
"TYPE":"2"
},
{
"IndexCode":"861045",
"BKCode":"BK0554",
"BKName":"物联网",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":11443.53,
"ZDF":3.9,
"ZS_3":0,
"ZS_5":0.06,
"Cinflow":4620670208,
"SYL_W":3.3426,
"SYL_M":2.5773,
"SYL_Q":14.7898,
"SYL_1N":29.1593,
"SYL_JN":1.9952,
"Cinflow_W":-6935571456,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":6,
"TYPE":"2"
},
{
"IndexCode":"861047",
"BKCode":"BK0561",
"BKName":"基本金属",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":22648.85,
"ZDF":0.6,
"ZS_3":-0.05,
"ZS_5":0,
"Cinflow":-513593088,
"SYL_W":0.8934,
"SYL_M":-0.1071,
"SYL_Q":1.8285,
"SYL_1N":50.0872,
"SYL_JN":0.3528,
"Cinflow_W":8167792,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":2,
"TYPE":"2"
},
{
"IndexCode":"861054",
"BKCode":"BK0571",
"BKName":"预盈预增",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":4339.22,
"ZDF":1.23,
"ZS_3":-0.01,
"ZS_5":0.04,
"Cinflow":-4021110784,
"SYL_W":1.3533,
"SYL_M":0.3028,
"SYL_Q":8.2937,
"SYL_1N":35.0255,
"SYL_JN":-0.139,
"Cinflow_W":-24507734016,
"LZTS":1,
"LDTS":0,
"JLRTS":1,
"JLCTS":0,
"TYPE":"2"
},
{
"IndexCode":"861057",
"BKCode":"BK0574",
"BKName":"锂电池",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":3587.97,
"ZDF":1.55,
"ZS_3":-0.02,
"ZS_5":0.03,
"Cinflow":449393152,
"SYL_W":1.187,
"SYL_M":-5.2301,
"SYL_Q":6.3783,
"SYL_1N":76.1235,
"SYL_JN":-3.7794,
"Cinflow_W":-5223724288,
"LZTS":1,
"LDTS":0,
"JLRTS":1,
"JLCTS":0,
"TYPE":"2"
},
{
"IndexCode":"861068",
"BKCode":"BK0588",
"BKName":"太阳能",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":3197.94,
"ZDF":1.09,
"ZS_3":0,
"ZS_5":0.06,
"Cinflow":838799616,
"SYL_W":-0.3918,
"SYL_M":-7.5015,
"SYL_Q":8.1039,
"SYL_1N":57.859,
"SYL_JN":-5.785,
"Cinflow_W":-15296360704,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":2,
"TYPE":"2"
},
{
"IndexCode":"861072",
"BKCode":"BK0592",
"BKName":"铁路基建",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":2038.67,
"ZDF":1.95,
"ZS_3":-0.01,
"ZS_5":0.04,
"Cinflow":-77000176,
"SYL_W":1.5319,
"SYL_M":2.933,
"SYL_Q":15.1869,
"SYL_1N":32.0365,
"SYL_JN":2.1352,
"Cinflow_W":-3716296000,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":5,
"TYPE":"2"
},
{
"IndexCode":"861077",
"BKCode":"BK0597",
"BKName":"水利建设",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":1443.01,
"ZDF":1.27,
"ZS_3":0.02,
"ZS_5":0.05,
"Cinflow":-382479568,
"SYL_W":-1.9514,
"SYL_M":2.3259,
"SYL_Q":14.9818,
"SYL_1N":34.867,
"SYL_JN":1.2163,
"Cinflow_W":-6311498320,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":6,
"TYPE":"2"
},
{
"IndexCode":"861079",
"BKCode":"BK0600",
"BKName":"参股新三板",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":2142.12,
"ZDF":1.98,
"ZS_3":0,
"ZS_5":0.07,
"Cinflow":460009168,
"SYL_W":1.3412,
"SYL_M":2.9653,
"SYL_Q":13.4363,
"SYL_1N":26.8367,
"SYL_JN":1.3393,
"Cinflow_W":-2601799440,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":8,
"TYPE":"2"
},
{
"IndexCode":"861094",
"BKCode":"BK0615",
"BKName":"中药概念",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":2312.26,
"ZDF":-0.34,
"ZS_3":-0.01,
"ZS_5":0.08,
"Cinflow":-2573887488,
"SYL_W":1.9349,
"SYL_M":21.3581,
"SYL_Q":25.2328,
"SYL_1N":42.1294,
"SYL_JN":3.7334,
"Cinflow_W":-9719655024,
"LZTS":1,
"LDTS":0,
"JLRTS":1,
"JLCTS":0,
"TYPE":"2"
},
{
"IndexCode":"861110",
"BKCode":"BK0634",
"BKName":"大数据",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":3831.7,
"ZDF":5.05,
"ZS_3":0.01,
"ZS_5":0.07,
"Cinflow":6643490560,
"SYL_W":4.277,
"SYL_M":5.7324,
"SYL_Q":18.5642,
"SYL_1N":24.1599,
"SYL_JN":5.2246,
"Cinflow_W":-7477985792,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":8,
"TYPE":"2"
},
{
"IndexCode":"861114",
"BKCode":"BK0638",
"BKName":"创业成份",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":2592.96,
"ZDF":1.46,
"ZS_3":0.01,
"ZS_5":0.01,
"Cinflow":-551344128,
"SYL_W":1.092,
"SYL_M":-3.757,
"SYL_Q":2.8483,
"SYL_1N":5.3548,
"SYL_JN":-3.507,
"Cinflow_W":-5242522368,
"LZTS":1,
"LDTS":0,
"JLRTS":0,
"JLCTS":2,
"TYPE":"2"
},
{
"IndexCode":"861117",
"BKCode":"BK0641",
"BKName":"智能穿戴",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":2651.78,
"ZDF":2.68,
"ZS_3":0.02,
"ZS_5":0.05,
"Cinflow":607920128,
"SYL_W":1.7114,
"SYL_M":2.3024,
"SYL_Q":15.466,
"SYL_1N":18.9934,
"SYL_JN":-0.2997,
"Cinflow_W":-6852251456,
"LZTS":1,
"LDTS":0,
"JLRTS":0,
"JLCTS":8,
"TYPE":"2"
},
{
"IndexCode":"861118",
"BKCode":"BK0642",
"BKName":"手游概念",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":1078.53,
"ZDF":2.51,
"ZS_3":-0.04,
"ZS_5":0.06,
"Cinflow":370721424,
"SYL_W":0.8396,
"SYL_M":5.9533,
"SYL_Q":25.8847,
"SYL_1N":34.5304,
"SYL_JN":2.7876,
"Cinflow_W":-3676804832,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":7,
"TYPE":"2"
},
{
"IndexCode":"861120",
"BKCode":"BK0644",
"BKName":"特斯拉",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":4386.43,
"ZDF":2.44,
"ZS_3":0,
"ZS_5":0.05,
"Cinflow":820772096,
"SYL_W":3.3254,
"SYL_M":0.1596,
"SYL_Q":18.4075,
"SYL_1N":42.2051,
"SYL_JN":0.0764,
"Cinflow_W":-1920681216,
"LZTS":1,
"LDTS":0,
"JLRTS":1,
"JLCTS":0,
"TYPE":"2"
},
{
"IndexCode":"861136",
"BKCode":"BK0666",
"BKName":"苹果概念",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":2745.38,
"ZDF":2.57,
"ZS_3":-0.01,
"ZS_5":0.03,
"Cinflow":1449923840,
"SYL_W":1.0568,
"SYL_M":-1.1739,
"SYL_Q":15.091,
"SYL_1N":21.7847,
"SYL_JN":-2.4035,
"Cinflow_W":-3954126736,
"LZTS":1,
"LDTS":0,
"JLRTS":0,
"JLCTS":2,
"TYPE":"2"
},
{
"IndexCode":"861139",
"BKCode":"BK0668",
"BKName":"医疗器械概念",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":4079.44,
"ZDF":0.17,
"ZS_3":0.01,
"ZS_5":0.07,
"Cinflow":-4235271680,
"SYL_W":3.0536,
"SYL_M":10.1985,
"SYL_Q":18.2135,
"SYL_1N":25.7732,
"SYL_JN":4.1407,
"Cinflow_W":-11399613184,
"LZTS":1,
"LDTS":0,
"JLRTS":1,
"JLCTS":0,
"TYPE":"2"
},
{
"IndexCode":"861153",
"BKCode":"BK0683",
"BKName":"国企改革",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":3488.95,
"ZDF":1.11,
"ZS_3":-0.01,
"ZS_5":0.04,
"Cinflow":-1172051456,
"SYL_W":-0.7408,
"SYL_M":-0.32,
"SYL_Q":11.1683,
"SYL_1N":32.4768,
"SYL_JN":-1.6906,
"Cinflow_W":-24489689088,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":6,
"TYPE":"2"
},
{
"IndexCode":"861164",
"BKCode":"BK0695",
"BKName":"小金属概念",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":2470.67,
"ZDF":0.35,
"ZS_3":-0.02,
"ZS_5":0.02,
"Cinflow":-2053634720,
"SYL_W":0.287,
"SYL_M":-4.1406,
"SYL_Q":4.0769,
"SYL_1N":61.8138,
"SYL_JN":-2.2891,
"Cinflow_W":-9282851232,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":2,
"TYPE":"2"
},
{
"IndexCode":"861169",
"BKCode":"BK0700",
"BKName":"充电桩",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":1966.99,
"ZDF":1.88,
"ZS_3":0.01,
"ZS_5":0.05,
"Cinflow":1739953152,
"SYL_W":1.4545,
"SYL_M":-6.06,
"SYL_Q":15.0132,
"SYL_1N":48.5048,
"SYL_JN":-2.3783,
"Cinflow_W":-1447418320,
"LZTS":0,
"LDTS":2,
"JLRTS":1,
"JLCTS":0,
"TYPE":"2"
},
{
"IndexCode":"861180",
"BKCode":"BK0711",
"BKName":"券商概念",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":1005.53,
"ZDF":0.21,
"ZS_3":-0.02,
"ZS_5":-0.01,
"Cinflow":-63482560,
"SYL_W":-2.4221,
"SYL_M":-4.5679,
"SYL_Q":-0.4849,
"SYL_1N":-10.1082,
"SYL_JN":-3.8681,
"Cinflow_W":-9937005424,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":10,
"TYPE":"2"
},
{
"IndexCode":"861195",
"BKCode":"BK0800",
"BKName":"人工智能",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":1218.63,
"ZDF":4.47,
"ZS_3":0,
"ZS_5":0.07,
"Cinflow":4808817664,
"SYL_W":3.2659,
"SYL_M":4.0657,
"SYL_Q":15.1334,
"SYL_1N":23.4443,
"SYL_JN":3.223,
"Cinflow_W":-9486949120,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":8,
"TYPE":"2"
},
{
"IndexCode":"861220",
"BKCode":"BK0808",
"BKName":"军民融合",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":1431.99,
"ZDF":2.09,
"ZS_3":-0.01,
"ZS_5":0.03,
"Cinflow":534658976,
"SYL_W":1.2207,
"SYL_M":-0.4339,
"SYL_Q":11.6022,
"SYL_1N":19.3047,
"SYL_JN":-2.4018,
"Cinflow_W":-8311851808,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":6,
"TYPE":"2"
},
{
"IndexCode":"861230",
"BKCode":"BK0821",
"BKName":"MSCI中国",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":1406.86,
"ZDF":0.91,
"ZS_3":-0.02,
"ZS_5":0,
"Cinflow":-4406915328,
"SYL_W":-0.9721,
"SYL_M":-3.1495,
"SYL_Q":0.3001,
"SYL_1N":5.9064,
"SYL_JN":-3.6127,
"Cinflow_W":-71388112896,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":2,
"TYPE":"2"
},
{
"IndexCode":"861234",
"BKCode":"BK0823",
"BKName":"养老金",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":1504.64,
"ZDF":1.24,
"ZS_3":0,
"ZS_5":0.04,
"Cinflow":-33677296,
"SYL_W":0.8844,
"SYL_M":2.8997,
"SYL_Q":13.2611,
"SYL_1N":27.6601,
"SYL_JN":-0.567,
"Cinflow_W":-5371590224,
"LZTS":1,
"LDTS":0,
"JLRTS":0,
"JLCTS":9,
"TYPE":"2"
},
{
"IndexCode":"861200",
"BKCode":"BK0830",
"BKName":"区块链",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":932.53,
"ZDF":4.45,
"ZS_3":0,
"ZS_5":0.05,
"Cinflow":5850110208,
"SYL_W":3.8094,
"SYL_M":6.3864,
"SYL_Q":20.3233,
"SYL_1N":29.1342,
"SYL_JN":4.8682,
"Cinflow_W":-11646463232,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":8,
"TYPE":"2"
},
{
"IndexCode":"861238",
"BKCode":"BK0832",
"BKName":"工业互联",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":1581.92,
"ZDF":3.59,
"ZS_3":0.03,
"ZS_5":0.08,
"Cinflow":2084229376,
"SYL_W":2.6081,
"SYL_M":1.5575,
"SYL_Q":13.7802,
"SYL_1N":33.1022,
"SYL_JN":1.7005,
"Cinflow_W":-6077610032,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":6,
"TYPE":"2"
},
{
"IndexCode":"861241",
"BKCode":"BK0835",
"BKName":"独角兽",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":1678.93,
"ZDF":2.64,
"ZS_3":-0.01,
"ZS_5":0.07,
"Cinflow":719435776,
"SYL_W":2.0235,
"SYL_M":1.9077,
"SYL_Q":12.8563,
"SYL_1N":42.1425,
"SYL_JN":0.9082,
"Cinflow_W":-3940916992,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":2,
"TYPE":"2"
},
{
"IndexCode":"861201",
"BKCode":"BK0840",
"BKName":"OLED",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":2299.7,
"ZDF":2.4,
"ZS_3":-0.01,
"ZS_5":0.04,
"Cinflow":1451506736,
"SYL_W":1.7544,
"SYL_M":0.2035,
"SYL_Q":13.0313,
"SYL_1N":31.993,
"SYL_JN":-0.116,
"Cinflow_W":-4861360112,
"LZTS":1,
"LDTS":0,
"JLRTS":0,
"JLCTS":2,
"TYPE":"2"
},
{
"IndexCode":"861257",
"BKCode":"BK0853",
"BKName":"电子竞技",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":1169.98,
"ZDF":1.98,
"ZS_3":0.03,
"ZS_5":0.08,
"Cinflow":249718240,
"SYL_W":-0.9616,
"SYL_M":5.9256,
"SYL_Q":24.9085,
"SYL_1N":42.928,
"SYL_JN":1.6464,
"Cinflow_W":-3959030336,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":7,
"TYPE":"2"
},
{
"IndexCode":"861258",
"BKCode":"BK0854",
"BKName":"华为概念",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":2644.09,
"ZDF":3.74,
"ZS_3":0.01,
"ZS_5":0.05,
"Cinflow":7400740352,
"SYL_W":3.1586,
"SYL_M":2.425,
"SYL_Q":18.1785,
"SYL_1N":34.0456,
"SYL_JN":1.5591,
"Cinflow_W":-13736118272,
"LZTS":1,
"LDTS":0,
"JLRTS":0,
"JLCTS":2,
"TYPE":"2"
},
{
"IndexCode":"861296",
"BKCode":"BK0896",
"BKName":"白酒",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":2786.39,
"ZDF":-0.17,
"ZS_3":-0.02,
"ZS_5":0.06,
"Cinflow":-457585136,
"SYL_W":-4.4471,
"SYL_M":-6.3102,
"SYL_Q":1.1897,
"SYL_1N":20.073,
"SYL_JN":-5.9221,
"Cinflow_W":-9554482416,
"LZTS":0,
"LDTS":2,
"JLRTS":0,
"JLCTS":14,
"TYPE":"2"
},
{
"IndexCode":"861299",
"BKCode":"BK0899",
"BKName":"CRO",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":2320.05,
"ZDF":1.76,
"ZS_3":0.05,
"ZS_5":0.07,
"Cinflow":-460489168,
"SYL_W":5.1633,
"SYL_M":4.2803,
"SYL_Q":-7.3751,
"SYL_1N":40.3785,
"SYL_JN":1.025,
"Cinflow_W":-688482096,
"LZTS":1,
"LDTS":0,
"JLRTS":0,
"JLCTS":2,
"TYPE":"2"
},
{
"IndexCode":"861206",
"BKCode":"BK0900",
"BKName":"新能源车",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":1588.47,
"ZDF":2.08,
"ZS_3":-0.01,
"ZS_5":0.05,
"Cinflow":2409237504,
"SYL_W":2.2708,
"SYL_M":-1.2993,
"SYL_Q":17.9353,
"SYL_1N":50.0113,
"SYL_JN":-0.4868,
"Cinflow_W":-9040646656,
"LZTS":1,
"LDTS":0,
"JLRTS":0,
"JLCTS":2,
"TYPE":"2"
},
{
"IndexCode":"861302",
"BKCode":"BK0903",
"BKName":"云游戏",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":1206.95,
"ZDF":3.22,
"ZS_3":0.02,
"ZS_5":0.11,
"Cinflow":287625088,
"SYL_W":1.2712,
"SYL_M":0.7336,
"SYL_Q":35.4784,
"SYL_1N":42.4416,
"SYL_JN":2.1091,
"Cinflow_W":-2058284880,
"LZTS":1,
"LDTS":0,
"JLRTS":0,
"JLCTS":7,
"TYPE":"2"
},
{
"IndexCode":"861304",
"BKCode":"BK0905",
"BKName":"传感器",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":1483.14,
"ZDF":2.97,
"ZS_3":-0.02,
"ZS_5":0.05,
"Cinflow":578024000,
"SYL_W":2.8002,
"SYL_M":0.7239,
"SYL_Q":17.9257,
"SYL_1N":30.3286,
"SYL_JN":-0.7807,
"Cinflow_W":-1091329200,
"LZTS":1,
"LDTS":0,
"JLRTS":1,
"JLCTS":0,
"TYPE":"2"
},
{
"IndexCode":"861346",
"BKCode":"BK0952",
"BKName":"第三代半导体",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":1482.57,
"ZDF":2.04,
"ZS_3":0,
"ZS_5":0.04,
"Cinflow":884623712,
"SYL_W":2.1567,
"SYL_M":-4.4459,
"SYL_Q":9.7875,
"SYL_1N":38.2853,
"SYL_JN":-3.2896,
"Cinflow_W":-802432608,
"LZTS":1,
"LDTS":0,
"JLRTS":1,
"JLCTS":0,
"TYPE":"2"
},
{
"IndexCode":"861361",
"BKCode":"BK0968",
"BKName":"固态电池",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":1952.46,
"ZDF":1.67,
"ZS_3":0.03,
"ZS_5":0.06,
"Cinflow":552513792,
"SYL_W":2.3833,
"SYL_M":-8.3529,
"SYL_Q":-0.0236,
"SYL_1N":64.6007,
"SYL_JN":-3.8349,
"Cinflow_W":601349696,
"LZTS":1,
"LDTS":0,
"JLRTS":1,
"JLCTS":0,
"TYPE":"2"
},
{
"IndexCode":"861362",
"BKCode":"BK0969",
"BKName":"汽车芯片",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":1297.51,
"ZDF":2.52,
"ZS_3":0.04,
"ZS_5":0.11,
"Cinflow":546226960,
"SYL_W":2.2974,
"SYL_M":-1.6822,
"SYL_Q":9.7817,
"SYL_1N":null,
"SYL_JN":-2.7565,
"Cinflow_W":-132055184,
"LZTS":1,
"LDTS":0,
"JLRTS":1,
"JLCTS":0,
"TYPE":"2"
},
{
"IndexCode":"861368",
"BKCode":"BK0976",
"BKName":"被动元件",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":1427.96,
"ZDF":2.39,
"ZS_3":0.02,
"ZS_5":0.02,
"Cinflow":29287488,
"SYL_W":1.7123,
"SYL_M":-4.3864,
"SYL_Q":10.6723,
"SYL_1N":null,
"SYL_JN":-6.0812,
"Cinflow_W":-792292720,
"LZTS":1,
"LDTS":0,
"JLRTS":1,
"JLCTS":0,
"TYPE":"2"
},
{
"IndexCode":"861369",
"BKCode":"BK0977",
"BKName":"碳化硅",
"TradeDate":"/Date(1642348800000-0000)/",
"NewPrice":1391.02,
"ZDF":1.77,
"ZS_3":-0.01,
"ZS_5":0.04,
"Cinflow":215858352,
"SYL_W":1.0886,
"SYL_M":-7.1514,
"SYL_Q":7.046,
"SYL_1N":null,
"SYL_JN":-5.5501,
"Cinflow_W":-751877728,
"LZTS":1,
"LDTS":0,
"JLRTS":1,
"JLCTS":0,
"TYPE":"2"
}
]
},
"ErrCode":0,
"ErrMsg":null,
"TotalCount":0,
"Expansion":null,
"PageSize":0,
"PageIndex":0
}
其中比较关键的数据:
①hy为行业,gn为概念,都代表基金的主题;
②TradeData为日期,这里面的数据是2022-01-17到一年前的,某交易所统计的数据;
③SYL_XX:这个SYL为收益率。
SYL_W:近一周收益率;
SYL_M:近一月收益率;
SYL_Q:近三月收益率;
SYL_1N:近一年收益率;
Python代码如下:
# -*- coding: utf-8 -*-
import pandas as pd
import json
if __name__ == '__main__':
dataStr = open('fund_index.json').read()
dataObject = json.loads(s=dataStr)
hyData = json.dumps(dataObject["Data"]["hy"])
gnData = json.dumps(dataObject["Data"]["gn"])
hyDf = pd.read_json(hyData)
gnDf = pd.read_json(gnData)
hyDf = hyDf.set_index("IndexCode")
gnDf = gnDf.set_index("IndexCode")
# 合并数据
df = hyDf.combine_first(gnDf)
print(df)
pass
运行截图如下:
版权说明 : 本文为转载文章, 版权归原作者所有 版权申明
原文链接 : https://it1995.blog.csdn.net/article/details/123174328
内容来源于网络,如有侵权,请联系作者删除!