166 Commits

Author SHA1 Message Date
Victor Grau Serrat 5197ab6cc2 BUG: isolated Python3 depedency to the marketplace 2018-03-02 12:50:46 -07:00
Victor Grau Serrat fa0e9332bf MAINT: CLI info on marketplace cmds 2018-03-02 11:43:59 -07:00
Frederic Fortier d64d6f191f BLD: upgraded CCXT 2018-02-12 16:44:25 -05:00
Frederic Fortier 793b6e92d8 BLD: included marketplace dependencies 2018-02-08 00:47:25 -05:00
Frederic Fortier 25f1f6e641 BLD: upgraded CCXT 2018-02-08 00:18:48 -05:00
Frederic Fortier 311e357451 BLD: updated CCXT 2018-01-31 16:10:39 -05:00
Frederic Fortier f34a66e9c6 BUG: trying to fix issue #178 with Binance lot sizes 2018-01-24 21:54:05 -05:00
Frederic Fortier 853707dfb2 BLD: updated CCXT and temporarily fixed symbol mapping issue 2018-01-18 21:57:11 -05:00
Frederic Fortier b4e7629e8b BLD: upgraded CCXT 2018-01-04 21:07:15 -05:00
Frederic Fortier 3045c5108a BLD: backing out CCXT update, not enough time to test properly 2018-01-04 01:44:25 -05:00
Frederic Fortier f5503ae717 BLD: upgraded CCXT 2018-01-03 22:58:19 -05:00
Frederic Fortier b1f49d3c8d BLD: trying redo for retrying calls as suggesting in issue #121 2017-12-29 16:14:26 -05:00
Frederic Fortier 87428b299f fixed requirements 2017-12-07 12:38:50 -08:00
fredfortier 5b78f161a4 BLD: more live trading testing and added s3 stats output 2017-12-07 00:20:27 -05:00
fredfortier dcdf4f77db BLD: making some adjustment to the blotter to improve paper trading 2017-12-05 22:08:30 -05:00
fredfortier 606148e19c DOC: Integrating with ccxt 2017-11-28 13:42:58 -05:00
Victor 7f602d7fcc Update requirements.txt 2017-09-21 11:27:35 -06:00
fredfortier 1cfcb1d96e Initial work on bittrex implementation 2017-08-27 23:26:48 -04:00
Conner Fromknecht 2d26758fba General improvements 2017-07-01 18:26:57 -07:00
Conner Fromknecht fce97176d6 Changed zipline -> catalyst import paths
* Updated cython build scripts
 * Updated setup.py to to install catalyst package
 * Updated momentum example to use catalyst package
 * catalyst executable now supports loading pipelines from multiple bundles
2017-06-19 14:43:10 -07:00
Freddie Vargus ecd86aa799 BLD: Update CI files for py35
BLD: Move setuptools_scm recipe earlier

in build process. We order alphabetically.

BLD: Update to newest Cython version

BLD: Update version of matplotlib

