Skip to content

Commit

Permalink
#update
Browse files Browse the repository at this point in the history
  • Loading branch information
yutiansut committed Jul 17, 2018
1 parent e1c187a commit d450df9
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 27 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,30 @@
<!-- /TOC -->
## 1.0.68 (unreleased)

1. 更新了财务方法/财务类 QA_DataStruct_Financial

- QA.QA_fetch_financial_report(code,report_date)

其中, report_date 是需要手动指定的财务时间, 可以是单个时间,也可以是一列时间:
> '2018-03-31' 或者['2017-03-31','2017-06-30','2017-09-31','2017-12-31','2018-03-31']
> 此方法的意义在于指定特定的财务时间(如年报)
返回的是一个MultiIndex的dataframe

- QA.QA_fetch_financial_report_adv(code,start,end)

支持随意的跨时间索引, start 和end不用刻意指定

如果end不写,则start参数等同于report_date的用法

返回的是QA_DataStruct_Financial 类

- QA_DataStruct_Financial 类, 可以直接加载在基础方法返回的dataframe中

> QDF.get_report_by_date(code,date) 返回某个股票的某个时间点的财报
> QDF.get_key(code,date,key) 返回某个股票某个时间点的财报的某个指标

## 1.0.67

Expand Down
28 changes: 2 additions & 26 deletions Documents/QA_FINANCIAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,7 @@ res


<div>
<style scoped>
.dataframe tbody tr th:only-of-type {
vertical-align: middle;
}

.dataframe tbody tr th {
vertical-align: top;
}

.dataframe thead th {
text-align: right;
}
</style>

<table border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
Expand Down Expand Up @@ -343,19 +331,7 @@ res_adv.data


<div>
<style scoped>
.dataframe tbody tr th:only-of-type {
vertical-align: middle;
}

.dataframe tbody tr th {
vertical-align: top;
}

.dataframe thead th {
text-align: right;
}
</style>

<table border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
Expand Down
3 changes: 2 additions & 1 deletion SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* [QUANTAXIS指标系统](Documents/indicators.md)
* [QUANTAXIS的数据获取指南](Documents/DataFetch.md)
* [QUANTAXIS行情研究](Documents/analysis.md)
* [QUANTAXIS的高级财务获取方法](Documents/QA_FINANCIAL.md)
* [QUANTAXIS财务指标](Documents/financial_means.md)
* [QUANTAXIS的账户结构](Documents/account.md)
* [QUANTAXIS 账户风险分析插件指南](Documents/risk.md)
* [QUANTAXIS回测委托成交结算的说明](Documents/orderanddeal.md)
Expand All @@ -27,7 +29,6 @@
* [QUANTAXIS WEB 爬虫](Documents/crawler.md)
* [常见策略整理](Documents/strategy.md)
* [QUANTAXIS的开发列表](job_list.md)
* [QUANTAXIS财务指标](Documents/financial_means.md)
* [简单策略回测详解](Documents/QUANTAXIS回测分析全过程讲解.md)
* [T0交易的账户详解](Documents/TEST_ORDER_BACKTEST_T0.md)

Expand Down

0 comments on commit d450df9

Please sign in to comment.