Commit Graph

3211 Commits

Author SHA1 Message Date
dmichalowicz e2d088c2be DOC: Update whatsnew 2015-12-21 16:49:01 -05:00
dmichalowicz 4f24a32c45 BUG: Benchmark and treasury curves data missing on first download 2015-12-21 13:38:24 -05:00
Scott Sanderson c4f3f51ea5 Merge pull request #925 from quantopian/rename-moments
DOC: Rename exponential stddev.
2015-12-18 15:07:41 -05:00
Scott Sanderson 8abef95bb5 DOC: Rename exponential stddev.
ExponentialWeightedStandardDeviation -> ExponentialWeightedMovingStdDev.

This is more consistent with the other moving moment factors.
2015-12-18 14:30:28 -05:00
Eddie Hebert 58906c74f9 Merge pull request #920 from quantopian/make-pos-stats-a-method
MAINT: Make tracker stats a method.
2015-12-18 13:19:13 -05:00
Eddie Hebert 5ad93d7568 Merge pull request #921 from quantopian/reformat-ext-modules
STY: Align all build_ext definitions the same way.
2015-12-18 13:18:07 -05:00
Eddie Hebert 93c9f01b5a STY: Align all build_ext definitions the same way.
No functional change.
2015-12-18 10:37:27 -05:00
Eddie Hebert d07d42263a MAINT: Make tracker stats a method.
Instead of calling a function, where the only parameter is the tracker
object, make it a method, so that the snapshot of position tracker stats
can be more easily called as `pt.stats()`.
2015-12-18 09:52:53 -05:00
Eddie Hebert 4bb269490f Merge pull request #919 from quantopian/prepare-for-removal-of-event
Make commission and split handling compatible with event removal
2015-12-17 15:31:54 -05:00
Eddie Hebert 104245bb19 MAINT: Make split method coarse.
In preparation for removal of widespread events, change the split
methods to use params for sid and cost, instead of an event, for
compatibility with lazy branch.

co-author: @jbredeche <jean@quantopian.com>
2015-12-17 15:11:09 -05:00
Eddie Hebert 7eae960b21 MAINT: Make commission methods coarse.
In preparation for removal of widespread events, change the commission
methods to use params for sid and cost, instead of an event, for
compatibility with lazy branch.

co-author: @jbredeche <jean@quantopian.com>
2015-12-17 15:09:12 -05:00
Scott Sanderson 71395d4ea1 DOC: Fix typo in CustomFactor docstring. 2015-12-17 13:18:20 -05:00
Eddie Hebert a28236aef2 Merge pull request #917 from quantopian/pass-leverage-to-cumulative
MAINT: Pass leverage instead of account to risk.
2015-12-16 17:12:25 -05:00
Eddie Hebert 7df0f9e4b0 MAINT: Pass leverage instead of account to risk.
The only value used in the account is leverage, so pass the leverage
value directly.

Also, remove account from risk init, since it is not used.
2015-12-16 15:32:48 -05:00
Eddie Hebert 8c1e52385f MAINT: Raise NotImplementedError in data_portal
The patch that added data_portal intended for NotImplementedError to be
raised if one of the functions was invoked, but the raise was omitted.
2015-12-15 17:08:19 -05:00
Eddie Hebert 78dc0f2e47 Merge pull request #914 from quantopian/move-order-module
Move order and transaction classes
2015-12-15 16:42:14 -05:00
Eddie Hebert 82affb639f TST: Explicitly skip versioning tests.
The test had a check for a pandas version (0.12.0) which was out of date
with the version in requirements, meaning the tests have not been run
regularly and unstable.

Skip via the decorator to make it more noticeable that tests are not
being run.
2015-12-15 16:23:59 -05:00
Eddie Hebert bbb9cc87a9 REF: Move transaction class to own module. 2015-12-15 16:23:59 -05:00
Eddie Hebert fc9d13ca0c REF: Move check_order_triggers to method of order.
The function takes order as a first parameter, which lends itself to
being an instance method.
2015-12-15 16:23:59 -05:00
Eddie Hebert b863733953 REF: Move order class to distinct module. 2015-12-15 16:23:59 -05:00
Eddie Hebert 5ecb277d84 Merge pull request #915 from quantopian/remove-perf-periods
MAINT: Remove perf_periods member.
2015-12-15 15:34:36 -05:00
Eddie Hebert 06d4d7e74b MAINT: Remove perf_periods member.
Refer to cumulative and todays performance explicitly instead of always
looping through.

The third value (minute) for which this was useful, has been removed.

Also, there are some actions where only cumulative may need application,
e.g. application of dividends. (However, this patch does not remove
dividend processing from todays performance, but opens up later patches
to make that distinction.)
2015-12-15 13:47:38 -05:00
Eddie Hebert 6106cb98a5 REF: Remove unused parameter. 2015-12-14 14:26:06 -05:00
Eddie Hebert e4fe44642d Merge pull request #912 from quantopian/data-portal-init-2
ENH: Add initial commit for DataPortal and readers
2015-12-14 14:23:47 -05:00
Eddie Hebert e5b5023d42 ENH: Add initial commit for DataPortal and readers
Moved from the `lazy-mainline` branch,
https://github.com/quantopian/zipline/pull/858

