Module: Tushare::Datayes::Fundamental

Included in:
Tushare::Datayes
Defined in:
lib/tushare/datayes/fundamental.rb

Overview

通联数据-基本面数据

Instance Method Summary collapse

Instance Method Details

#fdmt_bs(report_type: '', sec_id: '', ticker: '', begin_date: '', end_date: '', publish_date_begin: '', publish_date_end: '', field: '') ⇒ Object

1、根据2007年新会计准则制定的合并资产负债表模板,

收集了2007年以来沪深上市公司定期报告中各个会计期间的资产负债表数据;

2、仅收集合并报表数据,包括期末和期初数据; 3、如果上市公司对外财务报表进行更正,调整,均有采集并对外展示; 4、本表中单位为人民币元; 5、每季更新。



11
12
13
14
15
16
17
# File 'lib/tushare/datayes/fundamental.rb', line 11

def fdmt_bs(report_type: '', sec_id: '', ticker: '', begin_date: '',
            end_date: '', publish_date_begin: '', publish_date_end: '',
            field: '')
  api_path = format(FDMTBS, report_type, sec_id, ticker, begin_date,
                    end_date, publish_date_begin, publish_date_end, field)
  fetch_data api_path
end

#fdmt_bs_bank(report_type: '', sec_id: '', ticker: '', begin_date: '', end_date: '', publish_date_begin: '', publish_date_end: '', field: '') ⇒ Object

1、根据2007年新会计准则制定的银行业资产负债表模板,

 收集了2007年以来沪深上市公司定期报告中所有以此模板披露的资产负债表数据;
(主要是银行业上市公司)

2、仅收集合并报表数据,包括期末和期初数据; 3、如果上市公司对外财务报表进行更正,调整,均有采集并对外展示; 4、本表中单位为人民币元; 5、每季更新。



26
27
28
29
30
31
32
# File 'lib/tushare/datayes/fundamental.rb', line 26

def fdmt_bs_bank(report_type: '', sec_id: '', ticker: '', begin_date: '',
                 end_date: '', publish_date_begin: '',
                 publish_date_end: '', field: '')
  api_path = format(FDMTBSBANK, report_type, sec_id, ticker, begin_date,
                    end_date, publish_date_begin, publish_date_end, field)
  fetch_data api_path
end

#fdmt_bs_indu(report_type: '', sec_id: '', ticker: '', begin_date: '', end_date: '', publish_date_begin: '', publish_date_end: '', field: '') ⇒ Object

1、根据2007年新会计准则制定的一般工商业资产负债表模板,

 收集了2007年以来沪深上市公司定期报告中所有以此模板披露的资产负债表数据;
(主要是一般工商业上市公司)

2、仅收集合并报表数据,包括期末和期初数据; 3、如果上市公司对外财务报表进行更正,调整,均有采集并对外展示; 4、本表中单位为人民币元; 5、每季更新。



56
57
58
59
60
61
62
# File 'lib/tushare/datayes/fundamental.rb', line 56

def fdmt_bs_indu(report_type: '', sec_id: '', ticker: '', begin_date: '',
                 end_date: '', publish_date_begin: '',
                 publish_date_end: '', field: '')
  api_path = format(FDMTBSINDU, report_type, sec_id, ticker, begin_date,
                    end_date, publish_date_begin, publish_date_end, field)
  fetch_data api_path
end

#fdmt_bs_insu(report_type: '', sec_id: '', ticker: '', begin_date: '', end_date: '', publish_date_begin: '', publish_date_end: '', field: '') ⇒ Object

1、根据2007年新会计准则制定的保险业资产负债表模板,

 收集了2007年以来沪深上市公司定期报告中所有以此模板披露的资产负债表数据;
(主要是保险业上市公司)

2、仅收集合并报表数据,包括期末和期初数据; 3、如果上市公司对外财务报表进行更正,调整,均有采集并对外展示; 4、本表中单位为人民币元。 5、每季更新。



71
72
73
74
75
76
77
# File 'lib/tushare/datayes/fundamental.rb', line 71

def fdmt_bs_insu(report_type: '', sec_id: '', ticker: '', begin_date: '',
                 end_date: '', publish_date_begin: '',
                 publish_date_end: '', field: '')
  api_path = format(FDMTBSINSU, report_type, sec_id, ticker, begin_date,
                    end_date, publish_date_begin, publish_date_end, field)
  fetch_data api_path
end

#fdmt_bs_secu(report_type: '', sec_id: '', ticker: '', begin_date: '', end_date: '', publish_date_begin: '', publish_date_end: '', field: '') ⇒ Object

1、根据2007年新会计准则制定的证券业资产负债表模板,

 收集了2007年以来沪深上市公司定期报告中所有以此模板披露的资产负债表数据;
