MCPcopy Index your code

hub / github.com/quantopian/zipline / functions

Functions4,252 in github.com/quantopian/zipline

↓ 12 callersFunctionmerge
Merge two ranges with step == 1. Parameters ---------- a : range The first range. b : range The second range.
zipline/utils/range.py:259
↓ 12 callersFunctionnormalize_date
Normalize datetime.datetime value to midnight. Returns datetime.date as a datetime.datetime at midnight Returns ----
zipline/utils/pandas_utils.py:21
↓ 12 callersMethodrun_algo
(self, code, sim_params=None)
tests/test_fetcher.py:113
↓ 12 callersMethodto_dict
(self)
zipline/finance/order.py:83
↓ 11 callersMethod_empty_ingest
Run the nth empty ingest. Returns ------- wrote_to : str The timestr of the bundle written.
tests/data/bundles/test_core.py:365
↓ 11 callersFunction_generate_output_dataframe
Generates an output dataframe from the given subset of user-provided data, the given column names, and the given default values. Paramet
zipline/assets/asset_writer.py:215
↓ 11 callersFunctioncoerce_to_dtype
Make a value with the specified numpy dtype. Only datetime64[ns] and datetime64[D] are supported for datetime dtypes.
zipline/utils/numpy_utils.py:149
↓ 11 callersMethoddemean
Construct a Factor that computes ``self`` and subtracts the mean from row of the result. If ``mask`` is supplied, ignore val
zipline/pipeline/factors/factor.py:540
↓ 11 callersMethodfail
Raise an AccountControlViolation with information about the failure.
zipline/finance/controls.py:389
↓ 11 callersMethodget_open_orders
Retrieve all of the current open orders. Parameters ---------- asset : Asset If passed and not None, return only
zipline/algorithm.py:1918
↓ 11 callersMethodget_value
(self, sid, dt, field)
zipline/data/resample.py:652
↓ 11 callersMethodgraph_repr
A short repr to use when rendering GraphViz graphs.
zipline/pipeline/term.py:389
↓ 11 callersMethodif_else
Create a term that selects values from one of two choices. Parameters ---------- if_true : zipline.pipeline.term.Com
zipline/pipeline/filters/filter.py:226
↓ 11 callersMethodlast_date_in_output_for_sid
Parameters ---------- sid : int Asset identifier. Returns ------- out : pd.Timestamp
zipline/data/minute_bars.py:534
↓ 11 callersMethodpearsonr
Construct a new Factor that computes rolling pearson correlation coefficients between ``target`` and the columns of ``self``.
zipline/pipeline/factors/factor.py:794
↓ 11 callersFunctionqualname
(ob)
tests/utils/test_preprocess.py:34
↓ 11 callersFunctionstr_to_ts
(dt_str)
tests/test_bar_data.py:59
↓ 11 callersMethodtop
Construct a Filter matching the top N asset values of self each day. If ``groupby`` is supplied, returns a Filter matching the top N
zipline/pipeline/factors/factor.py:1186
↓ 11 callersMethodverify_per_unit_commissions
(self, model, commission_totals,
tests/finance/test_commissions.py:179
↓ 10 callersFunction_fmt_path
Format the path for final display. Parameters ---------- path : iterable of str The path to the values that are not equal. R
zipline/testing/predicates.py:183
↓ 10 callersMethodalias
Make a term from ``self`` that names the expression. Parameters ---------- {name} Returns -------
zipline/pipeline/term.py:730
↓ 10 callersMethodclose
()
zipline/utils/pool.py:139
↓ 10 callersMethodcreate_algo
(self, code, filename=None, sim_params=None)
tests/test_api_shim.py:186
↓ 10 callersMethoddomain
Get the domain for this pipeline. - If an explicit domain was provided at construction time, use it. - Otherwise, infer a do
zipline/pipeline/pipeline.py:286
↓ 10 callersMethoddownsample
Make a term that computes from ``self`` at lower-than-daily frequency. Parameters ---------- {frequency}
zipline/pipeline/term.py:717
↓ 10 callersMethodendswith
Elementwise endswith. Parameters ---------- suffix : str Returns ------- matches : np.ndarr
zipline/lib/labelarray.py:745
↓ 10 callersMethodget
Returns ------- out : A np.ndarray of the equity pricing up to end_ix after adjustments and rounding have been
zipline/data/history_loader.py:279
↓ 10 callersMethodget_results
(self, algo_code)
tests/finance/test_commissions.py:360
↓ 10 callersMethodis_missing
Like isnan, but checks for locations where we store missing values.
zipline/lib/labelarray.py:451
↓ 10 callersMethodload_raw_arrays
(self, fields, start_dt, end_dt, sids)
zipline/data/resample.py:681
↓ 10 callersMethodlookup_future_symbol
Lookup a future contract by symbol. Parameters ---------- symbol : str The symbol of the desired contract.
zipline/assets/assets.py:1082
↓ 10 callersMethodmake_engine
(self, loader=None)
tests/pipeline/test_quarters_estimates.py:161
↓ 10 callersMethodrandn_data
Build a block of random numerical data.
tests/pipeline/base.py:177
↓ 10 callersMethodremove
(k, selfref=ref(self), dict_remove=dict_remove)
zipline/utils/memoize.py:129
↓ 10 callersMethodtransform
Main generator work loop.
zipline/gens/tradesimulation.py:97
↓ 10 callersMethodunregister
(self, name)
zipline/extensions.py:143
↓ 9 callersFunctionQuartersEstimates
(announcements_out)
tests/pipeline/test_quarters_estimates.py:67
↓ 9 callersFunction_ensure_index
(x)
zipline/utils/data.py:22
↓ 9 callersFunctionfill_price_worse_than_limit_price
Checks whether the fill price is worse than the order's limit price. Parameters ---------- fill_price: float The price to ch
zipline/finance/slippage.py:50
↓ 9 callersMethodfuture_symbol
Lookup a futures contract with a given symbol. Parameters ---------- symbol : str The symbol of the desired contr
zipline/algorithm.py:1137
↓ 9 callersMethodget_rolls
Get the rolls, i.e. the session at which to hop from contract to contract in the chain. Parameters ----------
zipline/assets/roll_finder.py:66
↓ 9 callersMethodhandle_violation
Handle a TradingControlViolation, either by raising or logging and error with information about the failure. If dynamic info
zipline/finance/controls.py:79
↓ 9 callersFunctionmake_alternating_boolean_array
Create a 2D numpy array with the given shape containing alternating values of False, True, False, True,... along each row and each column.
zipline/testing/core.py:1255
↓ 9 callersFunctionmake_cascading_boolean_array
Create a numpy array with the given shape containing cascading boolean values, with `first_value` being the top-left value. Examples
zipline/testing/core.py:1285
↓ 9 callersMethodmake_simparams
(cls, **overrides)
zipline/testing/fixtures.py:649
↓ 9 callersMethodrecursive_repr
Short repr used to render in recursive contexts.
zipline/pipeline/data/dataset.py:385
↓ 9 callersMethodslice
Take a slice of a DataSetFamily to produce a dataset indexed by asset and date. Parameters ---------- *args *
zipline/pipeline/data/dataset.py:957
↓ 8 callersFunctionT
Helpful function to improve readibility.
tests/utils/test_date_utils.py:9
↓ 8 callersMethod_publish
(self)
zipline/pipeline/hooks/progress.py:48
↓ 8 callersMethodadd_event
Adds an event to the manager.
zipline/utils/events.py:203
↓ 8 callersMethodassert_all_restrictions
(self, rl, expected, dt)
tests/test_restrictions.py:52
↓ 8 callersMethodasset_end
(self, asset_id)
tests/data/test_daily_bars.py:210
↓ 8 callersMethodcheck_algo_succeeds
(self, algo, order_count=4)
tests/test_algorithm.py:2673
↓ 8 callersMethodcheck_internal_consistency
(self, bar_data)
tests/test_bar_data.py:75
↓ 8 callersMethodcreate
Helper for creating new NumExprFactors. This is just a wrapper around NumericalExpression.__new__ that always forwards `bool
zipline/pipeline/filters/filter.py:328
↓ 8 callersMethoddata_query_cutoff_for_sessions
Compute the data query cutoff time for the given sessions. Parameters ---------- sessions : pd.DatetimeIndex The
zipline/pipeline/domain.py:60
↓ 8 callersMethodenter_instance_context
Enter a context manager that should be exited during tearDown.
zipline/testing/fixtures.py:235
↓ 8 callersFunctionexpected_bar_values_2d
Return an 2D array containing cls.expected_value(asset_id, date, colname) for each date/asset pair in the inputs. Missing locs are fille
zipline/pipeline/loaders/synthetic.py:344
↓ 8 callersMethodget_value
Retrieve the pricing info for the given sid, dt, and field. Parameters ---------- sid : int Asset identi
zipline/data/minute_bars.py:1099
↓ 8 callersMethodhistory
A window of pricing data with adjustments applied assuming that the end of the window is the day before the current simulation time.
zipline/data/history_loader.py:471
↓ 8 callersFunctionisnat
Check if a value is np.NaT.
zipline/utils/numpy_utils.py:341
↓ 8 callersMethodlinear_regression
Construct a new Factor that performs an ordinary least-squares regression predicting the columns of `self` from `target`. Pa
zipline/pipeline/factors/factor.py:925
↓ 8 callersFunctionminutes_for_days
500 randomly selected days. This is used to make sure our test coverage is unbiased towards any rules. We use a random sample because tes
tests/events/test_events.py:182
↓ 8 callersMethodrecord
Track and record values each day. Parameters ---------- **kwargs The names and values to record. Notes
zipline/algorithm.py:963
↓ 8 callersMethodunspecialize
Unspecialize a column to its generic form. This is equivalent to ``column.specialize(GENERIC)``.
zipline/pipeline/data/dataset.py:268
↓ 7 callersMethod__init__
(self, on_error)
zipline/finance/controls.py:295
↓ 7 callersMethod__new__
(cls, term)
zipline/pipeline/filters/filter.py:361
↓ 7 callersFunction_build_offset
Builds the offset argument for event rules.
zipline/utils/events.py:108
↓ 7 callersMethod_check_read_results
(self, columns, assets, start_date, end_date)
tests/data/test_daily_bars.py:226
↓ 7 callersFunction_qualified_name
Return the fully-qualified name (ignoring inner classes) of a type.
zipline/utils/input_validation.py:33
↓ 7 callersMethod_test_id
(self, df, dshape, expected, finder, add)
tests/pipeline/test_blaze.py:778
↓ 7 callersFunctionadd_new_adjustments
(adjustments_dict, adjustments, column_name,
zipline/pipeline/loaders/earnings_estimates.py:95
↓ 7 callersMethodasset_start
(self, asset_id)
tests/data/test_daily_bars.py:207
↓ 7 callersMethodcalendar_days_between
(cls, start_date, end_date, shift=0)
tests/pipeline/test_us_equity_pricing_loader.py:316
↓ 7 callersMethodcreate_new
(self, start_session, end_session, data_frequency=None)
zipline/finance/trading.py:139
↓ 7 callersMethodcurrency_codes
Get currencies in which prices are quoted for the requested sids. Parameters ---------- sids : np.array[int64] Ar
zipline/data/hdf5_daily_bars.py:702
↓ 7 callersMethodcurrent_securities
(self, dt)
tests/test_restrictions.py:232
↓ 7 callersFunctionempty_dataframe
Create an empty dataframe with columns of particular types. Parameters ---------- *columns The (column_name, column_dtype) pairs.
zipline/utils/pandas_utils.py:307
↓ 7 callersMethodenter_class_context
Enter a context manager to be exited during the tearDownClass
zipline/testing/fixtures.py:174
↓ 7 callersMethodf
(self)
tests/utils/test_final.py:55
↓ 7 callersMethodformat_callable
(self)
zipline/utils/argcheck.py:239
↓ 7 callersMethodfx
Construct a currency-converted version of this column. Parameters ---------- currency : str or zipline.currency.Curr
zipline/pipeline/data/dataset.py:277
↓ 7 callersMethodget_adjustments_for_sid
(self, table_name, sid)
zipline/data/adjustments.py:209
↓ 7 callersMethodget_history_window
Public API method that returns a dataframe containing the requested history window. Data is fully adjusted. Parameters
zipline/data/data_portal.py:915
↓ 7 callersMethodget_scalar_asset_spot_value
Public API method that returns a scalar value representing the value of the desired asset's field at either the given dt. Pa
zipline/data/data_portal.py:539
↓ 7 callersMethodget_value
Retrieve the value at the given coordinates. Parameters ---------- sid : int The asset identifier.
zipline/data/bar_reader.py:101
↓ 7 callersMethodlookup_by_supplementary_field
(self, field_name, value, as_of_date)
zipline/assets/assets.py:1110
↓ 7 callersFunctionparse_extension_arg
Converts argument strings in key=value or key.namespace=value form to dictionary entries Parameters ---------- arg : str
zipline/extensions.py:31
↓ 7 callersMethodrand_mask
Build a block of random boolean data.
tests/pipeline/base.py:211
↓ 7 callersMethodresolve_domain
Resolve a concrete domain for ``pipeline``.
zipline/pipeline/engine.py:877
↓ 7 callersMethodroll_forward
Given a date, align it to the calendar of the pipeline's domain. Parameters ---------- dt : pd.Timestamp Re
zipline/pipeline/domain.py:77
↓ 7 callersFunctions
Adds a suffix to ``word`` if some sequence has anything other than exactly one element. Parameters ---------- word : str The
zipline/utils/formatting.py:1
↓ 7 callersMethodset_asset_restrictions
Set a restriction on which assets can be ordered. Parameters ---------- restricted_list : Restrictions An object
zipline/algorithm.py:2210
↓ 7 callersMethodset_screen
Set a screen on this Pipeline. Parameters ---------- filter : zipline.pipeline.Filter The filter to apply as a sc
zipline/pipeline/pipeline.py:155
↓ 7 callersMethodspearmanr
Construct a new Factor that computes rolling spearman rank correlation coefficients between ``target`` and the columns of ``self``.
zipline/pipeline/factors/factor.py:860
↓ 7 callersFunctiontest_resource_path
(*path_parts)
zipline/testing/core.py:1382
↓ 7 callersFunctionvectorized_beta
Compute slopes of linear regressions between columns of ``dependents`` and ``independent``. Parameters ---------- dependents : n
zipline/pipeline/factors/statistical.py:571
↓ 7 callersMethodverify_capital_used
(self, results, values)
tests/finance/test_commissions.py:535
↓ 7 callersFunctionwriteln
(f, s)
zipline/pipeline/visualize.py:171
↓ 7 callersMethodzscore
Construct a Factor that Z-Scores each day's results. The Z-Score of a row is defined as:: (row - row.mean()) / row.stdd
zipline/pipeline/factors/factor.py:669
← previousnext →101–200 of 4,252, ranked by callers