6093 Commits

Author SHA1 Message Date
Joe Jevnik 7ca53f2233 Merge pull request #1252 from jasonwirth/master
Correct typo
2016-06-03 14:10:37 -04:00
Jason Wirth 4dd6e4fb61 correct CLI command 2016-06-02 19:36:18 -07:00
Jason Wirth 850ce33961 Correct typo 2016-06-02 18:51:04 -07:00
JimStearns206 6aa847ca2d DOC: Fix bullet list format (minor). 2016-06-02 16:35:36 -07:00
Wilson Choi 25cc65e393 DOC: add ingesting data ref to beginner tutorial 2016-06-02 16:07:41 -07:00
Wilson Choi 13f506d9c8 DOC: remove "python -m" and "--symbols" from the example 2016-06-02 14:57:24 -07:00
Joe Jevnik 1f327f5b51 Merge pull request #1246 from jeremyblow/fix_namespace_del
BUG: Don't delete namespace if import fails.
2016-06-02 15:47:21 -04:00
Eddie Hebert 4ba7412a01 Merge pull request #1247 from quantopian/move-minute-history-tests
TST: Move tests that use minute data.
2016-06-02 15:15:45 -04:00
Andrew Daniels 1cf8e46ae6 Merge pull request #1245 from quantopian/daily-bars-first-day-attr
BUG: Fixes reading and writing of daily bars first_trading_day attr
2016-06-02 15:09:12 -04:00
Eddie Hebert 27d7b9aabb TST: Move tests that use minute data.
Make the delineation between `DailyEquityHistoryTestCase` and
`MinuteEquityHistoryTestCase` whether or not minute dts or daily dts are
used as the query timestamp, instead of whether the frequency is `1d`
vs. `1m`.

Preparing for adding a repro case for where using `1d` with minute data
fails when there is an adjustment occuring the day before the query
minute dt.
2016-06-02 14:39:43 -04:00
Jeremy Blow acc49ef9aa BUG: Don't delete namespace if import fails.
datashape should be optional, this ensures it is actually optional.
2016-06-02 11:05:53 -07:00
Andrew Daniels f8e0d8e13e Merge pull request #1242 from quantopian/data-portal-explicit-first-day
MAINT: Adds first_trading_day arg to DataPortal
2016-06-02 13:59:49 -04:00
Andrew Daniels 8e6c98e9aa BUG: Fixes reading and writing of daily bars first_trading_day attr
When writing first_trading_day, it is already in the correct frame of
reference (seconds since epoch) and does not need to be transformed
further. Adjusts the reader to expect this value.
2016-06-02 13:41:09 -04:00
Andrew Daniels 71f12ec272 MAINT: Adds first_trading_day arg to DataPortal
Instead of inferring it from the minute/daily writer, we now require the
first trading day to be passed explicitly, so the creator of the
DataPortal controls what is used as the first trading day.
2016-06-02 13:16:43 -04:00
Eddie Hebert 38d6107faf Merge pull request #1243 from quantopian/source-daily-from-minute
TST:  Enable sourcing daily data from minute data.
2016-06-02 13:10:28 -04:00
Eddie Hebert 2f80e94203 TST: Enable sourcing daily data from minute data.
Allow `WithBcolzDailyBarData` to opt-in to reading data defined by
`WithBcolzMinuteBarData`, so that the daily and minute test for the same
asset and dts correlate between the two readers.
The correlation is relevant for history tests which blend daily and
minute data.

Also, make the test data for the split and mergers assets in the minute
suite align at the thousands place if the adjustmets are applied
correctly, by starting the prices with a base of 4000 and then halving
the start value each day.
2016-06-02 12:28:53 -04:00
Richard Frank 8f0b3f41a1 BLD: Don't require gfortran on OSX either 2016-05-29 23:19:24 -07:00
Scott Sanderson 85327d8944 Merge pull request #1238 from quantopian/windows-doesnt-use-gfortran
BLD: Don't require gfortran on windows.
2016-05-27 20:07:31 -04:00
Scott Sanderson e7cdcc72ec BLD: Don't require gfortran on windows. 2016-05-27 19:35:25 -04:00
Scott Sanderson 0cef5eff2f BLD: Update MANIFEST to include .pyi and .pxi. 2016-05-27 18:21:29 -04:00
Joe Jevnik aa0592a4ea BLD: conda selectors for libgfortran when np==19 2016-05-27 17:28:40 -04:00
Scott Sanderson 24f30803bd REL: 1.0.1.
Update docs, whatsnew, and stub files for the release.
2016-05-27 16:41:47 -04:00
Scott Sanderson 05ac438c3c DOC/DEV: Add sphinx-autobuild to docs.
Adds a `make livehtml` target that spawns a server that rebuilds and
serves the docs every time a change happens.
2016-05-27 16:39:29 -04:00
Joe Jevnik 9448117b6e MAINT: update mask_between_time and attribute the original to pandas 2016-05-27 14:34:19 -04:00
Stewart Douglas 3ffe9a0536 Merge pull request #1234 from quantopian/variable-minute-blocks
Add test to cover new minute block logic
2016-05-26 10:00:20 -04:00
Stewart Douglas 71bcc7f911 DOC: Update comments to reflect new behavior 2016-05-26 09:38:25 -04:00
Stewart Douglas 17c20da026 TST: Add test to append minutely data 2016-05-26 09:38:25 -04:00
Scott Sanderson 5caccaeed5 Merge pull request #1230 from quantopian/pipeline-example
DOC/TEST: Add example algo using Pipeline.
2016-05-25 22:35:59 -04:00
Scott Sanderson 5e87bf2496 HACK: Call gc.collect in test_examples.
We need to call gc.collect before tearing down our class because we have
a cycle between TradingAlgorithm and AlgorithmSimulator which ultimately
holds a reference to the pipeline engine passed to the tests here.

