26 Commits

Author SHA1 Message Date
Ben Feeser d4efed0d3a DEV: add .python-version to .gitignore for pyenv 2018-01-12 16:45:20 -05:00
fredfortier b8d442cf89 Creating a clean branch for live trading 2017-08-27 15:19:13 -04:00
Conner Fromknecht b4b19a7555 USDT_BTC benchmark
This commit:
 * Adds a crypto_benchmark that can create benchmarks for symbols found on POLO
 * Changes default trading calendars to OPEN
 * Properly computes daily bar data from five minute POLO bars
 * Allows trading of one hundredth of a coin, later we plan to integrate per the
   ratio of a full coin to its base denomination.
2017-06-23 18:44:45 -07:00
Conner Fromknecht 7447b465ba Run curator 2017-06-19 14:43:10 -07:00
Conner Fromknecht be2fe35583 Crypto integration + multiple pipeline bundles 2017-06-19 14:43:10 -07:00
Scott Sanderson ccd94e6e64 MAINT: Rebuild example data. 2016-09-20 17:12:09 -04:00
Eddie Hebert 11db8b2c10 TST: Add coverage output to gitignore.
Ignore `htmlcov` directory created by `coverage html`.
2016-08-18 14:11:26 -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
Richard Frank bd8c96846d DEV: Git ignoring PyCharm settings folder 2016-03-30 10:30:15 -04:00
Joe Jevnik ef29de222a MAINT: add .eggs/* to gitignore 2016-02-17 20:23:29 -05:00
Tim Shawver 631a1879a3 Adding a built in Returns factor to the pipeline API. 2015-12-01 13:24:41 -05:00
Eddie Hebert b44fc20e4e MAINT: Remove msgpack as a dependency.
Now that the data serialization uses pandas, msgpack is no longer
needed.
2013-10-01 14:28:11 -04:00
Ben McCann 0edd4f071e MAINT: Make the risk answer key ignored in git 2013-07-19 14:54:45 -04:00
John Ricklefs d9b7578eae Add a VirtualBox-based Vagrant config file.
This VagrantFile will, on "vagrant up"...

- Create a simple, minimal Precise Pangolin (12.04) Ubuntu 64 bit VM
- Customize the VM with 2 virtual CPU's and 2048MB of RAM
- Configure SSH for passwordless access (from the command-line)
- Add the required packages from the Ubuntu repo to support zipline
- Add (and compile) ta-lib
- Add the required Pip packages

When Vagrant is done, you can start hacking on zipline with:

vagrant ssh
cd /vagrant
python {some python script that uses zipline}
In the spirit of making this a disposable dev environment install
everything in site-packages.

"nosetests" and "examples/dual_moving_average.py" both succeed
after the configuration finishes.
2013-07-02 10:53:04 -04:00
Eddie Hebert 0ab136f1c8 Adds a loader for market data when it doesn't exist locally.
Hopefully, this helps ease ramp up time for developing against
market data, without us distributing the data.

We do a check for the data when attempting to read the msgpack
files, if they don't exist the loader makes a web request and
retrieves and serializes the data for the user.

Provides a loader for:

- curves from data.treasury.gov
- benchmarks from Yahoo! Finance

Adds dependency of requests library in dev requirements.
2012-10-19 11:19:14 -04:00
Eddie Hebert 58bf8ceed9 Adds .noseids generated by nosetests --failed to ignore list. 2012-10-19 11:18:47 -04:00
Eddie Hebert 0c96915404 Removes requirement of existence /var/log/zipline.log
Instead log to test.log in working directory when running tests.

Also, removes config file for logging module, that is no longer
used since we are now using LogBook.
2012-10-12 11:27:42 -04:00
Eddie Hebert f8a9cc6cc0 Removes reference to host_settings.py from .gitignore 2012-10-03 11:25:12 -04:00
Stephen Diehl 318d7ba678 Fun fun times writing setup.py 2012-05-26 18:24:48 -04:00
fawce 89822748a7 adding in vbench 2012-05-23 15:36:15 -04:00
fawce 12aaa4a2e0 intersticial commit to show realdiehl the dummy module. 2012-02-27 14:48:59 -05:00
fawce 227eb35ee2 documentation on simulator, delinting, refactoring 2012-02-10 17:02:01 -05:00
fawce 45f2476045 adjusted params to nosetests, disabled pdb on failure 2012-02-08 16:52:30 -05:00
fawce ef39dae85a docs building 2012-02-08 16:01:39 -05:00
Stephen Diehl 1222c61d8f Tweak gitignore to ignore coverage.py binaries 2012-02-04 02:39:07 -05:00
fawce b157230a01 cleanup 2012-01-12 17:05:25 -05:00