Commit Graph

2512 Commits

Author SHA1 Message Date
Jonathan Kamens 74306f5d2d MAINT: Upgrade Markdown to 2.6.2 2015-04-22 21:12:44 -04:00
Jonathan Kamens 8ee7f6bd79 List dependencies before the things that depend on them
Because we use ordered_pip.sh to install requirements files, we want
dependencies in requirements_dev.txt to be listed _before_ the things
that depend on them, rather than after. Otherwise, with
ordered_pip.sh, stuff will get installed implicitly, and perhaps the
wrong version.
2015-04-22 16:06:33 -04:00
warren-oneill fdd4940faf make calendar test compare generated calendar with the benchmark calendar
renaming cal_days to bench_days
2015-04-20 15:02:30 -04:00
Eddie Hebert 0fa44471be MAINT: Change expected type of treasury curves from load to DataFrame.
Instead of converting the curves back and forth from dictionaries to
DataFrame and back, use the DataFrame format when passing to
environment.
2015-04-20 10:26:09 -04:00
Brian Fink 82d2ddfa90 BUG: Fix limit orders
Only fill limit order if impacted fill price is better than the limit price.
If a limit order is partially filled, only fill the remaining shares if the
impacted fill price is better than the limit price.
2015-04-16 17:09:14 -04:00
Benjamin Berman ef598c7130 BUG: Handle a ValueError on from_csv calls
The cached market data could be corrupted. Pandas raises a ValueError in
that case, and this error handles it.
2015-04-14 12:40:37 -04:00
Scott Sanderson 885db87dea MAINT: Use logger instead of printing in loader.py
Makes it easier to filter logs when they're not desired.
2015-04-14 12:40:37 -04:00
Brian Fink 8baf52fe01 ENH: Add max leverage account guard 2015-04-10 15:19:54 -04:00
Brian Fink 2f895bddcd ENH: Track max leverage as risk 2015-04-10 15:19:54 -04:00
James Kirk 7af9b30a99 Merge pull request #560 from quantopian/calendar-clean
More flexible calendar implementation
2015-04-10 10:35:31 -04:00
Eddie Hebert 9bc40563b7 MAINT: Remove unused returns vector from perf tracker.
The returns Series in the perf tracker appears to be vestigial, so
remove.
2015-04-09 14:43:19 -04:00
warren-oneill 61571601ac added test for initialization of max_date in TradingEnvironment and removed trading_day from max_date if statement. 2015-04-08 16:57:32 -04:00
warren-oneill b62fadc76f adding NYSE trading_day and trading_days as default in load_market_data() 2015-04-08 16:57:23 -04:00
warren-oneill aa872afdf4 adding updates from master 2015-04-08 16:57:12 -04:00
warren-oneill 6432631981 uncommenting out test_calendar_vs_environment 2015-04-08 16:57:01 -04:00
warren-oneill 358d2a3b59 remove hardcoding of get_early_closes and passing trading_day and trading_days from env to load() 2015-04-08 16:56:52 -04:00
warren-oneill 49c168b3d0 adding trading_day and trading_days as variables to load_market_data 2015-04-08 16:56:13 -04:00
Thomas Wiecki d578d5825e BUG: Filter nans in DataFrame and Panel sources.
If a SID hasn't started trading yet, pandas' convention is to use nans.
Before this change, zipline would raise an exception if there were nans in the
input data.

We now skip events where the prices contains a nan and has not been traded
before (in which case forward fill).

Fixes #446.
2015-04-08 17:00:22 +02:00
Thomas Wiecki a257a43e99 DOC: Fix DataFrame and Panel sources doc strings. 2015-04-08 17:00:22 +02:00
Eddie Hebert 0821d3cad4 MAINT: Remove unused functions.
Found no references to these functions, so remove.
2015-04-06 16:43:35 -04:00
Jonathan Kamens 09c787829b MAINT: Upgrade nose to 1.3.6 2015-04-06 12:13:03 -04:00
Jonathan Kamens 80a704ff80 MAINT: Upgrade python-dateutil to 2.4.2 2015-04-02 20:16:36 -04:00
John Ricklefs b6b5275e67 MAINT: Downgrade Logbook to 0.6.0 2015-03-31 14:17:13 -04:00
Eddie Hebert 246b8bdcdc BLD: Fix Travis nosetests ability to use plugins.
In Python 3 builds, the miniconda version of nose was being used, which
was not finding the pip installed plugins.

Force the install of nose into the non-miniconda part of the
environment where the plugns are installed.
2015-03-31 14:09:21 -04:00
Eddie Hebert d4cf40099f BLD: Reduce the number of Travis build permutations.
Now that the pandas and numpy upgrade is complete, no longer need to
test for forwards and backwards compatibility.

Also, now that Cython is part of the build, the existence of Cython can
be assumed for building cyordereddict.
2015-03-31 14:08:56 -04:00
Eddie Hebert 314b22656f MAINT: Remove left over simple transform code.
Remove pieces that are no longer used now that the simple transforms are
wrappers around history via the SIDData object.

