Skip to content

Commit cf44fcb

Browse files
authored
Merge pull request #1473 from quantopian/release-1.0.2
REL: Prepare for 1.0.2 release.
2 parents 89786f1 + 15aaafe commit cf44fcb

File tree

3 files changed

+131
-29
lines changed

3 files changed

+131
-29
lines changed

docs/source/releases.rst

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Release Notes
33
=============
44

5+
.. include:: whatsnew/1.0.2.txt
6+
57
.. include:: whatsnew/1.0.1.txt
68

79
.. include:: whatsnew/1.0.0.txt

docs/source/whatsnew/1.0.2.txt

+97-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,52 @@ Enhancements
4040
metric calculations between pyfolio and zipline. Empyrical adds custom
4141
annualization options for returns of custom frequencies. (:issue:`855`)
4242

43+
- Add Aroon factor. (:issue:`1258`)
44+
45+
- Add fast stochastic oscillator factor. (:issue:`1255`)
46+
47+
- Add a Dockerfile. (:issue:`1254`)
48+
49+
- New trading calendar which supports sessions which span across midnights, e.g.
50+
24 hour 6:01PM-6:00PM sessions for futures trading.
51+
`zipline.utils.tradingcalendar` is now deprecated. (:issue:`1138`) (:issue:`1312`)
52+
53+
- Allow slicing a single column out of a Factor/Filter/Classifier. (:issue:`1267`)
54+
55+
- Provide Ichimoku Cloud factor (:issue:`1263`)
56+
57+
- Allow default parameters on Pipeline terms. (:issue:`1263`)
58+
59+
- Provide rate of change percentage factor. (:issue:`1324`)
60+
61+
- Provide linear weighted moving average factor. (:issue:`1325`)
62+
63+
- Add ``NotNullFilter``. (:issue:`1345`)
64+
65+
- Allow capital changes to be defined by a target value. (:issue:`1337`)
66+
67+
- Add ``TrueRange`` factor. (:issue:`1348`)
68+
69+
- Add point in time lookups to ``assets.db``. (:issue:`1361`)
70+
71+
- Make ``can_trade`` aware of the asset's exchange . (:issue:`1346`)
72+
73+
- Add ``downsample`` method to all computable terms. (:issue:`1394`)
74+
75+
- Add `QuantopianUSFuturesCalendar`. (:issue:`1414`)
76+
77+
- Enable publishing of old ``assets.db`` versions. (:issue:`1430`)
78+
79+
- Enable ``schedule_function`` for Futures trading calendar. (:issue:`1442`)
80+
81+
- Disallow regressions of length 1. (:issue:`1466`)
82+
83+
Experimental
84+
~~~~~~~~~~~
85+
86+
- Add support for comingled Future and Equity history windows, and enable other
87+
Future data access via data portal. (:issue:`1435`) (:issue:`1432`)
88+
4389
Bug Fixes
4490
~~~~~~~~~
4591

@@ -65,7 +111,57 @@ Bug Fixes
65111

66112
- Alpha and sharpe ratio are now annualized. (:issue:`1322`)
67113

114+
- Fix units during reading and writing of daily bar ``first_trading_day ``
115+
attribute. (:issue:`1245`)
116+
117+
- Optional dispatch modules, when missing, no longer cause a `NameError`.
118+
(:issue:`1246`)
119+
120+
- Treat ``schedule_function`` argument as a time rule when a time rule, but no
121+
date rule is supplied. (:issue:`1221`)
122+
123+
- Protect against boundary conditions at beginning and end trading day in
124+
schedule function. (:issue:`1226`)
125+
126+
- Apply adjustments to previous day when using history with a frequency of `1d`.
127+
(:issue:`1256`)
128+
129+
- Fail fast on invalid pipeline columns, instead of attempting to access the nonexistent column.
130+
(:issue:`1280`)
131+
132+
- Fix ``AverageDollarVolume`` NaN handling. (:issue:`1309`)
133+
134+
Performance
135+
~~~~~~~~~~~
136+
137+
- Performance improvements to blaze core loader. (:issue:`1227`)
138+
139+
- Allow concurrent blaze queries. (:issue:`1323`)
140+
141+
- Prevent missing leading bcolz minute data from doing repeated unnecessary lookups. (:issue:`1451`)
142+
143+
- Cache future chain lookups. (:issue:`1455`)
144+
145+
Maintenance and Refactorings
146+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
147+
148+
- Removed remaining mentions of ``add_history``. (:issue:`1287`)
149+
68150
Documentation
69151
~~~~~~~~~~~~~
70152

