# # 净资本 "broker_net_capital": "Netcapital", # 净资产 "broker_net_assets": "Netassets", # 净资本/净资产 "broker_net_capital_assets_ratio": "Captialrate", # 自营固定收益类证券规模/净资本 "broker_self_operated_fixed_income_securities_net_capital_ratio": "Incomesizerate", } add_func_to_value(finance_factor_map, to_float) finance_factor_map["report_period"] = ("ReportDate", to_report_period_type) finance_factor_map["report_date"] = ("ReportDate", to_pd_timestamp) class ChinaStockFinanceFactorRecorder(BaseChinaStockFinanceRecorder): url = 'https://emh5.eastmoney.com/api/CaiWuFenXi/GetZhuYaoZhiBiaoList' finance_report_type = 'ZhuYaoZhiBiaoList' data_schema = FinanceFactor data_type = 1 def get_data_map(self): return finance_factor_map
# 券商相关 # 拆入资金净增加额 "fi_borrowing_increase": "Niborrowfund", # 代理买卖证券收到的现金净额 "fi_cash_from_trading_agent": "Agenttradesecurityrec", # 回购业务资金净增加额 "fi_cash_from_repurchase_increase": "Nibuybackfund", # 处置交易性金融资产的净减少额 "fi_disposal_trade_asset_decrease": "Nddisptradefasset", # 回购业务资金净减少额 "fi_repurchase_decrease": "Ndbuybackfund", # 代理买卖证券支付的现金净额(净减少额) "fi_cash_to_agent_trade": "Agenttradesecuritypay", } add_func_to_value(cash_flow_map, first_item_to_float) cash_flow_map["report_period"] = ("ReportDate", to_report_period_type) cash_flow_map["report_date"] = ("ReportDate", to_pd_timestamp) class ChinaStockCashFlowRecorder(BaseChinaStockFinanceRecorder): data_schema = CashFlowStatement url = 'https://emh5.eastmoney.com/api/CaiWuFenXi/GetXianJinLiuLiangBiaoList' finance_report_type = 'XianJinLiuLiangBiaoList' data_type = 4 def get_data_map(self): return cash_flow_map
# 盈余公积 # # 一般风险准备 # # 未分配利润 # # 归属于母公司股东权益总计 # # 少数股东权益 # # 股东权益合计 # # 负债和股东权益总计 } add_func_to_value(balance_sheet_map, first_item_to_float) balance_sheet_map["report_period"] = ("ReportDate", to_report_period_type) balance_sheet_map["report_date"] = ("ReportDate", to_pd_timestamp) class ChinaStockBalanceSheetRecorder(BaseChinaStockFinanceRecorder): data_schema = BalanceSheet url = 'https://emh5.eastmoney.com/api/CaiWuFenXi/GetZiChanFuZhaiBiaoList' finance_report_type = 'ZiChanFuZhaiBiaoList' data_type = 3 def get_data_map(self): return balance_sheet_map
# # 其中:代理买卖证券业务净收入 "fi_net_incomes_from_trading_agent": "Agenttradesecurity", # 证券承销业务净收入 "fi_net_incomes_from_underwriting": "Securityuw", # 受托客户资产管理业务净收入 "fi_net_incomes_from_customer_asset_management": "Clientassetmanage", # 手续费及佣金净收入其他项目 "fi_fees_from_other": "Commnreveother", # 公允价值变动收益 # # 其中:可供出售金融资产公允价值变动损益 "fi_income_from_fair_value_change_of_fi_salable": "Fvalueosalable", } add_func_to_value(income_statement_map, first_item_to_float) income_statement_map["report_period"] = ("ReportDate", to_report_period_type) income_statement_map["report_date"] = ("ReportDate", to_pd_timestamp) class ChinaStockIncomeStatementRecorder(BaseChinaStockFinanceRecorder): data_schema = IncomeStatement url = 'https://emh5.eastmoney.com/api/CaiWuFenXi/GetLiRunBiaoList' finance_report_type = 'LiRunBiaoList' data_type = 2 def get_data_map(self): return income_statement_map