(主要是证券业上市公司)

2、仅收集合并报表数据,包括期末和期初数据; 3、如果上市公司对外财务报表进行更正,调整,均有采集并对外展示; 4、本表中单位为人民币元; 5、每季更新。



41
42
43
44
45
46
47
# File 'lib/tushare/datayes/fundamental.rb', line 41

def fdmt_bs_secu(report_type: '', sec_id: '', ticker: '', begin_date: '',
                 end_date: '', publish_date_begin: '',
                 publish_date_end: '', field: '')
  api_path = format(FDMTBSSECU, report_type, sec_id, ticker, begin_date,
                    end_date, publish_date_begin, publish_date_end, field)
  fetch_data api_path
end

#fdmt_cf(report_type: '', sec_id: '', ticker: '', begin_date: '', end_date: '', publish_date_begin: '', publish_date_end: '', field: '') ⇒ Object

1、根据2007年新会计准则制定的合并现金流量表模板,

收集了2007年以来沪深上市公司定期报告中各个会计期间的现金流量表数据;

2、仅收集合并报表数据,包括本期和上期数据; 3、如果上市公司对外财务报表进行更正,调整,均有采集并对外展示; 4、本表中单位为人民币元; 5、每季更新。



85
86
87
88
89
90
91
# File 'lib/tushare/datayes/fundamental.rb', line 85

def fdmt_cf(report_type: '', sec_id: '', ticker: '', begin_date: '',
            end_date: '', publish_date_begin: '', publish_date_end: '',
            field: '')
  api_path = format(FDMTCF, report_type, sec_id, ticker, begin_date,
                    end_date, publish_date_begin, publish_date_end, field)
  fetch_data api_path
end

#fdmt_cf_bank(report_type: '', sec_id: '', ticker: '', begin_date: '', end_date: '', publish_date_begin: '', publish_date_end: '', field: '') ⇒ Object

1、根据2007年新会计准则制定的银行业现金流量表模板,

 收集了2007年以来沪深上市公司定期报告中所有以此模板披露的现金流量表数据;
(主要是银行业上市公司)

2、仅收集合并报表数据,包括本期和上期数据; 3、如果上市公司对外财务报表进行更正,调整,均有采集并对外展示; 4、本表中单位为人民币元; 5、每季更新。



100
101
102
103
104
105
106
# File 'lib/tushare/datayes/fundamental.rb', line 100

def fdmt_cf_bank(report_type: '', sec_id: '', ticker: '', begin_date: '',
                 end_date: '', publish_date_begin: '',
                 publish_date_end: '', field: '')
  api_path = format(FDMTCFBANK, report_type, sec_id, ticker, begin_date,
                    end_date, publish_date_begin, publish_date_end, field)
  fetch_data api_path
end

#fdmt_cf_indu(report_type: '', sec_id: '', ticker: '', begin_date: '', end_date: '', publish_date_begin: '', publish_date_end: '', field: '') ⇒ Object

1、根据2007年新会计准则制定的一般工商业现金流量表模板,

 收集了2007年以来沪深上市公司定期报告中所有以此模板披露的现金流量表数据;
(主要是一般工商业上市公司)

2、仅收集合并报表数据,包括本期和上期数据; 3、如果上市公司对外财务报表进行更正,调整,均有采集并对外展示; 4、本表中单位为人民币元; 5、每季更新。



130
131
132
133
134
135
136
# File 'lib/tushare/datayes/fundamental.rb', line 130

def fdmt_cf_indu(report_type: '', sec_id: '', ticker: '', begin_date: '',
                 end_date: '', publish_date_begin: '',
                 publish_date_end: '', field: '')
  api_path = format(FDMTCFINDU, report_type, sec_id, ticker, begin_date,
                    end_date, publish_date_begin, publish_date_end, field)
  fetch_data api_path
end

#fdmt_cf_insu(report_type: '', sec_id: '', ticker: '', begin_date: '', end_date: '', publish_date_begin: '', publish_date_end: '', field: '') ⇒ Object

1、根据2007年新会计准则制定的保险业现金流量表模板,

 收集了2007年以来沪深上市公司定期报告中所有以此模板披露的现金流量表数据;
(主要是保险业上市公司)

2、仅收集合并报表数据,包括本期和上期数据; 3、如果上市公司对外财务报表进行更正,调整,均有采集并对外展示; 4、本表中单位为人民币元; 5、每季更新。



145
146
147
148
149
150
151
# File 'lib/tushare/datayes/fundamental.rb', line 145

