Commit Graph

1140 Commits

Author SHA1 Message Date
Eddie Hebert bb2811e101 Updates ipython to the latest. 0.12 -> 0.13.1 2012-11-05 10:32:28 -05:00
Eddie Hebert 7e7bf72d76 Updates Logbook package to latest. 0.3 -> 0.4 2012-11-05 10:22:13 -05:00
Eddie Hebert 332d12c7e2 Upgrades Cython package to latest. 0.15.1 -> 0.17.1 2012-11-05 10:18:12 -05:00
Eddie Hebert a81a9bbf27 Upgrades msgpack-python package to latest. 0.1.12 -> 0.2.2 2012-11-05 10:12:25 -05:00
Eddie Hebert 64a190821d Upgrades nose package to latest. 1.1.2 -> 1.2.1 2012-11-05 10:07:40 -05:00
Eddie Hebert aa659772b2 Updates pytz package to latest. 2011n -> 2012h 2012-11-05 10:04:25 -05:00
Eddie Hebert 18d4e61f00 Updates requests package. 0.14.1 -> 0.14.2 2012-11-05 10:01:49 -05:00
fawce fa427afb16 added algotime get/set to algorithm 2012-10-29 18:54:55 -04:00
Eddie Hebert c0b260fc4a Bumps version up to 0.5.1 in setup config. 2012-10-25 22:31:15 -04:00
Eddie Hebert c1227105ab Tweaks indentation. 2012-10-25 22:30:46 -04:00
Eddie Hebert 04642c0077 Removes leased sockets from unit test.
The leased sockets were from a previous architecture.
2012-10-25 10:37:58 -04:00
Eddie Hebert c529698730 Fixes Markdown links in README. 2012-10-25 09:42:58 -04:00
Eddie Hebert 657f93165d Removes unused test class member and corresponding import.
Leased sockets is from an older architecture.
2012-10-25 07:17:35 -04:00
Thomas Wiecki c0b161287d Fixed odd bug that caused the first day not to get simulated. This triggered some changes to the batchtransform unittests. 2012-10-23 17:57:27 -04:00
Thomas Wiecki 42c2a6b892 Adds example algorithm scripts. 2012-10-23 17:46:02 -04:00
Thomas Wiecki 63e19f71c0 Rewrites README.
Cleans up installation notes and adds quickstart code.
2012-10-23 17:42:12 -04:00
Eddie Hebert e77cce1dc2 Removes extra getter method for getting returns member. 2012-10-23 13:29:42 -04:00
Eddie Hebert cd23a4acca Merge pull request #4 from quantopian/default_market_aware
Transforms now default market_aware=True.
2012-10-23 10:22:48 -07:00
Thomas Wiecki 7a34e37b1e Transforms now default market_aware=True. 2012-10-23 09:14:05 -04:00
Eddie Hebert bad6296d24 Merge pull request #2 from quantopian/yahoo_finance_loader
Added yahoo finance loader.
2012-10-22 09:07:25 -07:00
Eddie Hebert 38f4525148 Merge pull request #3 from quantopian/upgrade-flake8
Updates flake8 to latest.
2012-10-22 09:05:07 -07:00
Eddie Hebert 7904773d00 Updates flake8 to latest.
The latest flake8 release in now 1.5, which pulls in pep8: 1.3.4a0

The upgrade pep8 has changes to what it picks up as lint.
Making code base compatible, so that new devs can install pep8
from PyPI and not have friction over the version difference.

Currently using these ignores in the config file:

```
[pep8]
ignore = E124,E125,E126
```

Ignoring these since they are difficult to squash while maintaining
an 80 char line length, and appear spurious.
Should address later.

