MCPcopy Create free account

hub / github.com/quantopian/zipline / functions

Functions4,252 in github.com/quantopian/zipline

↓ 2 callersMethod__new__
(mcls, name, bases, dict_)
tests/utils/test_metautils.py:59
↓ 2 callersMethod__setattr__
(self, attr, value)
zipline/protocol.py:276
↓ 2 callersMethod__setattr__
(self, attr, value)
zipline/finance/position.py:67
↓ 2 callersFunction_ad_as_ts
Duplicate the asof_date column as the timestamp column. Parameters ---------- expr : Expr or None The expression to change the co
zipline/pipeline/loaders/blaze/core.py:474
↓ 2 callersFunction_assert_raises_helper
(do_check, exc_type, msg)
zipline/testing/predicates.py:286
↓ 2 callersFunction_build_ownership_map_from_rows
(rows, key_from_row, value_from_row)
zipline/assets/assets.py:141
↓ 2 callersFunction_build_time
Builds the time argument for event rules.
zipline/utils/events.py:143
↓ 2 callersMethod_calculate_impact
(self, test_order, answer_key)
tests/finance/test_slippage.py:808
↓ 2 callersMethod_calculate_order_percent_amount
(self, asset, percent)
zipline/algorithm.py:1679
↓ 2 callersMethod_check_algo
(self, algo, expected_order_count, expected_exc)
tests/test_algorithm.py:2664
↓ 2 callersMethod_check_algo
(self, algo, expected_exc)
tests/test_algorithm.py:3183
↓ 2 callersMethod_check_bundles
(self, names)
tests/data/bundles/test_core.py:94
↓ 2 callersFunction_check_datetime_field
Check that a field is a datetime inside some measure. Parameters ---------- name : str The name of the field to check. measur
zipline/pipeline/loaders/blaze/core.py:380
↓ 2 callersMethod_check_filters
(self, evens, odds, first_five, last_three)
tests/pipeline/test_filter.py:1030
↓ 2 callersFunction_check_if_not_called
(v)
zipline/utils/events.py:786
↓ 2 callersFunction_check_steps
Check that the steps of ``a`` and ``b`` are both 1. Parameters ---------- a : range The first range to check. b : range
zipline/utils/range.py:215
↓ 2 callersFunction_check_symbol_mappings
Check that there are no cases where multiple symbols resolve to the same asset at the same time in the same country. Parameters ---------
zipline/assets/asset_writer.py:271
↓ 2 callersMethod_choose_fuzzy_symbol_ownership_map
(self, country_code)
zipline/assets/assets.py:944
↓ 2 callersMethod_choose_symbol_ownership_map
(self, country_code)
zipline/assets/assets.py:952
↓ 2 callersFunction_coerce_to_dtype
(value, dtype)
zipline/pipeline/term.py:980
↓ 2 callersMethod_collect_adjustments
(self, requested_qtr_data, sid,
zipline/pipeline/loaders/earnings_estimates.py:1267
↓ 2 callersMethod_compute
(self, today, assets, out)
zipline/pipeline/term.py:459
↓ 2 callersMethod_compute_asset_lifetimes
Compute and cache a recarray of asset lifetimes.
zipline/assets/assets.py:1419
↓ 2 callersMethod_create_benchmark_source
(self)
zipline/algorithm.py:535
↓ 2 callersMethod_create_buffer
(self)
zipline/utils/data.py:285
↓ 2 callersMethod_create_metrics_tracker
(self)
zipline/algorithm.py:555
↓ 2 callersMethod_end_of_period
(self, sub_field, packet, ledger)
zipline/finance/metrics/metric.py:139
↓ 2 callersMethod_end_of_period
(self, field, packet, ledger)
zipline/finance/metrics/metric.py:274
↓ 2 callersMethod_ensure_displayed
(self)
zipline/pipeline/hooks/progress.py:394
↓ 2 callersMethod_execution_open_and_close
(calendar, session)
zipline/finance/metrics/tracker.py:60
↓ 2 callersFunction_expect_bounded
(make_bounded_check, __funcname, **named)
zipline/utils/input_validation.py:696
↓ 2 callersFunction_expect_extra
Checks for the presence of an extra to the argument list. Raises expections if this is unexpected or if it is missing and expected.
zipline/utils/argcheck.py:131
↓ 2 callersFunction_filter_kwargs
Filter out kwargs from a dictionary. Parameters ---------- names : set[str] The names to select from ``dict_``. dict_ : dict[
zipline/assets/assets.py:193
↓ 2 callersMethod_finish_terms
(self, nterms)
zipline/pipeline/hooks/progress.py:260
↓ 2 callersMethod_get_active_contract_at_offset
For the given root symbol, find the contract that is considered active on a specific date at a specific offset.
zipline/assets/roll_finder.py:33
↓ 2 callersMethod_get_daily_window_data
Internal method that gets a window of adjusted daily data for a sid and specified date range. Used to support the history API method
zipline/data/data_portal.py:1065
↓ 2 callersMethod_get_history_daily_window
Internal method that returns a dataframe containing history bars of daily frequency for the given sids.
zipline/data/data_portal.py:787
↓ 2 callersMethod_get_history_minute_window
Internal method that returns a dataframe containing history bars of minute frequency for the given sids.
zipline/data/data_portal.py:886
↓ 2 callersFunction_get_metadata
Find the correct metadata expression for the expression. Parameters ---------- field : {'deltas', 'checkpoints'} The kind of meta
zipline/pipeline/loaders/blaze/core.py:430
↓ 2 callersMethod_get_metadata
(self)
zipline/data/minute_bars.py:965
↓ 2 callersMethod_get_minute_spot_value
(self, asset, column, dt, ffill=False)
zipline/data/data_portal.py:691
↓ 2 callersMethod_get_resampled
(self, columns, start_session, end_session, assets)
zipline/data/resample.py:519
↓ 2 callersMethod_get_single_asset_value
(self, session_label, asset,
zipline/data/data_portal.py:431
↓ 2 callersMethod_get_window_data
Internal utility method to return the trailing mean volume over the past 'window_length' days, and volatility of close prices for a
zipline/finance/slippage.py:476
↓ 2 callersMethod_handle_minute_history_out_of_bounds
(self, bar_count)
zipline/data/data_portal.py:864
↓ 2 callersMethod_init
Parameters ---------- domain : zipline.pipeline.domain.Domain The domain of this term. dtype : np.dtype
zipline/pipeline/term.py:267
↓ 2 callersMethod_init
(self, asset, *args, **kwargs)
zipline/pipeline/mixins.py:613
↓ 2 callersMethod_init
(self, method, ascending, *args, **kwargs)
zipline/pipeline/factors/factor.py:1510
↓ 2 callersFunction_invert
(d)
zipline/utils/events.py:778
↓ 2 callersMethod_load_events
(self, name_map, indexer, domain,
zipline/pipeline/loaders/events.py:207
↓ 2 callersMethod_load_raw_arrays_date_to_index
(self, date)
zipline/data/bcolz_daily_bars.py:592
↓ 2 callersMethod_lookup_generic_scalar
Convert asset_convertible to an asset. On success, append to matches. On failure, append to missing.
zipline/assets/assets.py:1301
↓ 2 callersFunction_make_bundle_core
Create a family of data bundle functions that read from the same bundle mapping. Returns ------- bundles : mappingproxy The m
zipline/data/bundles/core.py:198
↓ 2 callersFunction_make_metrics_set_core
Create a family of metrics sets functions that read from the same metrics set mapping. Returns ------- metrics_sets : mappingproxy
zipline/finance/metrics/core.py:6
↓ 2 callersMethod_make_minute_bar_data
(cls, calendar, sids)
tests/metrics/test_metrics.py:1449
↓ 2 callersFunction_normalize_index_columns_in_place
Update dataframes in place to set indentifier columns as indices. For each input frame, if the frame has a column with the same name as its
zipline/assets/asset_writer.py:73
↓ 2 callersMethod_ohlc_ratio_inverse_for_sid
(self, sid)
zipline/data/minute_bars.py:981
↓ 2 callersFunction_out_of_range_error
(a, b=None, var='offset')
zipline/utils/events.py:81
↓ 2 callersFunction_pragma_foreign_keys
Sets the PRAGMA foreign_keys state of the SQLite database. Disabling the pragma allows for batch modification of tables with foreign keys. Pa
zipline/assets/asset_db_migrations.py:112
↓ 2 callersMethod_prepare_graph_terms
Helper for to_graph and to_execution_plan.
zipline/pipeline/pipeline.py:234
↓ 2 callersMethod_principal_computable_term_type
(cls)
zipline/pipeline/filters/filter.py:222
↓ 2 callersMethod_real_write
(self, equities, equity_symbol_mappings, equity_su
zipline/assets/asset_writer.py:460
↓ 2 callersMethod_rebind_variables
Return self._expr with all variables rebound to the indices implied by new_inputs.
zipline/pipeline/expression.py:257
↓ 2 callersMethod_replace
(self, **kwargs)
zipline/pipeline/data/dataset.py:245
↓ 2 callersMethod_reset_transient_state
(self)
zipline/pipeline/hooks/progress.py:28
↓ 2 callersMethod_resolve_hooks
(self, hooks)
zipline/pipeline/engine.py:895
↓ 2 callersMethod_retrieve_assets
Internal function for loading assets from a table. This should be the only method of `AssetFinder` that writes Assets into s
zipline/assets/assets.py:692
↓ 2 callersFunction_run
Run a backtest for the given algorithm. This is shared between the cli and :func:`zipline.run_algo`.
zipline/utils/run_algo.py:62
↓ 2 callersMethod_set_progress
(self, percent_complete)
zipline/pipeline/hooks/progress.py:410
↓ 2 callersMethod_spot_col
Get the colname from daily_bar_table and read all of it into memory, caching the result. Parameters ----------
zipline/data/bcolz_daily_bars.py:598
↓ 2 callersMethod_static_identity
Return the identity of the Term that would be constructed from the given arguments. Identities that compare equal will cause
zipline/pipeline/term.py:247
↓ 2 callersMethod_static_identity
(cls, asset, *args, **kwargs)
zipline/pipeline/mixins.py:618
↓ 2 callersMethod_static_identity
(cls, method, ascending, *args, **kwargs)
zipline/pipeline/factors/factor.py:1516
↓ 2 callersMethod_stop_displaying
(self)
zipline/pipeline/hooks/progress.py:399
↓ 2 callersFunction_td_check
(td)
zipline/utils/events.py:97
↓ 2 callersMethod_test_contiguous_minutes_individual
( self, field, asset, minutes, aggregator, )
tests/data/test_resample.py:360
↓ 2 callersMethod_test_identity
(self, name)
tests/data/test_adjustments.py:209
↓ 2 callersFunction_time_to_micros
Convert a time into microseconds since midnight. Parameters ---------- time : datetime.time The time to convert. Returns -
zipline/utils/pandas_utils.py:48
↓ 2 callersFunction_trading_days_for_minute_bars
(calendar, start_date, end_date,
zipline/testing/fixtures.py:1186
↓ 2 callersMethod_validate
Assert that this term is well-formed. This should be called exactly once, at the end of Term._init().
zipline/pipeline/term.py:317
↓ 2 callersMethod_validate
(self)
zipline/pipeline/factors/basic.py:47
↓ 2 callersMethod_write_assets
(self, asset_type, assets, txn,
zipline/assets/asset_writer.py:813
↓ 2 callersMethod_write_cols
Internal method for `write_cols` and `write`. Parameters ---------- sid : int The asset identifier for t
zipline/data/minute_bars.py:763
↓ 2 callersMethodadd_event
Adds an event to the algorithm's EventManager. Parameters ---------- rule : EventRule The rule for when the callb
zipline/algorithm.py:878
↓ 2 callersMethodadd_instance_callback
Register a callback to be executed during tearDown. Parameters ---------- callback : callable The callba
zipline/testing/fixtures.py:242
↓ 2 callersFunctionadjustment_db_relative
(bundle_name, timestr)
zipline/data/bundles/core.py:69
↓ 2 callersMethodalgo_with_slippage
(slippage_model)
tests/test_algorithm.py:3384
↓ 2 callersMethodall_api_methods
Return a list of all the TradingAlgorithm API methods.
zipline/algorithm.py:2409
↓ 2 callersMethodapply_adjustments
(self, dates, assets, baseline_values, adjustments)
tests/pipeline/test_us_equity_pricing_loader.py:559
↓ 2 callersMethodarange_data
Build a block of testing data from numpy.arange.
tests/pipeline/base.py:170
↓ 2 callersMethodas_categorical
Coerce self into a pandas categorical. This is only defined on 1D arrays, since that's all pandas supports.
zipline/lib/labelarray.py:327
↓ 2 callersMethodas_categorical_frame
Coerce self into a pandas DataFrame of Categoricals.
zipline/lib/labelarray.py:345
↓ 2 callersFunctionas_dtype
Curried wrapper around array.astype for when you have the dtype before you have the data.
tests/pipeline/test_adjusted_array.py:81
↓ 2 callersMethodassertSameObject
(self, *objs)
tests/pipeline/test_term.py:286
↓ 2 callersFunctionassert_multi_index_is_product
Assert that a MultiIndex contains the product of `*levels`.
tests/pipeline/test_engine.py:127
↓ 2 callersMethodassert_not_restricted
(self, rl, asset, dt)
tests/test_restrictions.py:49
↓ 2 callersMethodassert_result_contains_all_sids
(self, results)
tests/pipeline/test_events.py:481
↓ 2 callersFunctionasset_db_path
(bundle_name, timestr, environ=None, db_version=None)
zipline/data/bundles/core.py:34
↓ 2 callersMethodbatch_order
Place a batch of orders. Parameters ---------- order_arg_lists : iterable[tuple] Tuples of args that `order` expe
zipline/finance/blotter/blotter.py:67
↓ 2 callersFunctionbinary_operator
Factory function for making binary operator methods on a Factor subclass. Returns a function, "binary_operator" suitable for implementing fu
zipline/pipeline/factors/factor.py:166
← previousnext →501–600 of 4,252, ranked by callers