BLD: Pin matplotlib dependency
2017-05-16 15:33:27 -04:00
Gus Gordon b45c52b453 Bump empyrical to 0.2.2 (#1674)
* Bump empyrical to 0.2.2

* Update example data for tests
2017-02-04 16:14:33 -05:00
Eddie Hebert d704851489 BLD: Use latest version of toolz.
Also, add requirement of cytoolz to blaze reqs so that toolz and cytoolz are
on the same version.
2017-01-13 15:42:59 -05:00
Richard Frank 5d4783966a MAINT: Pin exact versions of Mako, MarkupSafe, requests-file
which are transitive dependencies of zipline
2017-01-07 17:57:29 -05:00
Eddie Hebert 8ef2279ee4 BLD: Update numexpr to latest to satisfy tables deps. (#1636)
* BLD: Update numexpr to latest to satisfy tables deps.

tables 3.3.0 requires numexpr >= 2.5.2

Also remove numexpr conda recipe.
2017-01-05 15:27:24 -05:00
Eddie Hebert d7d2214756 ENH: Add a reader writer pair for HDF5 minute bar updates.
This format is intended for storing data for all sids of an asset type,
e.g. equities or futures for a session. bcolz is not used to avoid the overhead
of creating the directories and files for each asset (which numbers around ~8000
for active equities) can be removed since the update is meant to be read at
once, instead of supporting the random access pattern needed by the simulation.

This patch only adds the reader/writer pair, with the management of finding the
paths to delta files and the application of the updates to the bcolz write left
to internal loader code.

Also, the update reader interface is intentionally constrained to the data for
an entire session to allow for an implementation that allows for mid-session updates.
2017-01-04 12:09:10 -05:00
Ana Ruelas afc4a278e6 ENH: Empyrical bump 2016-10-05 12:54:16 -04:00
Scott Sanderson 76f8eaf2d5 BLD: Downgrade to scipy 0.17.
Anaconda doesn't have windows builds for scipy 0.18 (nor does
conda-forge.)
2016-09-20 17:12:08 -04:00
Scott Sanderson 659c8ae5ee BLD: Remove old numpy/pandas versions from travis. 2016-09-20 17:12:07 -04:00
Scott Sanderson c998d619b1 MAINT: Bump numpy and pandas. 2016-09-20 16:24:54 -04:00
Richard Frank b924c3b795 PERF: Use empyrical with ndarrays instead of Series 2016-09-19 15:51:06 -04:00
Jean Bredeche eb7e1fa580 ENH: Switching from cachetools.LRUCache to lru-dict's LRU cache.
lru-dict is written in C and seems much more performant.
2016-09-16 11:03:13 -04:00
Ana Ruelas f669602581 BLD: Update to empyrical 0.1.11 2016-08-30 16:41:57 -04:00
John Ricklefs 85e68f0162 PERF: Pass known calculations into empyrical methods
For example, to prevent `alpha` from internally calling
`beta` a second time, pass the previously-calculated
`beta` value in.

Requires empyrical 0.1.10 from pypi
2016-08-29 12:13:19 -04:00
Richard Frank 317c5f07cc BLD: alembic is now a production requirement 2016-08-24 15:32:31 -04:00
Ana Ruelas 5b0ff75c8a MAINT: Update whatsnew for empyrical changes 2016-08-23 17:02:12 -04:00
Ana Ruelas f57fe0a4b0 TST: Update to empyrical, increase test coverage
ENH: Resolve rebase conflict by using updated example_data.tar

TST: Increase test coverage for risk portion of zipline
2016-08-23 13:49:43 -04:00
Ana Ruelas 57d1bb82c4 ENH: Use qrisk to calculate risk metrics in cumulative and period
TST: Remove metric correctness testing from period and cumulative tests

ENH: Removed answer key and related files

ENH: Update qrisk version
2016-08-23 13:49:27 -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
Joe Jevnik bc0b117dc9 MAINT: make the data loading apis more consistent.
Changes BcolzDailyBarWriter to not be an abc, data is passed as an
iterator of (sid, dataframe) pairs to the write method.

Changes the AssetsDBWriter to be a single class which accepts an engine
at construction time and has a `write` method for writing dataframes for
the various tables. We no longer support writing the various other data
types, callers should coerce their data into a dataframe themselves. See
zipline.assets.synthetic for some helpers to do this.

Adds many new fixtures and updates some existing fixtures to use the new
ones:

WithDefaultDateBounds
  A fixture that provides the suite a START_DATE and END_DATE. This is
  meant to make it easy for other fixtures to synchronize their date
  ranges without depending on eachother in strange ways. For example,
  WithBcolzMinuteBarReader and WithBcolzDailyBarReader by default should
  both have data for the same dates, so they may use depend on
  WithDefaultDates without forcing a dependency between them.

WithTmpDir, WithInstanceTmpDir
  Provides the suite or individual test case a temporary directory.

WithBcolzDailyBarReader
  Provides the suite a BcolzDailyBarReader which reads from bcolz data
  written to a temporary directory. The data will be read from
  dataframes and then converted to bcolz files with
  BcolzDailyBarWriter.write

WithBcolzDailyBarReaderFromCSVs
  Provides the suite a BcolzDailyBarReader which reads from bcolz data
  written to a temporary directory. The data will be read from a
  collection of CSV files and then converted into the bcolz data through
  BcolzDailyBarWriter.write_csvs

WithBcolzMinuteBarReader
  Provides the suite a BcolzMinuteBarReader which reads from bcolz data
  written to a temporary directory. The data will be read from
  dataframes and then converted to bcolz files with
  BcolzMinuteBarWriter.write

WithAdjustmentReader
  Provides the suite a SQLiteAdjustmentReader which reads from an in
  memory sqlite database. The data will be read from dataframes and then
  converted into sqlite with SQLiteAdjustmentWriter.write

WithDataPortal
  Provides each test case a DataPortal object with data from temporary
  resources.
2016-04-15 23:46:10 -04:00
Eddie Hebert e1b376a49b BUG: Add limit to memory growth on sliding windows
Add a cap of 5 sliding windows (one per OHCLV column) to the history
loader's cache of sliding windos.

This prevents unbounded growth on algorithms that call history with a
highly varied list of equities.

To follow is splitting the cache up by column and by sid, so that the
loader does not re-prefetch sids which have already been read with
sufficient data; however this patch is enough to fix the issue where an
algo with high rotation can add up a megabyte per day of memory on
algorithms which rotate on a 5% dollar volume pipeline. With this cap
those algorithms have more plateaus with regard to memory consumption.

This patch requires new dependency of `cachetools` library.
2016-04-14 22:20:02 -04:00
Richard Frank 5254b273b2 PERF: Reimplemented remember_last with a weak_lru_cache
which won't leak instances whose methods have been decorated

(specifically DataPortal instances)

MAINT: Not using functools32 anymore
2016-04-12 19:33:21 -04:00
Richard Frank 6e7c66b158 BLD: ordered_pip is unforgiving 2016-04-06 09:33:33 -04:00
Richard Frank 39fbdd30e3 MAINT: Use environment markers instead of separate requirements
file for py2
2016-04-05 23:07:00 -04:00
Richard Frank be4dcb22dc MAINT: intervaltree requires sortedcontainers 2016-04-04 16:12:58 -04:00
Eddie Hebert 16fd6681a6 ENH: Rewrite of Zipline to use lazy access pattern
More documentation to follow in release notes.

Based on lazy-mainline branch, see for more details.

Also-By: Jean Bredeche <jean@quantopian.com>
Also-By: Andrew Liang <aliang@quantopian.com>
Also-By: Abhijeet Kalyan <akalyan@quantopian.com>
2016-04-04 16:12:58 -04:00
Richard Frank 2ee66e4c1d BLD: Bumped numexpr version and added conda recipe 2016-03-23 15:26:54 -04:00
Jonathan Kamens f5d6060bb4 MAINT: Upgrade six, futures, requests-futures, piprot versions
Upgrade six 1.9.0 -> 1.10.0 in requirements.txt, and futures 3.0.3 ->
3.0.5, requests-futures 0.9.5 -> 0.9.7, and piprot 0.9.1 -> 0.9.6 in
requirements_dev.txt.
2016-02-27 11:46:51 -05:00
Jonathan Kamens 369a24aaec MAINT: Remove obsolete comment from requirements.txt
There was a comment in requirements.txt warning not to use
python-dateutil 2.4.0, which was necessary when we were using 2.3.x
and 2.4.0 was broken for us, but now we're using 2.4.2 which is fixed,
so the comment is no longer needed.
2016-02-27 11:45:44 -05:00
Richard Frank adb051700a BLD: Downgrade Cython
because of mislabeled osx anaconda package
2016-02-19 15:42:02 -05:00