Updates Travis config, README, and pip requirements to reflect change.
2012-10-22 11:57:16 -04:00
Thomas Wiecki ae1644fe35 Added yahoo finance loader. 2012-10-22 09:28:56 -04:00
Thomas Wiecki ddb007a6f9 Removed optimize from __init__.py file. 2012-10-22 09:04:12 -04:00
Thomas Wiecki d468d05ba4 Removes optimize directory and optimize unittests which live on a separate branch yet. Was not functional yet and should thus not be in the main branch. 2012-10-22 08:51:30 -04:00
Eddie Hebert b421d805b4 Merge pull request #1 from quantopian/restructure_files
Restructured file hierarchy.
2012-10-19 15:21:07 -07:00
Thomas Wiecki 15ac658024 Restructured file hierarchy. Transforms now live in transforms (transform.py is now transforms/utils.py). Sources are in sources.py. VWAP is now MovingVWAP. 2012-10-19 18:10:51 -04:00
Eddie Hebert ff52787c1a Adds manifest file for sdist packaging. 2012-10-19 16:46:30 -04:00
Eddie Hebert 23e7b0661c Fixes typo in nosetests invocation in Travis config. 2012-10-19 15:41:50 -04:00
Eddie Hebert a789e8d6ff "sudo install me a gfortran" 2012-10-19 15:25:58 -04:00
Eddie Hebert 14104a3866 Moves Travis gfortran install to "before" step so that it has root. 2012-10-19 15:23:26 -04:00
Eddie Hebert f1cfacd6e4 Adds gfortran to Travis CI env so that it's available to numpy.
Also drops ipython (which is used for desktop development) and
nose (which is installed by default by Travis CI) from list of
dev packages to be installed during a Travis build.
2012-10-19 15:14:27 -04:00
Eddie Hebert e9d4f1d9d0 Applies flake8 recommendation. Whitespace wrangling. 2012-10-19 14:14:53 -04:00
Eddie Hebert d2283ea887 Adds Travis CI build status to README. 2012-10-19 14:04:44 -04:00
Eddie Hebert fc27793ee6 Removes typo of 'pip install' prefix from Travis CI config. 2012-10-19 14:02:30 -04:00
Eddie Hebert 1334913a33 Uses ordered pip for Travis CI. 2012-10-19 13:50:10 -04:00
Eddie Hebert 8ead20b6b1 Adds configuration for Travis CI.
Using public continuous integration at https://travis-ci.org/
2012-10-19 13:44:42 -04:00
Thomas Wiecki 92f1dbef0c Fixes bug that .run() could not be called twice on an algorithm. Added unittest to check. 2012-10-19 11:47:59 -05:00
fawce 943a56322e added a __call__ method to BatchTransform to make it useable as a decorator. 2012-10-19 11:20:00 -04:00
Eddie Hebert e752dfacc9 Changes answer key to benchmarks to match fresh data from Yahoo.
This answer key needs to be verified with original calculations.

Also, we may want to hardcode values in plain text to use for these
tests, instead of relying on a full history.
2012-10-19 11:19:52 -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 05bb179aba Accounts for negative values when creating compounded returns.
Sets the value sent to log to a value that doesn't crash out because
of negative value.
Setting the value to 0 instead.
2012-10-19 11:18:26 -04:00
Thomas Wiecki b976c1252b Provides an iterative version of risk metrics.
I wrote this a little while ago as I noticed that a lot of time is spent
computing risk statistics. This is done over the complete history over
and over again while this could be done just by using the previously
computed value (iteratively).

We didn't go forward back then because for minute trade data the
difference was not significant enough. However, now with zipline
standalone I think most people will use daily (because that's
what's available) and it makes a huge difference
(speed-up of a couple of 100%).

Unfortunately, we can't just replace the existing one with an
iterative as for the final cumulative stats the batch is still
better. So that's not as nice, but the performance increase is
big enough for me to issue this PR (zipline is actually painfully
slow with daily data).

There is a unittest that compares that both produce exactly
the same outputs.

Speed measurements (for 500 trading days, daily source):

with iterative:
real 26.617 user 12.909 sys 6.112 pcpu 71.46

prior:
real 44.176 user 31.030 sys 11.381 pcpu 96.00
2012-10-17 23:41:30 -04:00
Eddie Hebert 44efa4294f Adds section about hosting of the source to README. 2012-10-17 15:29:31 -04:00
Eddie Hebert b61a5a31a5 Removes notes about data soures in README.
This should live in the docs instead.
2012-10-17 15:22:58 -04:00
Eddie Hebert b1ed4c6d8c Removes unused sum_true method. 2012-10-16 21:48:38 -04:00
Eddie Hebert ae41a94c8f flake8 cleanup to protocol_utils 2012-10-16 16:35:23 -04:00
Eddie Hebert 9545c2672f Removes unused trading day rules in date_utils.
This logic is now captured in trading calendar.
2012-10-16 16:31:13 -04:00
Eddie Hebert 3395d3ad3b Removes unused date_to_datetime in zipline. 2012-10-16 15:20:22 -04:00