The intent of this patch to provide the basic class and readers
interfaces, developed on that branch, so that the use of creating the
object and opening paths etc. can be tested internally.

Additional changes beyond the lazy-mainline branch, addition of future
minute reader, and daily bar reader.

Also allow an argument of the future_daily_reader, though no such reader
yet exists.

It may be that future and equity readers share an interface, and a
further improvement would be providing an abstract base class.

co-author: @jbredeche <jean@quantopian.com>
2015-12-14 14:23:20 -05:00
Scott Sanderson bd85f59fc0 DOC: Docs updates for EWMA/EWMSTD. 2015-12-14 13:32:28 -05:00
Scott Sanderson 84d8cc4d41 DOC: Add simple buy and hold example. 2015-12-13 15:06:15 -05:00
Scott Sanderson 323695f959 Merge pull request #910 from quantopian/new-factors
New factors
2015-12-13 12:15:25 -05:00
Scott Sanderson 7305f0c3b9 DOC: Miscellaneous docs updates. 2015-12-11 22:29:41 -05:00
Scott Sanderson 7996c07107 DOC: Add whatsnew. 2015-12-11 22:20:38 -05:00
Scott Sanderson b91f9697b9 ENH: Add ExponentialWeightedStandardDeviation. 2015-12-11 22:13:27 -05:00
Scott Sanderson 2235a53581 ENH: Add EWMA and DollarVolume factors. 2015-12-11 22:13:27 -05:00
Scott Sanderson ebb4fbdcf8 Merge pull request #905 from quantopian/refactor-adjusted-array
Adds support for different typed adjusted arrays and adds an EarningsCalendar loader
2015-12-11 13:59:20 -05:00
Scott Sanderson b5d3f2be0a DOC: Update whatsnew. 2015-12-11 13:54:57 -05:00
Scott Sanderson 4469fbef76 MAINT: Just the value if dtype doesn't have a name. 2015-12-10 17:34:38 -05:00
Scott Sanderson 4b897a22f4 MAINT: Use full_like instead of full. 2015-12-10 17:19:49 -05:00
Scott Sanderson 67d546f000 MAINT: Use an enum for the AdjustmentKind. 2015-12-10 16:21:46 -05:00
Scott Sanderson 77bce4ec9d MAINT: Refactor next_adj logic into method. 2015-12-10 16:12:51 -05:00
llllllllll 4963b2ca72 TST: Adds tests for infer_timestamp 2015-12-10 15:14:27 -05:00
Scott Sanderson e3d19bab25 MAINT: Fix failing blaze expr test. 2015-12-10 14:19:32 -05:00
Scott Sanderson dacbc0731e MAINT: Simplify BlazeEarningsCalendarLoader.
Removes codepaths that add implicit timestamps.
2015-12-10 13:53:21 -05:00
llllllllll 366e796975 MAINT: remove extra checks around empty odo_kwargs 2015-12-10 13:01:16 -05:00
Scott Sanderson f719fef55e STY: Many people prefer to read words with vowels. 2015-12-10 12:50:36 -05:00
Scott Sanderson 64ce6d26aa BUG: Fix hardcoded type repr in test.
Types repr differently in py2 vs py3.
2015-12-09 15:29:57 -05:00
llllllllll f8ab8a5159 TST: py3 compat qualname in preprocess tests 2015-12-09 12:49:59 -05:00
llllllllll 48536add73 TST: fix doctests 2015-12-09 11:22:13 -05:00
Scott Sanderson 8220d1ee86 ENH: Adds support for different typed adjusted arrays and adds an
EarningsCalendar loader.

- Moves most of AdjustedArray back into Python. The window iterator is
  the only part that's performance-intensive.

- Adds a bootleg templating system for creating specialized versions of
  AdjustedArrayWindow for each concrete type we care about.

- Adds support for differently dtyped terms in pipeline. This allows us
  to use datetime64s which are needed in the EarningsCalendar.

- Adds EarningsCalendar dataset for the next and previous earnings
  announcements in pipeline.

- Adds in memory loader for EarningsCalendar.

- Adds blaze loader for EarningsCalendar.
2015-12-08 20:24:06 -05:00
Scott Sanderson 1a595c00ef DOC: Fix formatting in homebrew link. 2015-12-08 15:25:57 -05:00
Scott Sanderson c4da85b34c DOC: Add libfreetype6-dev to debian reqs. 2015-12-08 13:30:25 -05:00
Scott Sanderson 060c176078 Merge pull request #883 from quantopian/install-docs
Install docs
2015-12-08 12:58:06 -05:00