MCPcopy Create free account

hub / github.com/quantopian/zipline / functions

Functions4,252 in github.com/quantopian/zipline

↓ 2 callersMethodmarket_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 callersFunctionmask_requests_args
(url, validating=False, params_checker=None, **kwargs)
zipline/sources/requests_csv.py:122
↓ 2 callersMethodmedian
(a, missing_value)
zipline/pipeline/factors/factor.py:415
↓ 2 callersMethodmerge_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 callersMethodmerge_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 callersMethodmerge_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 callersMethodmetadata_path
(cls, rootdir)
zipline/data/minute_bars.py:205
↓ 2 callersFunctionminute_equity_relative
(bundle_name, timestr)
zipline/data/bundles/core.py:81
↓ 2 callersFunctionmkargs
(py_version, npy_version, output=False)
etc/conda_build_matrix.py:17
↓ 2 callersFunctionmove_to_end
(ordered_dict, key, last=False)
zipline/finance/ledger.py:309
↓ 2 callersMethodnaive_columnwise_func
(self, func, left, right)
tests/pipeline/test_statistical.py:1069
↓ 2 callersMethodnew_asset_finder
(self)
tests/test_assets.py:2417
↓ 2 callersFunctionnext_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 callersFunctionnormalize_quarters
(years, quarters)
zipline/pipeline/loaders/earnings_estimates.py:44
↓ 2 callersMethodorder
Place an order. Parameters ---------- asset : zipline.assets.Asset The asset that this order is for. amou
zipline/finance/blotter/blotter.py:32
↓ 2 callersMethodorders
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 callersMethodoverwrite_with_null
(self, column, next_qtr_start_idx,
zipline/pipeline/loaders/earnings_estimates.py:565
↓ 2 callersFunctionplus_or_dot
(pieces)
versioneer.py:1169
↓ 2 callersFunctionplus_or_dot
(pieces)
zipline/_version.py:261
↓ 2 callersMethodpositions
(self)
zipline/finance/metrics/tracker.py:156
↓ 2 callersFunctionprevious_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 callersMethodprocess_order
(data, order)
tests/metrics/test_metrics.py:207
↓ 2 callersMethodprocess_transaction
Add a transaction to ledger, updating the current state as needed. Parameters ---------- transaction : zp.Transaction
zipline/finance/ledger.py:479
↓ 2 callersFunctionproduct_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 callersMethodrand_categoricals
Build a block of random categorical data. Categories should not include ``missing_value``.
tests/pipeline/base.py:197
↓ 2 callersMethodraw_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 callersFunctionrebalance_portfolio
(algo, data, desired_port)
zipline/examples/olmar.py:86
↓ 2 callersMethodregister_account_control
Register a new AccountControl to be checked on each bar.
zipline/algorithm.py:2043
↓ 2 callersFunctionrequired_estimates_fields
Compute the set of resource columns required to serve `columns`.
zipline/pipeline/loaders/earnings_estimates.py:64
↓ 2 callersFunctionrequired_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 callersMethodresolve
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 callersFunctionrolling_vwap
Simple rolling vwap implementation for testing
tests/pipeline/test_pipeline_algo.py:72
↓ 2 callersFunctionrolling_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 callersFunctionrowwise_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 callersFunctionrun
Run a backtest for the given algorithm.
zipline/__main__.py:249
↓ 2 callersMethodrun
(self)
versioneer.py:1509
↓ 2 callersMethodrun
Run the algorithm.
zipline/algorithm.py:621
↓ 2 callersMethodrun_terms
(self, terms, initial_workspace, mask)
tests/pipeline/base.py:126
↓ 2 callersMethodrunning_pipeline
(self, pipeline, start_date, end_date)
zipline/pipeline/hooks/no.py:12
↓ 2 callersFunctionseconds_to_timestamp
(seconds)
zipline/testing/core.py:64
↓ 2 callersFunctionselect_sampling_indices
Choose entries from ``dates`` to use for downsampling at ``frequency``. Parameters ---------- dates : pd.DatetimeIndex Dates
zipline/pipeline/downsample_helpers.py:30
↓ 2 callersMethodsetUpClass
(cls)
tests/events/test_events.py:223
↓ 2 callersFunctionset_algo_instance
(algo)
zipline/utils/algo_instance.py:23
↓ 2 callersFunctionset_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 callersMethodset_do_not_order_list
Set a restriction on which assets can be ordered. Parameters ---------- restricted_list : container[Asset], SecurityList
zipline/algorithm.py:2174
↓ 2 callersMethodset_long_only
Set a rule specifying that this algorithm cannot take short positions.
zipline/algorithm.py:2227
↓ 2 callersMethodset_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 callersMethodset_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 callersMethodshould_cancel
(self, event)
zipline/finance/cancel_policy.py:70
↓ 2 callersMethodshould_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 callersMethodshould_trigger
(self, dt)
zipline/utils/events.py:469
↓ 2 callersMethodsid_day_index
Parameters ---------- sid : int The asset identifier. day : datetime64-like Midnight of the d
zipline/data/bcolz_daily_bars.py:645
↓ 2 callersMethodsidpath
Parameters ---------- sid : int Asset identifier. Returns ------- out : string
zipline/data/minute_bars.py:519
↓ 2 callersFunctionsplit_normalized_quarters
(normalized_quarters)
zipline/pipeline/loaders/earnings_estimates.py:48
↓ 2 callersMethodstart_of_session
(self, ledger, session, data_portal)
zipline/finance/metrics/metric.py:271
↓ 2 callersMethodsync_last_sale_prices
(self, dt, data_portal,
zipline/finance/metrics/tracker.py:194
↓ 2 callersMethodtearDown
(self)
zipline/testing/fixtures.py:227
↓ 2 callersFunctiontimedelta_to_integral_seconds
Convert a pd.Timedelta to a number of seconds as an int.
zipline/utils/pandas_utils.py:195
↓ 2 callersFunctionto_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 callersFunctionto_utc
Convert a string in US/Eastern time to UTC
zipline/testing/core.py:68
↓ 2 callersFunctiontolerant_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 callersMethodtrading_days_between
(self, start, end)
tests/data/test_daily_bars.py:204
↓ 2 callersMethodtransactions
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 callersMethodtruncate
Truncate data beyond this date in all ctables.
zipline/data/minute_bars.py:857
↓ 2 callersMethodunpack_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 callersMethodupdate_current
(self, effective_date, symbols, change_func)
zipline/utils/security_list.py:85
↓ 2 callersMethodupdate_portfolio
Force a computation of the current portfolio state.
zipline/finance/ledger.py:703
↓ 2 callersFunctionvalid_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 callersMethodvalidate
Fail if we would hold negative shares of asset after completing this order.
zipline/finance/controls.py:298
↓ 2 callersFunctionvalidate_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 callersFunctionvalidate_event_metadata
(event_dates, event_timestamps, event_sids)
zipline/pipeline/loaders/utils.py:13
↓ 2 callersFunctionvectorized_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 callersMethodverify_regular_dt
(self, idx, dt, mode, fields=None, assets=None)
tests/test_history.py:244
↓ 2 callersFunctionverify_sqlite_path_exists
(path)
zipline/utils/sqlite_utils.py:33
↓ 2 callersMethodverify_trace
(self, trace, pipeline_start_date, pipeline_end
tests/pipeline/test_hooks.py:334
↓ 2 callersFunctionwith_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 callersMethodwrite_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 callersMethodwrite_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 callersMethodwriter
(self, session_bar_reader)
tests/data/test_adjustments.py:33
↓ 2 callersFunctionzipfile_path
(file_name)
tests/resources/quandl_samples/rebuild_samples.py:30
↓ 1 callersFunctionQuartersEstimatesNoNumQuartersAttr
(num_qtr)
tests/pipeline/test_quarters_estimates.py:81
↓ 1 callersFunction_
()
zipline/__init__.py:66
↓ 1 callersMethod__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 callersMethod__enter__
(self)
zipline/utils/cache.py:385
↓ 1 callersMethod__exit__
(self, *exc_info)
zipline/utils/cache.py:388
↓ 1 callersMethod__exit__
(self, *excinfo)
zipline/testing/core.py:819
↓ 1 callersMethod__get__
(self, instance, owner)
zipline/utils/memoize.py:228
↓ 1 callersMethod__get__
(self, instance, owner)
zipline/utils/final.py:106
↓ 1 callersMethod__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 callersMethod__getattribute__
(self, name)
zipline/testing/core.py:419
↓ 1 callersMethod__init__
(self, **kwargs)
zipline/errors.py:23
↓ 1 callersMethod__init__
(self, items, dict_remove=None)
zipline/utils/memoize.py:128
↓ 1 callersMethod__init__
(self, callable_, args, starargs, kwargs)
zipline/utils/argcheck.py:231
↓ 1 callersMethod__init__
(self, left, right)
zipline/lib/labelarray.py:73
↓ 1 callersMethod__init__
(self, before, after, keep_last)
zipline/data/bundles/core.py:183
↓ 1 callersMethod__init__
(self, cost=DEFAULT_PER_SHARE_COST, min_trade_cost=DEFAULT_MINIMUM_COST_PER_
zipline/finance/commission.py:163
↓ 1 callersMethod__init__
(self, terms)
zipline/pipeline/graph.py:56
↓ 1 callersMethod__init__
(self, estimates, name_map)
zipline/pipeline/loaders/earnings_estimates.py:138
↓ 1 callersMethod__init__
(self, expr, columns, resources=None, odo_
zipline/pipeline/loaders/blaze/estimates.py:71
↓ 1 callersMethod__new__
(cls, attr)
zipline/utils/final.py:83
← previousnext →701–800 of 4,252, ranked by callers