Commit Graph

4814 Commits

Author SHA1 Message Date
Eddie Hebert 962c414ab7 Merge pull request #1649 from quantopian/easier-open-minute-bars-for-append-truncate
Easier open minute bars for append and truncate
2017-01-17 17:56:17 -05:00
Eddie Hebert df87dfb227 ENH: Add sorted to sid list when truncating.
For repeatable order of truncates between invocations.
2017-01-17 17:25:28 -05:00
Eddie Hebert 1d75143f54 ENH: Add a method to open existing minute bar directory.
Remove need for a consumer that is editing an existing minute bars directory to
reread the values which should not change from the metadata.

Add a test to the append on new day and truncate, which would be the common
usage of this method.
2017-01-17 17:25:27 -05:00
Eddie Hebert 2af63dfab7 Merge pull request #1646 from quantopian/update-toolz
BLD: Use latest version of toolz.
2017-01-13 16:09:55 -05:00
Eddie Hebert cb50959efc BLD: Use latest version of toolz.
Also, add requirement of cytoolz to blaze reqs so that toolz and cytoolz are
on the same version.
2017-01-13 15:42:59 -05:00
Scott Sanderson a06503d8ec Merge pull request #1645 from quantopian/nitpick-some-more-why-dont-you
STY: Simplify style in conditional.
2017-01-12 22:26:21 -05:00
Scott Sanderson 57b09ce1d7 STY: Simplify style in conditional. 2017-01-12 22:03:35 -05:00
Richard Frank 64f77eb3e4 MAINT: Update and pin more dev requirements 2017-01-08 14:07:55 -05:00
Richard Frank 50c096c3e9 MAINT: Pin exact versions of Mako, MarkupSafe, requests-file
which are transitive dependencies of zipline
2017-01-07 17:57:29 -05:00
Eddie Hebert 1e51dbec0a STY: Use def statements instead of lambda assignment. (#1639)
From pep-0008:

```
Always use a def statement instead of an assignment statement that binds a
lambda expression directly to an identifier.

Yes:

def f(x): return 2*x
No:

f = lambda x: 2*x

The first form means that the name of the resulting function object is
specifically 'f' instead of the generic '<lambda>'. This is more useful for
tracebacks and string representations in general. The use of the assignment
statement eliminates the sole benefit a lambda expression can offer over an
explicit def statement (i.e. that it can be embedded inside a larger expression)
```
2017-01-06 13:39:07 -05:00
Richard Frank a1f09cffb8 Merge pull request #1638 from luca-s/IchimokuKinkoHyo_fix
BUG: IchimokuKinkoHyo techinical factor has wrong default inputs
2017-01-06 13:23:52 -05:00
Luca b5ce101f5a BUG: IchimokuKinkoHyo techinical factor has wrong default inputs 2017-01-06 16:06:05 +01:00
Eddie Hebert aed2c64c99 BLD: Update numexpr to latest to satisfy tables deps. (#1636)
* BLD: Update numexpr to latest to satisfy tables deps.

tables 3.3.0 requires numexpr >= 2.5.2

Also remove numexpr conda recipe.
2017-01-05 15:27:24 -05:00
Kathryn Glowinski dd560ba5f0 BUG: Datetimes should be converted in utc. (#1635)
* BUG: Datetimes should be converted in utc.

* DOC: Making note of UTC req. and moving comment.
2017-01-05 14:13:23 -05:00
Eddie Hebert c1fe909dde Remove tables from custom conda scripts.
Use anaconda hosted instead.
2017-01-04 12:09:10 -05:00
Eddie Hebert 2d5f5491ee Swap name instead.
Package is named pytables on conda.
2017-01-04 12:09:10 -05:00
Eddie Hebert a3dfa4a6fa Add hdf5 install. 2017-01-04 12:09:10 -05:00
Eddie Hebert 037b2b0003 Remove tables from travis. 2017-01-04 12:09:10 -05:00
Eddie Hebert d023a8ed4f Use tables instead of pytables. 2017-01-04 12:09:10 -05:00
Eddie Hebert dfdf26e310 Use conda skeleton for pytables. 2017-01-04 12:09:10 -05:00
Eddie Hebert e4c0120876 Attemp to add conda package. 2017-01-04 12:09:10 -05:00
Eddie Hebert 9262381d17 Fix double equals in conda pytables. 2017-01-04 12:09:10 -05:00
Eddie Hebert 225b6fe119 Update tables. 2017-01-04 12:09:10 -05:00
Eddie Hebert 5a8443b5f1 Add pytables for travis. 2017-01-04 12:09:10 -05:00
Eddie Hebert e913519734 ENH: Add a reader writer pair for HDF5 minute bar updates.
This format is intended for storing data for all sids of an asset type,
e.g. equities or futures for a session. bcolz is not used to avoid the overhead
of creating the directories and files for each asset (which numbers around ~8000
for active equities) can be removed since the update is meant to be read at
once, instead of supporting the random access pattern needed by the simulation.

This patch only adds the reader/writer pair, with the management of finding the
paths to delta files and the application of the updates to the bcolz write left
to internal loader code.

Also, the update reader interface is intentionally constrained to the data for
an entire session to allow for an implementation that allows for mid-session updates.
2017-01-04 12:09:10 -05:00
Scott Sanderson 3095f8c573 Merge pull request #1627 from quantopian/vectorized-symbol-map
ENH: Add vectorized lookup_symbol.
2016-12-28 15:10:14 -05:00
Scott Sanderson 4475a42b15 DOC: Add note on lookup_symbols. 2016-12-28 14:43:15 -05:00
Scott Sanderson 0aa4f129c1 TEST: Tweaks to vectorized symbol tests.
- Test against an empty list.
- Don't test empty share class lookups.
- Add another comprehension test for completeness.
2016-12-28 14:40:18 -05:00
Scott Sanderson fd74aad31c ENH: Add vectorized lookup_symbol.
Currently only supports one as_of date.c
2016-12-28 12:31:50 -05:00
Kathryn Glowinski df6cb62925 Adjustments to Component Dfs (#1620)
* ENH: SQLiteAdjustmentReader can return DF versions of tables.
2016-12-27 13:44:17 -05:00
David Michalowicz 4b69a253ec Merge pull request #1623 from quantopian/futures-scaling-factor
TST: Extra test for reading/writing ohlc ratios
2016-12-22 15:01:42 -05:00
dmichalowicz 56b5ac686a TST: Extra test for reading/writing ohlc ratios 2016-12-22 14:34:46 -05:00
Andrew Daniels c6ad893c14 TST: Populate equity_supplementary_mappings from WithAssetFinder (#1622) 2016-12-22 11:07:30 -05:00
Richard Frank 09318df534 Merge pull request #1596 from quantopian/order_batch
Order batch
2016-12-21 20:41:35 -05:00
Richard Frank 7ab0b08e95 MAINT: Filter out null orders 2016-12-20 19:27:29 -05:00
Richard Frank 30bc01dbc0 MAINT: Some cleanup while working on batch ordering 2016-12-20 19:27:28 -05:00
Richard Frank 555d460d26 TST: Ensure batch_order_target_percent orders like order_target_percent 2016-12-20 19:27:28 -05:00
Richard Frank 0ee76d1e11 DOC: Updated return types in docstrings 2016-12-20 19:27:28 -05:00
Richard Frank edab970973 ENH: Renamed to batch_order and added batch_order_target_percent 2016-12-20 11:58:05 -05:00
Richard Frank 83d0c45ec3 MAINT: Renamed order_batch parameter and added docs 2016-12-20 11:57:27 -05:00
Richard Frank dea157741f MAINT: Allow for orders with id 0 2016-12-20 11:57:26 -05:00
Richard Frank 12b6c273d1 TST: Added test for order_batch 2016-12-20 11:57:26 -05:00
Richard Frank d71feec46d MAINT: Moved common asset lookup to fixture init
Also can use class's asset_finder instead of via env
2016-12-20 11:57:26 -05:00
Richard Frank 47633b1601 MAINT: Removed unnecessary override 2016-12-20 11:57:26 -05:00
Richard Frank 3457b106fb ENH: Blotter support for ordering a batch 2016-12-20 11:57:26 -05:00
Richard Frank 8314586612 MAINT: Factored out order arg calculation methods
so callers can use them to construct args for a batch of orders
2016-12-20 11:57:26 -05:00
Andrew Daniels b501ecc736 ENH: Adds support for supplementary asset mappings (#1612)
* ENH: Adds support for supplementary asset mappings

- Adds a supplementary_mappings table to the assets.db, to hold point-
  in-time mappings of sids to arbitrary categories of values, e.g.
  alternative identifiers. This bumps ASSET_DB_VERSION.

- Adds supplementary_map and supplementary_map_by_sid to AssetFinder,
  caches of the underlying table that are fully populated on first
  access, which map the supplementary values to sids and vice versa,
  respectively.

- Adds lookup_by_supplementary_mapping method, which fronts
  supplementary_map to query for the asset last known to have held a
  value at a given dt.

- Add get_supplementary_field method, which fronts
  supplementary_map_by_sid to query for the last known value held by an
  asset at a given dt.
2016-12-16 15:20:53 -05:00
Joe Jevnik de7c32b22c ENH: Allow custom chunks iterators for attach_pipeline 2016-12-15 19:58:19 -05:00
Ana Ruelas 1888cf595f Merge pull request #1611 from quantopian/fix-buildbreaking-docstring
DOCS: Minor (but build breaking) docstring fix
2016-12-06 14:26:48 -05:00
Ana Ruelas 3cfbdeaca1 DOCS: Minor (but build breaking) docstring fix 2016-12-06 13:33:22 -05:00