def fdmt_cf_insu(report_type: '', sec_id: '', ticker: '', begin_date: '',
                 end_date: '', publish_date_begin: '',
                 publish_date_end: '', field: '')
  api_path = format(FDMTCFINSU, report_type, sec_id, ticker, begin_date,
                    end_date, publish_date_begin, publish_date_end, field)
  fetch_data api_path
end

#fdmt_cf_secu(report_type: '', sec_id: '', ticker: '', begin_date: '', end_date: '', publish_date_begin: '', publish_date_end: '', field: '') ⇒ Object

1、根据2007年新会计准则制定的证券业现金流量表模板,

 收集了2007年以来沪深上市公司定期报告中所有以此模板披露的现金流量表数据;
(主要是证券业上市公司)

2、仅收集合并报表数据,包括本期和上期数据; 3、如果上市公司对外财务报表进行更正,调整,均有采集并对外展示; 4、本表中单位为人民币元; 5、每季更新。



115
116
117
118
119
120
121
# File 'lib/tushare/datayes/fundamental.rb', line 115

def fdmt_cf_secu(report_type: '', sec_id: '', ticker: '', begin_date: '',
                 end_date: '', publish_date_begin: '',
                 publish_date_end: '', field: '')
  api_path = format(FDMTCFSECU, report_type, sec_id, ticker, begin_date,
                    end_date, publish_date_begin, publish_date_end, field)
  fetch_data api_path
end

#fdmt_ee(report_type: '', sec_id: '', ticker: '', begin_date: '', end_date: '', publish_date_begin: '', publish_date_end: '', field: '') ⇒ Object

获取2007年及以后年度上市公司披露的业绩快报中的主要财务指标等其他数据, 包括本期,去年同期,及本期与期初数值同比数据。 每季证券交易所披露相关公告时更新数据,公司ipo时发布相关信息也会同时更新。 每日9:00前完成证券交易所披露的数据更新,中午发布公告每日12:45前完成更新。



228
229
230
231
232
233
234
# File 'lib/tushare/datayes/fundamental.rb', line 228

def fdmt_ee(report_type: '', sec_id: '', ticker: '', begin_date: '',
            end_date: '', publish_date_begin: '',
            publish_date_end: '', field: '')
  api_path = format(FDMTEE, report_type, sec_id, ticker, begin_date,
                    end_date, publish_date_begin, publish_date_end, field)
  fetch_data api_path
end

#fdmt_ef(report_type: '', sec_id: '', ticker: '', begin_date: '', end_date: '', forecast_type: '', publish_date_begin: '', publish_date_end: '', field: '') ⇒ Object

1、获取2007年及以后年度上市公司披露的公告中的预期下一报告期收入、净利润、归属于母公司净利润、基本每股收益及其幅度变化数据。 2、上市公司对经营成果科目的预计情况数据一般为其上限与下限,上限取值为公告中披露该科目中绝对值较大值,下限取值为公告中披露该科目中绝对值较小值。 3、数值为“正”代表该公司预计盈利,数值为“负”代表该公司预计亏损。若上下限“正”、“负”符号不同,代表该公司盈利亏损情况尚不确定。 4、业绩预期类型以公告中文字披露预期类型为准,若公告中未有文字披露预期类型,则根据数据情况判断预期类型。 5、每季证券交易所披露相关公告时更新数据,公司ipo时发布相关信息也会同时更新。每日9:00前完成证券交易所披露的数据更新,中午发布公告每日12:45前完成更新。



241
242
243
244
245
246
247
248
# File 'lib/tushare/datayes/fundamental.rb', line 241

def fdmt_ef(report_type: '', sec_id: '', ticker: '', begin_date: '',
            end_date: '', forecast_type: '', publish_date_begin: '',
            publish_date_end: '', field: '')
  api_path = format(FDMTEF, report_type, sec_id, ticker, begin_date,
                    end_date, forecast_type, publish_date_begin,
                    publish_date_end, field)
  fetch_data api_path
end

#fdmt_is(report_type: '', sec_id: '', ticker: '', begin_date: '', end_date: '', publish_date_begin: '', publish_date_end: '', field: '') ⇒ Object

1、根据2007年新会计准则制定的合并利润表模板,

收集了2007年以来沪深上市公司定期报告中各个会计期间的利润表数据;

2、仅收集合并报表数据,包括本期和上期数据; 3、如果上市公司对外财务报表进行更正,调整,均有采集并对外展示; 4、本表中单位为人民币元; 5、每季更新。



159
160
161
162
163
164
165
# File 'lib/tushare/datayes/fundamental.rb', line 159

def fdmt_is(report_type: '', sec_id: '', ticker: '', begin_date: '',
            end_date: '', publish_date_begin: '',
            publish_date_end: '', field: '')
  api_path = format(FDMTIS, report_type, sec_id, ticker, begin_date,
                    end_date, publish_date_begin, publish_date_end, field)
  fetch_data api_path
