Commit graph

16 commits

Author SHA1 Message Date
Joe Jevnik
e18b9047c2 MAINT: pr feedback
Co-authored-by: Richard Frank <richafrank@users.noreply.github.com>
2020-07-22 16:08:32 -04:00
Joe Jevnik
7ab8d00211 ENH: change default bundle to quantopian-quandl 2020-07-22 16:08:32 -04:00
Hristo Georgiev
c80a97b8b5 DOC: Fix typos and remove trailing whitespace. 2019-10-19 11:10:50 +01:00
Scott Sanderson
e491ebef53 ENH: Initial support for international pipelines.
This commit adds initial support for international markets in the Pipeline API
via addition of the concept of "domains".

Significant changes on this branch include:

- Added `zipline.pipeline.domain` and the `Domain` interface.
  - Added several canonical domain definitions:
    - GENERIC
    - US_EQUITIES
    - CA_EQUITIES
    - GB_EQUITIES

- Added `zipline.country` as a place to define canonical country code names.

- Made `PipelineLoader` an interface and added new `domain` parameter to
  signature of `load_adjusted_array`.

- Added a new system for "generic" and "specialized" DataSet and BoundColumn
  objects.

- Added a new system for inferring a domain from a pipeline that contains a mix
  of generic and non-generic terms.

- Reworked the built-in pricing dataset. USEquityPricing dataset is now a
  specialized version of a generic EquityPricing dataset, and most built-in
  factors are now implemented in terms of EquityPricing rather than
  USEquityPricing.

- Removed `zipline.data.us_equity_pricing`.
  - Moved BcolzDailyBar{Reader,Writer} to `zipline.data.bcolz_daily_bars`.
  - Moved SQLiteAdjustment{Reader,Writer} to `zipline.data.adjustments`.

New dependencies added as part of this work:

- iso3166 (for canonical country code definitions)
- python-interface (for strict interface definitions).

See https://github.com/quantopian/zipline/issues/2265 for a full description of
the design for domains.
2018-09-10 10:05:39 -05:00
Richard Frank
94237421d6 DOC: Fixed typo in description of --bundle-timestamp 2018-03-12 18:23:52 -04:00
Freddie Vargus
ec151a0325 DOC: Docs & tutorial updates for ingesting, beginners, and csvdir 2018-01-08 14:54:40 -05:00
Guillermo Alonso
7f5d852532 DOC: Fix some typos 2017-08-10 09:20:01 -04:00
Freddie Vargus
d4d8db3e1a MAINT: Remove code that doesn't work with the new yahoo API
DOC: Remove mentions of Yahoo data bundles

MAINT: Remove yahoo bundle, test, and more mentions of yahoo
2017-07-03 11:01:39 -04:00
Ana Ruelas
092951470a DOC: Fix invalid sphinx sections 2017-06-05 15:52:57 -04:00
Andrew Daniels
440806ad60 MAINT: Use TradingCalendar objects for bundles (#1397)
* MAINT: Use TradingCalendar objects for bundles

Instead of trading days, opens, and closes, register now takes a
TradingCalendar object, along with a start_session and end_session. The
ingest function is now passed these values instead as well.

* Accept calendar name in addition to the actual object

* Updates bundles documentation for changes

* Fix typo in docs

* Use class formatting

* Force start_session and end_session within the bounds of the calendar

* Use UTC timestamps in test_core

* Document Trading Calendar API in appendix.rst
2016-08-17 13:37:07 -04:00
Alexey Degtyarev
84afb997d3 DOC: Fix typo in command line to ingest quandl
Usage: zipline ingest [OPTIONS]

  Ingest the data for the given bundle.

Options:
  -b, --bundle BUNDLE-NAME        The data bundle to ingest.  [default:
                                  quantopian-quandl]

  <...>
2016-06-27 01:55:21 +03:00
Wilson Choi
25cc65e393 DOC: add ingesting data ref to beginner tutorial 2016-06-02 16:07:41 -07:00
Joe Jevnik
96ec1fd639 DOC: update bundle yahoo example 2016-05-20 15:40:46 -04:00
Joe Jevnik
a26802efd2 DOC: Update docs for bundles and fix the whatsnew 2016-05-05 18:22:14 -04:00
Joe Jevnik
89542e33bd ENH: Adds quantopian-quandl bundle as new default.
This data bundle will use the quantopian mirror of the quandl WIKI data
instead of downloading from quandl directly. This dramatically improves
the speed because we do not pay the rate limiting for quandl and we can
send the data in the format zipline expects.
2016-05-05 18:22:13 -04:00
Joe Jevnik
59c8e371a2 ENH: Updates the cli, data bundles and extensions.
Adds the data bundle concept which makes it easy for users to register
loading functions to build out minute and daily data along with an
assets db and adjustments db. By default we have provided a `quandl`
bundle which pulls from the public domain WIKI dataset. Users may
register new bundles by decorating an ingest function with
`zipline.data.bundles.register(<name>)`. This also provides a
`yahoo_equities` function for creating an ingestion function that will
load a static set of assets from yahoo.

The cli is now structured as a couple of subcommands and has been
changed to `python -m zipline`. The old behavior of `run_algo.py` has
been moved to the `run` subcommand. This is almost entirely the same
except that it now takes the name of the data bundle to use, defaulting
to `quandl`.

The next subcommand is `ingest` which takes the name of
a data bundle to ingest. This will run the loading machinery and write
the data to a specified location that `run` can find.

There is also a `clean` subcommand which deletes the data that was
written with `ingest`.

Extensions have also been added to zipline. This is an experimental
feature where users can provide an extra set of python files to run at
the start of the process. These can be used to configure aspects of
zipline. Right now the only thing that is supported in an extension file
is the registration of a new data bundle.
2016-05-03 18:38:24 -04:00