Move window length related pieces into batch_transform, since the rest
of the utils module is no longer used.
2015-03-30 14:18:39 -04:00
Jonathan Kamens 3b56a62660 MAINT: PyPI package updates, incl. pandas 0.16.0 2015-03-24 05:04:40 -04:00
Jonathan Kamens b3a2809bee BLD: ordered_pip.sh: don't count blank/comment lines as packages! 2015-03-23 09:56:31 -04:00
Jonathan Kamens 9b6fc00c5a BLD: Make backports.ssl-match-hostname line ok for ordered_pip.sh
Remove whitespace from the backports.ssl-match-hostname line in
requirements_dev.txt to make it more palatable to ordered_pip.sh.
2015-03-23 09:11:22 -04:00
Thomas Wiecki 208bdd3e45 DOC Fix command in readme. 2015-03-20 15:44:32 +01:00
Jonathan Kamens 9cedbdd1c9 Merge pull request #539 from quantopian/pypi_update2
Upgrade PyPI packages, remove hard-coded Cython version in setup.py, Flake8 changes
2015-03-19 17:25:18 -04:00
Jonathan Kamens fa755d54a7 STY: Flake8 2015-03-19 17:21:25 -04:00
Jonathan Kamens 3a62db8ca8 BLD: Don't hard-code a Cython version in setup.py 2015-03-19 17:21:25 -04:00
Jonathan Kamens d109e81d3b MAINT: Update a bunch of PyPI package versions 2015-03-19 17:21:25 -04:00
John Ricklefs 935579fc28 MAINT: Upgrade Pandas to 0.15.2 2015-03-19 17:21:25 -04:00
Jonathan Kamens e942275108 STY: Flake8
Upgrade the version of the flake8, pep8, and mccabe PyPI packages, and
make the code changes necessary for compatibility with the updated
packages.
2015-03-19 17:21:25 -04:00
James Kirk 39f3b9463c Merge pull request #535 from quantopian/rename-security-to-asset
Refactor Security to Asset
2015-03-19 17:09:46 -04:00
jfkirk 84d4fa3c08 ENH: Adds Equity and Future classes as extensions of Asset class 2015-03-19 13:23:40 -04:00
jfkirk 2fd2f02c2a MAINT: Refactors Security to Asset
This commit refactors the Security cython class to Asset, and refactors some fields of the class accordingly. This change is so the terminology is consistent and correct when Asset is extended to asset types that are not securities, such as futures.
2015-03-19 13:23:40 -04:00
Dale Jung d593bde668 BLD: Remove conda installing nose if we're just uninstalling and then
reinstalling with pinned PIP version
2015-03-19 10:58:25 -04:00
Eddie Hebert e69cf46e63 TST/BUG: Remove incorrect time period from hardcoded date.
Incompatible with changes to date parsers which reject the mismatch of
13:31 and AM.
2015-03-19 10:15:05 -04:00
Dale Jung 7892a6943f RFT: Remove Position management from PerformancePeriod. This cuts down
on the number of per-tick update that occur since they were duplicated
per each PerformancePeriod. Also opens up the path to cythonizing the
entire object
2015-03-18 22:48:14 -04:00
Jonathan Kamens 6cd2f4f1f2 TEST: Update Security class unit tests for Python3 compatibility 2015-03-12 10:32:26 -04:00
Jonathan Kamens e19f02a2ec BUG: Handle all possible types of Security object __richcmp__ args
A cython __richcmp__ function isn't allowed to assume that its first
argument is the same as the type of the class to which it belongs, so
our code needs to account for either of its two arguments being of the
wrong type.

Furthermore, the correct way for __richcmp__ to handle when it doesn't
know how to do a comparison is to return NotImplemented.
2015-03-10 20:36:52 -04:00
Jonathan Kamens c46a3afa3c BUG: Don't download benchmarks / treasury curves unnecessary
Fix an off-by-one error which was causing us to download the benchmark
and treasury curves over and over again even when they weren't needed.
2015-03-08 09:31:50 -04:00
Jonathan Kamens aa585b1cf8 BUG: Fix Python 3 support for Cythonized Security object
Python 3 for some reason doesn't like usage of the cmp() built-in, so
instead of using cmp(), just subtract the two ints being compared.

In addition to making this work with Python 3, it should also be more
performant since it no longer requires calling the cmp() method.
2015-03-08 09:31:50 -04:00
Jonathan Kamens 716bdbb7cd BUG: Fix >= comparison for Cythonized Security object
The >= comparison for the Cythonized Security object was actually
doing <=. Fix this and add unit tests for all the Security object rich
comparison operators.
2015-03-08 09:31:50 -04:00
Thomas Wiecki 16a88557f4 BLD Add cython as a conda build dependency. 2015-03-06 14:53:25 +01:00
Delaney Granizo-Mackenzie c49b00e9a1 Merge pull request #510 from quantopian/move-serialization-methods-into-zipline
MAINT: Added pickle protocol methods into zipline.
2015-03-05 15:06:54 -05:00
Delaney Granizo-Mackenzie f6f69e9106 MAINT: Updated iteritems for python3 compatibility 2015-03-05 14:05:24 -05:00