This means that we're not guaranteed to have deleted our disk-backed
resource readers (e.g. SQLiteAdjustmentReader) before trying to delete
the tempdir, which causes failures on Windows because Windows doesn't
allow you to delete a file if someone still has an open handle to that
file.

The real fix for this is to break the cycle between TradingAlgorithm and
AlgorithmSimulator, but that requires significant breaking API changes.
2016-05-25 17:09:30 -04:00
David Michalowicz 2559c32548 Merge pull request #1214 from quantopian/outputs-name-conflicts
Factor outputs name conflicts
2016-05-25 16:36:08 -04:00
dmichalowicz 86486803b6 BUG: custom factor outputs naming collisions 2016-05-25 15:41:16 -04:00
Andrew Daniels 1bb8caba84 Merge pull request #1232 from quantopian/fix-minute-bcolz-padding
BUG: Fixes bcolz padding to not always pad 390 minutes
2016-05-25 15:23:17 -04:00
Andrew Daniels f1cfe1f2db BUG: Fixes bcolz padding to not always pad 390 minutes
If minutes already exist for the last existing day, adjust the number of
minutes padded to account for them. Previously we would always pad 390,
leading to a mismatch in the number of rows.
2016-05-25 14:26:16 -04:00
Andrew Liang d0890085bd Merge pull request #1231 from quantopian/log_capital_changes
LOG: Log the dt and amount when each capital change executes
2016-05-25 14:21:46 -04:00
Scott Sanderson c03bbbc928 BUG: Delete attrs before firing callbacks.
Prevents failures to remove sqlite files when cleaning up temporary
directories.
2016-05-25 14:17:57 -04:00
Joe Jevnik c569a3d571 STY: unused imports 2016-05-25 13:21:55 -04:00
Joe Jevnik 151c938982 ENH: upgrade blaze ecosystem packages 2016-05-25 13:21:26 -04:00
Joe Jevnik 163ba8d76d ENH: remove the ffill lower bound query in blaze loader
This query is often only cutting out a couple of months or a week of
data. The cost of computing this lower bound does not outway the cost of
sending back too much data.
2016-05-25 13:21:26 -04:00
Joe Jevnik 2d36a58add ENH: improve performance of time comparisons
Adds `mask_time_between` to do more efficient comparisons between
pandas.DatetimeIndex and datetime.time objects.

This is used in the loader utils to more efficiently normalize datetimes
around the query time.
2016-05-25 13:21:26 -04:00
Andrew Liang fb9e1abb92 LOG: Log the dt and amount when each capital change executes 2016-05-25 11:58:05 -04:00
Andrew Liang d34b1b9224 Merge pull request #1212 from quantopian/capital_changes
DEV: Adjust performance calculations for capital changes
2016-05-24 23:30:17 -04:00
Scott Sanderson 392ac2f9d6 DOC/TEST: Add example algo using Pipeline. 2016-05-24 22:34:05 -04:00
Scott Sanderson 244664b6a3 MAINT: Clean up default handling in TradingAlgorithm. 2016-05-24 22:17:01 -04:00
Andrew Liang 40f42b43f5 DEV: Adjust performance calculations for capital changes
Refactor PerformancePeriod so that it creates a sub-period every
time a capital change happens within the period
2016-05-24 17:23:36 -04:00
Jean Bredeche 1630dc65d6 Merge pull request #1213 from quantopian/youre-charging-me-what
DEV: Re-implement commission models to return correct results in the case of multiple fills
2016-05-24 13:24:53 -04:00
Joe Jevnik 533233fae4 BUG: fix cell magic 2016-05-24 02:04:47 -04:00
Jean Bredeche 39bf1dbd7b DEV: Re-implement commission models to return correct results in the case of multiple fills. 2016-05-23 21:19:06 -04:00
Maya Tydykov 3ca294d494 Merge pull request #1186 from quantopian/remove_type_restrictions_for_generic_loader
Remove type restrictions for generic loader
2016-05-23 17:24:13 -04:00
Maya Tydykov e5039a43b0 TST: add tests to ensure no forward filling of non-missing values
STY: fix indentation

DOC: add docs to clarify test input/output
2016-05-23 16:48:52 -04:00
dmichalowicz a446401d03 DOC: Regression factor docstring fix 2016-05-23 16:40:22 -04:00