MCPcopy Index your code

hub / github.com/quantopian/zipline / functions

Functions4,252 in github.com/quantopian/zipline

↓ 3 callersMethodcalculate
(self, order, transaction)
zipline/finance/commission.py:180
↓ 3 callersMethodcalculate
Pay commission based on dollar value of shares.
zipline/finance/commission.py:377
↓ 3 callersMethodcancel
(self, order_id, relay_status=True)
zipline/finance/blotter/simulation_blotter.py:156
↓ 3 callersMethodcheck_algo_fails
(self, algo)
tests/test_algorithm.py:3191
↓ 3 callersMethodcheck_algo_succeeds
(self, algo)
tests/test_algorithm.py:3187
↓ 3 callersMethodcheck_dependency_order
(self, ordered_terms)
tests/pipeline/test_term.py:171
↓ 3 callersMethodcheck_uint_safe
(value, colname)
tests/utils/daily_bar_writer.py:46
↓ 3 callersMethodclear
(self)
zipline/extensions.py:152
↓ 3 callersFunctioncreate_daily_bar_data
(sessions, sids)
zipline/testing/core.py:457
↓ 3 callersFunctioncreate_daily_df_for_asset
(trading_calendar, start_day, end_day, interval=1)
zipline/testing/core.py:573
↓ 3 callersFunctioncreate_empty_splits_mergers_frame
()
zipline/testing/core.py:1241
↓ 3 callersMethodcurrent_securities
(self, dt)
zipline/utils/security_list.py:61
↓ 3 callersMethoddaily_returns
Returns the daily returns for the given period. Parameters ---------- start : datetime The inclusive starting ses
zipline/sources/benchmark_source.py:124
↓ 3 callersMethoddata_query_cutoff_for_sessions
(self, sessions)
zipline/pipeline/domain.py:424
↓ 3 callersMethoddates_for_asset
(self, asset_id)
tests/data/test_daily_bars.py:213
↓ 3 callersFunctiondisplay_graph
Display a TermGraph interactively from within IPython.
zipline/pipeline/visualize.py:152
↓ 3 callersFunctionempty_assets_db
Context manager for creating an empty assets db. See Also -------- tmp_assets_db
zipline/testing/core.py:825
↓ 3 callersMethodempty_like
Make an empty LabelArray with the same categories as ``self``, filled with ``self.missing_value``.
zipline/lib/labelarray.py:610
↓ 3 callersFunctionensure_directory_containing
Ensure that the directory containing `path` exists. This is just a convenience wrapper for doing:: ensure_directory(os.path.dirname
zipline/utils/paths.py:37
↓ 3 callersFunctionenum
Construct a new enum object. Parameters ---------- *options : iterable of str The names of the fields for the enum. Ret
zipline/utils/enum.py:48
↓ 3 callersMethodequities_sids_for_country_code
Return all of the sids for a given country. Parameters ---------- country_code : str An ISO 3166 alpha-2 country
zipline/assets/assets.py:1502
↓ 3 callersFunctioneverything_but
Return iterator of all values in d except the values in k.
tests/utils/test_numpy_utils.py:67
↓ 3 callersMethodexpect_context_pair
(self, enter, exit_, method)
tests/pipeline/test_hooks.py:193
↓ 3 callersMethodexpected_ewma
(self, data_df, window)
tests/pipeline/test_technical.py:412
↓ 3 callersFunctionexponential_weights
Build a weight vector for an exponentially-weighted statistic. The resulting ndarray is of the form:: [decay_rate ** length, ..., d
zipline/pipeline/factors/basic.py:174
↓ 3 callersFunctionfilter_nodes
(include_asset_exists, nodes)
zipline/pipeline/visualize.py:78
↓ 3 callersFunctionformat_attrs
Format key, value pairs from attrs into graphviz attrs format Examples -------- >>> format_attrs({'key1': 'value1', 'key2': 'value2'
zipline/pipeline/visualize.py:215
↓ 3 callersFunctionfrom_bundle_ingest_dirname
Read a bundle ingestion directory name into a pandas Timestamp. Parameters ---------- cs : str The name of the directory. Re
zipline/data/bundles/core.py:108
↓ 3 callersMethodget_adjusted_value
Returns a scalar value representing the value of the desired asset's field at the given dt with adjustments applied. Paramet
zipline/data/data_portal.py:640
↓ 3 callersMethodget_adjustments
Returns a list of adjustments between the dt and perspective_dt for the given field and list of assets Parameters --
zipline/data/data_portal.py:575
↓ 3 callersFunctionget_funcname
(_)
zipline/utils/input_validation.py:257
↓ 3 callersMethodget_limit_price
(self, _is_buy)
zipline/finance/execution.py:120
↓ 3 callersMethodget_rate_scalar
Load a scalar FX rate value. Parameters ---------- rate : str Name of the rate to load. quote :
zipline/data/fx/base.py:87
↓ 3 callersMethodget_stop_price
(self, is_buy)
zipline/finance/execution.py:123
↓ 3 callersMethodget_value
Look up the returns for a given dt. Parameters ---------- dt : datetime The label to look up. Returns
zipline/sources/benchmark_source.py:74
↓ 3 callersMethodhas_substring
Elementwise contains. Parameters ---------- substring : str Returns ------- matches : np.nd
zipline/lib/labelarray.py:761
↓ 3 callersMethodhold
Mark the order with order_id as 'held'. Held is functionally similar to 'open'. When a fill (full or partial) arrives, the status
zipline/finance/blotter/simulation_blotter.py:266
↓ 3 callersMethodinit_class_fixtures
(cls)
tests/pipeline/test_engine.py:185
↓ 3 callersMethodinit_instance_fixtures
(self)
zipline/testing/fixtures.py:1962
↓ 3 callersMethodinit_instance_fixtures
(self)
tests/test_assets.py:2409
↓ 3 callersFunctionis_comparison
(op)
zipline/pipeline/expression.py:167
↓ 3 callersFunctionis_final
Checks if `name` is a `final` object in the given `mro`. We need to check the mro because we need to directly go into the __dict__ of the
zipline/utils/final.py:20
↓ 3 callersMethodis_registered
Check whether we have a factory registered under ``name``.
zipline/extensions.py:126
↓ 3 callersFunctionis_sorted_ascending
(array)
zipline/data/fx/utils.py:11
↓ 3 callersFunctionlabelarray_where
LabelArray-aware implementation of np.where.
zipline/lib/labelarray.py:829
↓ 3 callersFunctionload_extensions
Load all of the given extensions. This should be called by run_algo or the cli. Parameters ---------- default : bool Load the
zipline/utils/run_algo.py:245
↓ 3 callersMethodload_raw_arrays
Parameters ---------- fields : list of str 'open', 'high', 'low', 'close', or 'volume' start_dt: Timestamp
zipline/data/minute_bars.py:1231
↓ 3 callersFunctionload_raw_data
Given an expression representing data to load, perform normalization and forward-filling and return the data, materialized. Only accepts data
zipline/pipeline/loaders/blaze/utils.py:5
↓ 3 callersFunctionmake_array
(dtype, value)
tests/utils/test_numpy_utils.py:42
↓ 3 callersMethodmake_execution_plan
(self, terms)
tests/pipeline/test_term.py:185
↓ 3 callersMethodmake_expected_out
(cls)
tests/pipeline/test_quarters_estimates.py:236
↓ 3 callersMethodmake_frame
(self, data)
tests/pipeline/test_engine.py:826
↓ 3 callersMethodmake_fx_rates_from_reference
Helper method for implementing make_fx_rates. Takes a (dates x currencies) DataFrame of "reference" values, which are assume
zipline/testing/fixtures.py:2136
↓ 3 callersFunctionmake_rotating_equity_info
Create a DataFrame representing lifetimes of assets that are constantly rotating in and out of existence. Parameters ----------
zipline/assets/synthetic.py:10
↓ 3 callersFunctionmake_test_handler
Returns a TestHandler which will be used by the given testcase. This handler can be used to test log messages. Parameters ----------
zipline/testing/core.py:1338
↓ 3 callersFunctionmapall
Strict version of mapall.
tests/utils/test_numpy_utils.py:36
↓ 3 callersMethodmask_and_dates_for_term
Load mask and mask row labels for term. Parameters ---------- term : Term The term to load the mask and
zipline/pipeline/graph.py:466
↓ 3 callersFunctionmaybe_show_progress
Optionally show a progress bar for the given iterator. Parameters ---------- it : iterable The underlying iterator. show_prog
zipline/utils/cli.py:7
↓ 3 callersFunctionmaybe_specialize
Specialize a term if it's loadable.
zipline/pipeline/graph.py:513
↓ 3 callersFunctionmethod
(*args, **kwargs)
zipline/lib/labelarray.py:47
↓ 3 callersFunctionminute_frame_to_session_frame
Resample a DataFrame with minute data into the frame expected by a BcolzDailyBarWriter. Parameters ---------- minute_frame : pd.
zipline/data/resample.py:42
↓ 3 callersFunctionname_as_arg
(arg)
zipline/utils/preprocess.py:179
↓ 3 callersMethodnotnull_count
(a, missing_value)
zipline/pipeline/factors/factor.py:423
↓ 3 callersFunctionnum_windows_of_length_M_on_buffers_of_length_N
For a window of length M rolling over a buffer of length N, there are (N - M) + 1 legal windows. Example: If my array has N=4 rows,
tests/pipeline/test_adjusted_array.py:59
↓ 3 callersMethodopen
Open an existing ``rootdir`` for writing. Parameters ---------- end_session : Timestamp (optional) When
zipline/data/minute_bars.py:483
↓ 3 callersMethodordered
(self)
zipline/pipeline/graph.py:141
↓ 3 callersMethodprep_algo
(self, cancelation_string, data_frequency="minute", amou
tests/test_algorithm.py:3566
↓ 3 callersMethodprocess_order
Keep track of an order that was placed. Parameters ---------- order : zp.Order The order to record.
zipline/finance/ledger.py:537
↓ 3 callersMethodrand_ints
Build a block of random numerical data.
tests/pipeline/base.py:184
↓ 3 callersFunctionread_requirements
Read a requirements file, expressed as a path relative to Zipline root.
setup.py:200
↓ 3 callersMethodrecursive_repr
A short repr to use when recursively rendering terms with inputs.
zipline/pipeline/term.py:395
↓ 3 callersFunctionrestrict_to_dtype
A factory for decorators that restrict Term methods to only be callable on Terms with a specific dtype. This is conceptually similar to
zipline/pipeline/api_utils.py:7
↓ 3 callersMethodretrieve_equities
Retrieve Equity objects for a list of sids. Users generally shouldn't need to this method (instead, they should prefer the m
zipline/assets/assets.py:544
↓ 3 callersMethodround_order
Convert number of shares to an integer. By default, truncates to the integer share count that's either within .0001 of amoun
zipline/algorithm.py:1298
↓ 3 callersFunctionrun_command
(commands, args, cwd=None, verbose=False, hide_stderr=False)
zipline/_version.py:63
↓ 3 callersMethodschedule_function
Schedule a function to be called repeatedly in the future. Parameters ---------- func : callable The fun
zipline/algorithm.py:893
↓ 3 callersMethodset_max_order_count
Set a limit on the number of orders that can be placed in a single day. Parameters ---------- max_count : int
zipline/algorithm.py:2161
↓ 3 callersMethodshould_cancel
(self, event)
zipline/finance/cancel_policy.py:60
↓ 3 callersMethodshould_trigger
(self, dt)
zipline/utils/events.py:393
↓ 3 callersMethodsorted_by_ds
(cls, *cols)
tests/pipeline/test_engine.py:145
↓ 3 callersFunctionsplit_delimited_symbol
Takes in a symbol that may be delimited and splits it in to a company symbol and share class symbol. Also returns the fuzzy symbol, which is
zipline/assets/asset_writer.py:174
↓ 3 callersMethodstartswith
Construct a Filter matching values starting with ``prefix``. Parameters ---------- prefix : str String p
zipline/pipeline/classifiers/classifier.py:135
↓ 3 callersMethodstddev
(a, missing_value)
zipline/pipeline/factors/factor.py:403
↓ 3 callersMethodsymbols
Lookup multuple Equities as a list. Parameters ---------- *args : iterable[str] The ticker symbols to lookup.
zipline/algorithm.py:1086
↓ 3 callersMethodto_api_obj
(self)
zipline/finance/order.py:103
↓ 3 callersFunctionto_dict
Convert a list to a dict with keys drawn from '0', '1', '2', ... Examples -------- >>> to_dict([2, 3, 4]) # doctest: +SKIP {'0'
tests/pipeline/test_term.py:148
↓ 3 callersFunctionunsigned_int_dtype_with_size_in_bytes
(size)
zipline/utils/numpy_utils.py:118
↓ 3 callersFunctionvectorized_pearson_r
Compute Pearson's r between columns of ``dependents`` and ``independents``. Parameters ---------- dependents : np.array[N, M]
zipline/pipeline/factors/statistical.py:670
↓ 3 callersMethodverify_bts_during_session
(self, bts_time, bts_session_times, bts_idx)
tests/test_clock.py:101
↓ 3 callersMethodwith_static_publisher
Construct a ProgressHooks that uses an already-constructed publisher.
zipline/pipeline/hooks/progress.py:43
↓ 3 callersMethodwrite
Write a stream of minute data. Parameters ---------- data : iterable[(int, pd.DataFrame)] The data to write. Each
zipline/data/minute_bars.py:669
↓ 3 callersFunctionwrite_bcolz_minute_data
(trading_calendar, days, path, data)
zipline/testing/core.py:517
↓ 3 callersMethodwrite_frame
(self, tablename, frame)
zipline/data/adjustments.py:420
↓ 3 callersFunctionwrite_to_version_file
(filename, versions)
versioneer.py:1159
↓ 3 callersMethodwriter_without_pricing
(self, dates, sids)
tests/data/test_adjustments.py:63
↓ 2 callersFunctionNaT_for_dtype
Retrieve NaT with the same units as ``dtype``. Parameters ---------- dtype : dtype-coercable The dtype to lookup the NaT value fo
zipline/utils/numpy_utils.py:68
↓ 2 callersMethod__enter__
(self)
zipline/testing/core.py:814
↓ 2 callersMethod__init__
(self, pre_func, post_func, asset_finder,
zipline/sources/requests_csv.py:146
↓ 2 callersMethod__init__
(self, columns, dates, sids)
zipline/pipeline/loaders/synthetic.py:114
↓ 2 callersMethod__new__
(cls, dtype, missing_value, dataset, name,
zipline/pipeline/data/dataset.py:169
← previousnext →401–500 of 4,252, ranked by callers