Package: economic-data-tools
经济数据工具数据源上海证券交易所(http://www.sse.com.cn/)深证证券交易所(http://www.szse.cn/)中国外汇交易中心(https://www.chinamoney.com.cn/)新浪财经(https://finance.sina.com.cn/)网易财经(https://money.163.com/)华尔街见闻(https://wallstreetcn.com/)使用方法例1：获取LPR利率$python-mchinamoney2022-03-219:151Y3.702022-03-219:155Y4.60例2：获取沪市成交金额$python-msse2022-03-2301,02,03,11,1701202203231663420949.77379170.913687.92341.2115.060.87610.9726022022032346791.31668.080.980.2313.070.12350.1463032022032340249116.1619574.31377.09.0359.270.76761.926112022032300.00.02.490.24-0.00.017202203232111470857.23399413.34065.9350.4716.230.86351.018例3：获取深市成交金额$python-mszse
股票26505,383.95451.70344,569.50275,209.9024,802.8920,691.35&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;主板A股14863,309.74326.64223,491.65189,818.8719,429.1716,535.90&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;主板B股430.390.09460.54458.21121.28120.97&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;创业板A股11212,073.82124.97120,617.3084,932.815,252.434,034.47
基金556142.02134.513,302.353,175.282,553.362,535.76&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ETF247130.09124.682,658.842,658.842,170.192,170.19&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LOF30310.329.52443.48443.48356.46356.46&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;封闭式基金10.010.0018.7518.750.190.19&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;基础设施基金51.590.30181.2754.2026.518.91
债券103272,297.1721.52&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;债券现券9631487.023.40515,814.0222,820.325,160.01225.82&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;债券回购141,802.6118.03&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ABS6827.530.075,832.135,832.1363.6563.65
期权1602.270.00例4：使用新浪财经获取伦敦金和WTI纽约原油$python-msina_financehf_XAU,hf_CL
varhq_str_hf_XAU="1913.02,1922.580,1913.02,1913.28,1929.23,1889.98,23:35:51,1922.58,1923.19,0,0,0,2022-03-29,伦敦金（现货黄金）";varhq_str_hf_CL="102.454,,102.900,102.920,107.840,98.440,23:36:59,105.960,103.470,274556.000,1,2,2022-03-29,WTI纽约原油,285553";例5：网易财经获得股票历史价格$python-mnetease--code0601318--start20220331--end20220331日期,股票代码,名称,收盘价,前收盘,换手率,成交量,成交金额,总市值,流通市值2022-03-31,'601318,中国平安,48.45,48.7,0.3909,42349781,2063589520.0,8.85677696314e+11,5.24842594928e+11例6：新浪财经获取资产负债表$python-msina_finance601318--zcfzb指定资产负债表年份$python-msina_finance601318--zcfzb--year2020报表日期2020-12-312020-09-302020-06-302020-03-31货币资金52,630,100.0050,849,700.0047,383,200.0051,504,800.00拆出资金7,099,600.009,879,700.008,381,800.004,955,100.00交易性金融资产123,133,100.00106,041,300.00104,284,900.00103,236,700.00衍生金融资产3,766,100.003,165,000.003,575,000.004,056,400.00买入返售金融资产12,276,500.009,291,700.009,389,600.009,345,400.00应收保费9,400,300.009,811,400.009,590,100.009,279,900.00应收利息--------应收分保账款1,184,000.001,386,400.001,215,900.001,411,200.00应收分保未到期责任准备金--------应收分保未决赔款准备金--------应收分保寿险责任准备金--------应收分保长期健康险责任准备金--------保户质押贷款16,138,100.0015,670,200.0015,231,700.0014,790,100.00可供出售金融资产--------持有至到期投资262,484,800.00257,035,700.00245,421,700.00234,216,900.00长期股权投资26,781,900.0023,668,500.0022,358,500.0021,343,400.00存出资本保证金1,256,100.001,261,100.001,257,000.001,251,000.00应收款项类投资--------固定资产4,184,900.004,130,300.004,155,500.004,166,500.00无形资产2,749,000.002,856,700.002,783,200.002,732,400.00商誉2,303,100.002,122,400.002,085,900.002,091,400.00独立账户资产5,305,900.005,087,300.005,039,800.004,538,400.00递延所得税资产6,190,100.005,624,300.005,621,900.005,337,100.00投资性房地产5,715,400.005,140,200.005,321,400.005,411,200.00定期存款25,351,800.0025,326,500.0024,670,600.0024,421,200.00其他资产18,448,900.0020,318,400.0021,694,900.0020,784,400.00资产总计952,787,000.00913,831,800.00884,863,100.00866,295,200.00短期借款13,475,300.0011,581,100.0011,869,200.0010,511,600.00拆入资金4,133,400.006,215,800.003,929,600.002,689,600.00交易性金融负债3,721,700.005,668,100.007,646,400.007,749,400.00衍生金融负债4,857,900.004,298,400.004,637,700.004,865,600.00卖出回购金融资产款27,660,200.0031,172,300.0022,998,900.0022,634,000.00预收账款--------预收保费4,844,200.001,655,000.001,689,600.001,776,000.00应付手续费及佣金1,000,100.001,113,300.001,155,400.001,085,200.00应付分保账款1,599,100.001,771,700.001,645,800.001,875,700.00应付职工薪酬4,349,500.004,039,300.003,529,000.003,250,800.00应交税费2,606,000.002,703,900.002,312,500.003,102,400.00应付利息--------应付赔付款6,509,400.006,358,100.006,273,100.006,140,000.00应付保单红利6,380,600.006,346,600.006,304,200.006,192,000.00保户储金及投资款76,897,500.0075,328,100.0073,658,200.0072,402,200.00未到期责任准备金--------未决赔款准备金--------寿险责任准备金--------长期健康险责任准备金--------长期借款20,582,400.0021,046,300.0021,625,400.0021,395,500.00应付债券90,128,500.0082,497,300.0078,582,500.0067,741,900.00独立账户负债5,305,900.005,087,300.005,039,800.004,538,400.00递延所得税负债1,926,700.00871,800.001,574,100.001,725,700.00预计负债--------其他负债26,930,900.0026,760,000.0025,642,700.0023,279,100.00负债合计853,996,500.00820,268,700.00792,646,000.00775,772,300.00股本1,828,000.001,828,000.001,828,000.001,828,000.00资本公积金13,447,400.0012,817,600.0012,528,500.0012,421,400.00其他综合收益-682,900.00-1,336,400.00162,000.00986,200.00盈余公积金金1,216,400.001,216,400.001,216,400.001,216,400.00未分配利润52,167,700.0049,736,900.0047,765,400.0045,954,900.00一般风险准备8,878,900.007,303,900.007,296,400.007,212,200.00外币报表折算差额--------归属于母公司的股东权益合计76,256,000.0070,966,900.0070,197,200.0069,019,600.00少数股东权益22,534,500.0022,596,200.0022,019,900.0021,503,300.00所有者权益合计98,790,500.0093,563,100.0092,217,100.0090,522,900.00负债及股东权益总计952,787,000.00913,831,800.00884,863,100.00866,295,200.00例7：从华尔街见闻获得世界主要国家国债收益率$python-mwallstreetcn
CN10YRCN10YR.OTC中国10年期国债收益率CN10YR2.81732.8172.8542.8063.2462.67416487997462.8230.0060.23forexdataENDTR0US10YRUS10YR.OTC美国10年期国债收益率US10YR2.32532.3252.4562.3522.5551.13816488467952.3860.0612.62forexdataENDTR0