Data Bundles
A data bundle is a collection of pricing data, adjustment data, and an asset database. Bundles allow us to preload all of the data we will need to run backtests and store the data for future runs.
数据包是定价数据,调整数据和资产数据库的集合。 Bundles允许我们预先加载所有需要运行回测的数据并存储数据以供将来运行。
Discovering Available Bundles发现可用的捆绑包
Zipline comes with a few bundles by default as well as the ability to register new bundles. To see which bundles we have available, we may run the bundles command, for example:
Zipline默认带有几个捆绑包以及注册新捆绑包的功能。 要查看我们可用的捆绑包,我们可以运行捆绑命令,例如:
数据包是Zipline中的数据集合,包含定价、调整数据和资产数据库。使用`ingest`命令摄取数据,`bundles`列出可用包。默认包Quandl WIKI需要API密钥。`ingest`新数据会按日期创建子目录,`clean`可删除旧数据。通过`run`命令结合`--bundle`和`--bundle-timestamp`运行回测。创建新数据包需实现`ingest`函数,将数据转换为Zipline的内部格式。
订阅专栏 解锁全文
502

被折叠的 条评论
为什么被折叠?