71-
None
153+
Testing
154+
~~~~~~~~~~~
155+
156+
- Add test fixture which sources daily pricing data from minute pricing data
157+
fixtures. (:issue:`1243`)
158+
159+
Data Format Changes
160+
~~~~~~~~~~~~~~~~
161+
162+
- ``BcolzDailyBarReader`` and ``BcolzDailyBarWriter`` use trading calendar instance,
163+
instead of trading days serialized to ``JSON``. (:issue:`1330`)
164+
165+
- Change format of ``assets.db`` to support point in time lookups. (:issue:`1361`)
166+
167+
- Change ``BcolzMinuteBarReader``and ``BcolzMinuteBarWriter`` to support varying tick sizes. (:issue:`1428`)

zipline/api.pyi

+32-28
Original file line numberDiff line numberDiff line change
@@ -83,27 +83,30 @@ def fetch_csv(url, pre_func=None, post_func=None, date_column='date', date_forma
8383
A requests source that will pull data from the url specified.
8484
"""
8585

86-
def future_chain(root_symbol, as_of_date=None):
87-
"""Look up a future chain with the specified parameters.
86+
def future_chain(root_symbol, as_of_date=None, offset=0):
87+
"""
88+
Look up a future chain.
8889
89-
Parameters
90-
----------
91-
root_symbol : str
92-
The root symbol of a future chain.
93-
as_of_date : datetime.datetime or pandas.Timestamp or str, optional
94-
Date at which the chain determination is rooted. I.e. the
95-
existing contract whose notice date is first after this date is
96-
the primary contract, etc.
90+
Parameters
91+
----------
92+
root_symbol : str
93+
The root symbol of a future chain.
94+
as_of_date : datetime.datetime or pandas.Timestamp or str, optional
95+
Date at which the chain determination is rooted. If this date is
96+
not passed in, the current simulation session (not minute) is used.
97+
offset: int
98+
Number of sessions to shift `as_of_date`. Positive values shift
99+
forward in time. Negative values shift backward in time.
97100
98-
Returns
99-
-------
100-
chain : FutureChain
101-
The future chain matching the specified parameters.
101+
Returns
102+
-------
103+
chain : FutureChain
104+
The future chain matching the specified parameters.
102105
103-
Raises
104-
------
105-
RootSymbolNotFound
106-
If a future chain could not be found for the given root symbol.
106+
Raises
107+
------
108+
RootSymbolNotFound
109+
If a future chain could not be found for the given root symbol.
107110
"""
108111

109112
def future_symbol(symbol):
@@ -126,17 +129,18 @@ def future_symbol(symbol):
126129
"""
127130

128131
def get_datetime(tz=None):
129-
"""Returns the current simulation datetime.
132+
"""
133+
Returns the current simulation datetime.
130134
131-
Parameters
132-
----------
133-
tz : tzinfo or str, optional
134-
The timezone to return the datetime in. This defaults to utc.
135+
Parameters
136+
----------
137+
tz : tzinfo or str, optional
138+
The timezone to return the datetime in. This defaults to utc.
135139
136-
Returns
137-
-------
138-
dt : datetime
139-
The current simulation datetime converted to ``tz``.
140+
Returns
141+
-------
142+
dt : datetime
143+
The current simulation datetime converted to ``tz``.
140144
"""
141145

142146
def get_environment(field='platform'):
@@ -508,7 +512,7 @@ def record(*args, **kwargs):
508512
:func:`~zipline.run_algorithm`.
509513
"""
510514

511-
def schedule_function(func, date_rule=None, time_rule=None, half_days=True):
515+
def schedule_function(func, date_rule=None, time_rule=None, half_days=True, calendar=None):
512516
"""Schedules a function to be called according to some timed rules.
513517
514518
Parameters

0 commit comments

Comments
 (0)