Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/quantopian/zipline
/ functions
Functions
4,252 in github.com/quantopian/zipline
⨍
Functions
4,252
◇
Types & classes
1,004
↳
Endpoints
31
↓ 2 callers
Method
market_open
Create a rule that triggers at a fixed offset from market open. The offset can be specified either as a :class:`datetime.timedelta`,
zipline/utils/events.py:705
↓ 2 callers
Function
mask_requests_args
(url, validating=False, params_checker=None, **kwargs)
zipline/sources/requests_csv.py:122
↓ 2 callers
Method
median
(a, missing_value)
zipline/pipeline/factors/factor.py:415
↓ 2 callers
Method
merge_into_adjustments_for_all_sids
Merge adjustments for a particular sid into a dictionary containing adjustments for all sids. Parameters ----------
zipline/pipeline/loaders/earnings_estimates.py:406
↓ 2 callers
Method
merge_split_adjustments_with_overwrites
Merge split adjustments with the dict containing overwrites. Parameters ---------- pre : dict[str -> dict[int -> lis
zipline/pipeline/loaders/earnings_estimates.py:1294
↓ 2 callers
Method
merge_with_inherited_algo_kwargs
Helper for subclasses overriding ``make_algo_kwargs``. A common pattern for tests using `WithMakeAlgoKwargs` is that a parti
zipline/testing/fixtures.py:2003
↓ 2 callers
Method
metadata_path
(cls, rootdir)
zipline/data/minute_bars.py:205
↓ 2 callers
Function
minute_equity_relative
(bundle_name, timestr)
zipline/data/bundles/core.py:81
↓ 2 callers
Function
mkargs
(py_version, npy_version, output=False)
etc/conda_build_matrix.py:17
↓ 2 callers
Function
move_to_end
(ordered_dict, key, last=False)
zipline/finance/ledger.py:309
↓ 2 callers
Method
naive_columnwise_func
(self, func, left, right)
tests/pipeline/test_statistical.py:1069
↓ 2 callers
Method
new_asset_finder
(self)
tests/test_assets.py:2417
↓ 2 callers
Function
next_event_indexer
Construct an index array that, when applied to an array of values, produces a 2D array containing the values associated with the next event f
zipline/pipeline/loaders/utils.py:25
↓ 2 callers
Function
normalize_quarters
(years, quarters)
zipline/pipeline/loaders/earnings_estimates.py:44
↓ 2 callers
Method
order
Place an order. Parameters ---------- asset : zipline.assets.Asset The asset that this order is for. amou
zipline/finance/blotter/blotter.py:32
↓ 2 callers
Method
orders
Retrieve the dict-form of all of the orders in a given bar or for the whole simulation. Parameters ---------- dt : pd
zipline/finance/ledger.py:657
↓ 2 callers
Method
overwrite_with_null
(self, column, next_qtr_start_idx,
zipline/pipeline/loaders/earnings_estimates.py:565
↓ 2 callers
Function
plus_or_dot
(pieces)
versioneer.py:1169
↓ 2 callers
Function
plus_or_dot
(pieces)
zipline/_version.py:261
↓ 2 callers
Method
positions
(self)
zipline/finance/metrics/tracker.py:156
↓ 2 callers
Function
previous_event_indexer
Construct an index array that, when applied to an array of values, produces a 2D array containing the values associated with the previous eve
zipline/pipeline/loaders/utils.py:82
↓ 2 callers
Method
process_order
(data, order)
tests/metrics/test_metrics.py:207
↓ 2 callers
Method
process_transaction
Add a transaction to ledger, updating the current state as needed. Parameters ---------- transaction : zp.Transaction
zipline/finance/ledger.py:479
↓ 2 callers
Function
product_upper_triangle
Return an iterator over pairs, (v0, v1), drawn from values. If `include_diagonal` is True, returns all pairs such that v0 <= v1. If `inc
zipline/testing/core.py:246
↓ 2 callers
Method
rand_categoricals
Build a block of random categorical data. Categories should not include ``missing_value``.
tests/pipeline/base.py:197
↓ 2 callers
Method
raw_expected_values
Get an array containing the raw values we expect to be produced for the given dates between start_date and end_date, inclusive.
zipline/testing/fixtures.py:1816
↓ 2 callers
Function
rebalance_portfolio
(algo, data, desired_port)
zipline/examples/olmar.py:86
↓ 2 callers
Method
register_account_control
Register a new AccountControl to be checked on each bar.
zipline/algorithm.py:2043
↓ 2 callers
Function
required_estimates_fields
Compute the set of resource columns required to serve `columns`.
zipline/pipeline/loaders/earnings_estimates.py:64
↓ 2 callers
Function
required_event_fields
Compute the set of resource columns required to serve ``next_value_columns`` and ``previous_value_columns``.
zipline/pipeline/loaders/events.py:21
↓ 2 callers
Method
resolve
Resolve inputs into values to be passed to TradingAlgorithm. Returns a pair of ``(benchmark_sid, benchmark_returns)`` with at most
zipline/utils/run_algo.py:473
↓ 2 callers
Function
rolling_vwap
Simple rolling vwap implementation for testing
tests/pipeline/test_pipeline_algo.py:72
↓ 2 callers
Function
rolling_window
Restride an array of shape (X_0, ... X_N) into an array of shape (length, X_0 - length + 1, ... X_N) where each slice
zipline/utils/numpy_utils.py:266
↓ 2 callers
Function
rowwise_rank
Take a 2D array and return the 0-indexed sorted position of each element in the array for each row. Examples -------- In [5]: da
tests/pipeline/test_filter.py:56
↓ 2 callers
Function
run
Run a backtest for the given algorithm.
zipline/__main__.py:249
↓ 2 callers
Method
run
(self)
versioneer.py:1509
↓ 2 callers
Method
run
Run the algorithm.
zipline/algorithm.py:621
↓ 2 callers
Method
run_terms
(self, terms, initial_workspace, mask)
tests/pipeline/base.py:126
↓ 2 callers
Method
running_pipeline
(self, pipeline, start_date, end_date)
zipline/pipeline/hooks/no.py:12
↓ 2 callers
Function
seconds_to_timestamp
(seconds)
zipline/testing/core.py:64
↓ 2 callers
Function
select_sampling_indices
Choose entries from ``dates`` to use for downsampling at ``frequency``. Parameters ---------- dates : pd.DatetimeIndex Dates
zipline/pipeline/downsample_helpers.py:30
↓ 2 callers
Method
setUpClass
(cls)
tests/events/test_events.py:223
↓ 2 callers
Function
set_algo_instance
(algo)
zipline/utils/algo_instance.py:23
↓ 2 callers
Function
set_attribute
Decorator factory for setting attributes on a function. Doesn't change the behavior of the wrapped function. Examples --------
zipline/utils/functional.py:307
↓ 2 callers
Method
set_do_not_order_list
Set a restriction on which assets can be ordered. Parameters ---------- restricted_list : container[Asset], SecurityList
zipline/algorithm.py:2174
↓ 2 callers
Method
set_long_only
Set a rule specifying that this algorithm cannot take short positions.
zipline/algorithm.py:2227
↓ 2 callers
Method
set_max_order_size
Set a limit on the number of shares and/or dollar value of any single order placed for sid. Limits are treated as absolute values and are
zipline/algorithm.py:2132
↓ 2 callers
Method
set_max_position_size
Set a limit on the number of shares and/or dollar value held for the given sid. Limits are treated as absolute values and are enforced at
zipline/algorithm.py:2099
↓ 2 callers
Method
should_cancel
(self, event)
zipline/finance/cancel_policy.py:70
↓ 2 callers
Method
should_trigger
Checks if the rule should trigger with its current state. This method should be pure and NOT mutate any state on the object.
zipline/utils/events.py:256
↓ 2 callers
Method
should_trigger
(self, dt)
zipline/utils/events.py:469
↓ 2 callers
Method
sid_day_index
Parameters ---------- sid : int The asset identifier. day : datetime64-like Midnight of the d
zipline/data/bcolz_daily_bars.py:645
↓ 2 callers
Method
sidpath
Parameters ---------- sid : int Asset identifier. Returns ------- out : string
zipline/data/minute_bars.py:519
↓ 2 callers
Function
split_normalized_quarters
(normalized_quarters)
zipline/pipeline/loaders/earnings_estimates.py:48
↓ 2 callers
Method
start_of_session
(self, ledger, session, data_portal)
zipline/finance/metrics/metric.py:271
↓ 2 callers
Method
sync_last_sale_prices
(self, dt, data_portal,
zipline/finance/metrics/tracker.py:194
↓ 2 callers
Method
tearDown
(self)
zipline/testing/fixtures.py:227
↓ 2 callers
Function
timedelta_to_integral_seconds
Convert a pd.Timedelta to a number of seconds as an int.
zipline/utils/pandas_utils.py:195
↓ 2 callers
Function
to_bundle_ingest_dirname
Convert a pandas Timestamp into the name of the directory for the ingestion. Parameters ---------- ts : pandas.Timestamp The
zipline/data/bundles/core.py:91
↓ 2 callers
Function
to_utc
Convert a string in US/Eastern time to UTC
zipline/testing/core.py:68
↓ 2 callers
Function
tolerant_equals
Check if a and b are equal with some tolerance. Parameters ---------- a, b : float The floats to check for equality. atol : f
zipline/utils/math_utils.py:21
↓ 2 callers
Method
trading_days_between
(self, start, end)
tests/data/test_daily_bars.py:204
↓ 2 callers
Method
transactions
Retrieve the dict-form of all of the transactions in a given bar or for the whole simulation. Parameters ---------- d
zipline/finance/ledger.py:631
↓ 2 callers
Method
truncate
Truncate data beyond this date in all ctables.
zipline/data/minute_bars.py:857
↓ 2 callers
Method
unpack_db_to_component_dfs
Returns the set of known tables in the adjustments file in DataFrame form. Parameters ---------- convert_dates : bool
zipline/data/adjustments.py:268
↓ 2 callers
Method
update_current
(self, effective_date, symbols, change_func)
zipline/utils/security_list.py:85
↓ 2 callers
Method
update_portfolio
Force a computation of the current portfolio state.
zipline/finance/ledger.py:703
↓ 2 callers
Function
valid_window_lengths
An iterator of all legal window lengths on a buffer of a given length. Returns values from 1 to underlying_buffer_length.
tests/pipeline/test_adjusted_array.py:71
↓ 2 callers
Method
validate
Fail if we would hold negative shares of asset after completing this order.
zipline/finance/controls.py:298
↓ 2 callers
Function
validate_dtype
Validate a `dtype` and `missing_value` passed to Term.__new__. Ensures that we know how to represent ``dtype``, and that missing_value i
zipline/pipeline/term.py:910
↓ 2 callers
Function
validate_event_metadata
(event_dates, event_timestamps, event_sids)
zipline/pipeline/loaders/utils.py:13
↓ 2 callers
Function
vectorized_is_element
Check if each element of ``array`` is in choices. Parameters ---------- array : np.ndarray choices : object Object imple
zipline/utils/numpy_utils.py:444
↓ 2 callers
Method
verify_regular_dt
(self, idx, dt, mode, fields=None, assets=None)
tests/test_history.py:244
↓ 2 callers
Function
verify_sqlite_path_exists
(path)
zipline/utils/sqlite_utils.py:33
↓ 2 callers
Method
verify_trace
(self, trace, pipeline_start_date, pipeline_end
tests/pipeline/test_hooks.py:334
↓ 2 callers
Function
with_metaclasses
Make a class inheriting from ``bases`` whose metaclass inherits from all of ``metaclasses``. Like :func:`six.with_metaclass`, but allows mult
zipline/utils/metautils.py:87
↓ 2 callers
Method
write_from_sid_df_pairs
Parameters ---------- country_code : str The ISO 3166 alpha-2 country code for this country. data : itera
zipline/data/hdf5_daily_bars.py:315
↓ 2 callers
Method
write_nans
Write nans to the locations in data corresponding to the (date, asset) pairs for which we wouldn't have data for `asset` on `date` in
tests/pipeline/test_engine.py:958
↓ 2 callers
Method
writer
(self, session_bar_reader)
tests/data/test_adjustments.py:33
↓ 2 callers
Function
zipfile_path
(file_name)
tests/resources/quandl_samples/rebuild_samples.py:30
↓ 1 callers
Function
QuartersEstimatesNoNumQuartersAttr
(num_qtr)
tests/pipeline/test_quarters_estimates.py:81
↓ 1 callers
Function
_
()
zipline/__init__.py:66
↓ 1 callers
Method
__convert_order_params_for_blotter
Helper method for converting deprecated limit_price and stop_price arguments into ExecutionStyle instances. This function as
zipline/algorithm.py:1345
↓ 1 callers
Method
__enter__
(self)
zipline/utils/cache.py:385
↓ 1 callers
Method
__exit__
(self, *exc_info)
zipline/utils/cache.py:388
↓ 1 callers
Method
__exit__
(self, *excinfo)
zipline/testing/core.py:819
↓ 1 callers
Method
__get__
(self, instance, owner)
zipline/utils/memoize.py:228
↓ 1 callers
Method
__get__
(self, instance, owner)
zipline/utils/final.py:106
↓ 1 callers
Method
__get__
Produce a concrete BoundColumn object when accessed. We don't bind to datasets at class creation time so that subclasses of
zipline/pipeline/data/dataset.py:117
↓ 1 callers
Method
__getattribute__
(self, name)
zipline/testing/core.py:419
↓ 1 callers
Method
__init__
(self, **kwargs)
zipline/errors.py:23
↓ 1 callers
Method
__init__
(self, items, dict_remove=None)
zipline/utils/memoize.py:128
↓ 1 callers
Method
__init__
(self, callable_, args, starargs, kwargs)
zipline/utils/argcheck.py:231
↓ 1 callers
Method
__init__
(self, left, right)
zipline/lib/labelarray.py:73
↓ 1 callers
Method
__init__
(self, before, after, keep_last)
zipline/data/bundles/core.py:183
↓ 1 callers
Method
__init__
(self, cost=DEFAULT_PER_SHARE_COST, min_trade_cost=DEFAULT_MINIMUM_COST_PER_
zipline/finance/commission.py:163
↓ 1 callers
Method
__init__
(self, terms)
zipline/pipeline/graph.py:56
↓ 1 callers
Method
__init__
(self, estimates, name_map)
zipline/pipeline/loaders/earnings_estimates.py:138
↓ 1 callers
Method
__init__
(self, expr, columns, resources=None, odo_
zipline/pipeline/loaders/blaze/estimates.py:71
↓ 1 callers
Method
__new__
(cls, attr)
zipline/utils/final.py:83
← previous
next →
701–800 of 4,252, ranked by callers