end

#fdmt_is_bank(report_type: '', sec_id: '', ticker: '', begin_date: '', end_date: '', publish_date_begin: '', publish_date_end: '', field: '') ⇒ Object

1、根据2007年新会计准则制定的银行业利润表模板,

 收集了2007年以来沪深上市公司定期报告中所有以此模板披露的利润表数据;
(主要是银行业上市公司)

2、仅收集合并报表数据,包括本期和上期数据; 3、如果上市公司对外财务报表进行更正,调整,均有采集并对外展示; 4、本表中单位为人民币元; 5、每季更新。



174
175
176
177
178
179
180
# File 'lib/tushare/datayes/fundamental.rb', line 174

def fdmt_is_bank(report_type: '', sec_id: '', ticker: '', begin_date: '',
                 end_date: '', publish_date_begin: '',
                 publish_date_end: '', field: '')
  api_path = format(FDMTISBANK, report_type, sec_id, ticker, begin_date,
                    end_date, publish_date_begin, publish_date_end, field)
  fetch_data api_path
end

#fdmt_is_indu(report_type: '', sec_id: '', ticker: '', begin_date: '', end_date: '', publish_date_begin: '', publish_date_end: '', field: '') ⇒ Object

1、根据2007年新会计准则制定的一般工商业利润表模板,

 收集了2007年以来沪深上市公司定期报告中所有以此模板披露的利润表数据;
(主要是一般工商业上市公司)

2、仅收集合并报表数据,包括本期和上期数据; 3、如果上市公司对外财务报表进行更正,调整,均有采集并对外展示; 4、本表中单位为人民币元; 5、每季更新。



201
202
203
204
205
206
207
# File 'lib/tushare/datayes/fundamental.rb', line 201

def fdmt_is_indu(report_type: '', sec_id: '', ticker: '', begin_date: '',
                 end_date: '', publish_date_begin: '',
                 publish_date_end: '', field: '')
  api_path = format(FDMTISINDU, report_type, sec_id, ticker, begin_date,
                    end_date, publish_date_begin, publish_date_end, field)
  fetch_data api_path
end

#fdmt_is_insu(report_type: '', sec_id: '', ticker: '', begin_date: '', end_date: '', publish_date_begin: '', publish_date_end: '', field: '') ⇒ Object

1、根据2007年新会计准则制定的保险业利润表模板,

 收集了2007年以来沪深上市公司定期报告中所有以此模板披露的利润表数据;
(主要是保险业上市公司)

2、仅收集合并报表数据,包括本期和上期数据; 3、如果上市公司对外财务报表进行更正,调整,均有采集并对外展示; 4、本表中单位为人民币元; 5、每季更新。



216
217
218
219
220
221
222
# File 'lib/tushare/datayes/fundamental.rb', line 216

def fdmt_is_insu(report_type: '', sec_id: '', ticker: '', begin_date: '',
                 end_date: '', publish_date_begin: '',
                 publish_date_end: '', field: '')
  api_path = format(FDMTISINSU, report_type, sec_id, ticker, begin_date,
                    end_date, publish_date_begin, publish_date_end, field)
  fetch_data api_path
end

#fdmt_is_lately(field: '') ⇒ Object

1、可获取上市公司最近一次数据,根据2007年新会计准则制定的合并利润表模板,仅收集合并报表数据 2、如果上市公司对外财务报表进行更正,调整,均有采集并对外展示; 3、本表中单位为人民币元; 4、每季更新。



254
255
256
257
# File 'lib/tushare/datayes/fundamental.rb', line 254

def fdmt_is_lately(field: '')
  api_path = format(FDMTISLATELY, field)
  fetch_data api_path
end

#fdmt_is_secu(report_type: '', sec_id: '', ticker: '', begin_date: '', end_date: '', publish_date_begin: '', publish_date_end: '', field: '') ⇒ Object

1、根据2007年新会计准则制定的证券业利润表模板,

 收集了2007年以来沪深上市公司定期报告中所有以此模板披露的利润表数据;
(主要是证券业上市公司)

2、仅收集合并报表数据,包括本期和上期数据; 3、如果上市公司对外财务报表进行更正,调整,均有采集并对外展示; 4、本表中单位为人民币元; 5、每季更新。



189
190
191
192
# File 'lib/tushare/datayes/fundamental.rb', line 189

def fdmt_is_secu(report_type: '', sec_id: '', ticker: '', begin_date: '', end_date: '', publish_date_begin: '', publish_date_end: '', field: '')
  api_path = format(FDMTISSECU, report_type, sec_id, ticker, begin_date, end_date, publish_date_begin, publish_date_end, field)
  fetch_data api_path
end