Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/quantopian/zipline
/ functions
Functions
4,252 in github.com/quantopian/zipline
⨍
Functions
4,252
◇
Types & classes
1,004
↳
Endpoints
31
↓ 12 callers
Function
merge
Merge two ranges with step == 1. Parameters ---------- a : range The first range. b : range The second range.
zipline/utils/range.py:259
↓ 12 callers
Function
normalize_date
Normalize datetime.datetime value to midnight. Returns datetime.date as a datetime.datetime at midnight Returns ----
zipline/utils/pandas_utils.py:21
↓ 12 callers
Method
run_algo
(self, code, sim_params=None)
tests/test_fetcher.py:113
↓ 12 callers
Method
to_dict
(self)
zipline/finance/order.py:83
↓ 11 callers
Method
_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 callers
Function
_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 callers
Function
coerce_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 callers
Method
demean
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 callers
Method
fail
Raise an AccountControlViolation with information about the failure.
zipline/finance/controls.py:389
↓ 11 callers
Method
get_open_orders
Retrieve all of the current open orders. Parameters ---------- asset : Asset If passed and not None, return only
zipline/algorithm.py:1918
↓ 11 callers
Method
get_value
(self, sid, dt, field)
zipline/data/resample.py:652
↓ 11 callers
Method
graph_repr
A short repr to use when rendering GraphViz graphs.
zipline/pipeline/term.py:389
↓ 11 callers
Method
if_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 callers
Method
last_date_in_output_for_sid
Parameters ---------- sid : int Asset identifier. Returns ------- out : pd.Timestamp
zipline/data/minute_bars.py:534
↓ 11 callers
Method
pearsonr
Construct a new Factor that computes rolling pearson correlation coefficients between ``target`` and the columns of ``self``.
zipline/pipeline/factors/factor.py:794
↓ 11 callers
Function
qualname
(ob)
tests/utils/test_preprocess.py:34
↓ 11 callers
Function
str_to_ts
(dt_str)
tests/test_bar_data.py:59
↓ 11 callers
Method
top
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 callers
Method
verify_per_unit_commissions
(self, model, commission_totals,
tests/finance/test_commissions.py:179
↓ 10 callers
Function
_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 callers
Method
alias
Make a term from ``self`` that names the expression. Parameters ---------- {name} Returns -------
zipline/pipeline/term.py:730
↓ 10 callers
Method
close
()
zipline/utils/pool.py:139
↓ 10 callers
Method
create_algo
(self, code, filename=None, sim_params=None)
tests/test_api_shim.py:186
↓ 10 callers
Method
domain
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 callers
Method
downsample
Make a term that computes from ``self`` at lower-than-daily frequency. Parameters ---------- {frequency}
zipline/pipeline/term.py:717
↓ 10 callers
Method
endswith
Elementwise endswith. Parameters ---------- suffix : str Returns ------- matches : np.ndarr
zipline/lib/labelarray.py:745
↓ 10 callers
Method
get
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 callers
Method
get_results
(self, algo_code)
tests/finance/test_commissions.py:360
↓ 10 callers
Method
is_missing
Like isnan, but checks for locations where we store missing values.
zipline/lib/labelarray.py:451
↓ 10 callers
Method
load_raw_arrays
(self, fields, start_dt, end_dt, sids)
zipline/data/resample.py:681
↓ 10 callers
Method
lookup_future_symbol
Lookup a future contract by symbol. Parameters ---------- symbol : str The symbol of the desired contract.
zipline/assets/assets.py:1082
↓ 10 callers
Method
make_engine
(self, loader=None)
tests/pipeline/test_quarters_estimates.py:161
↓ 10 callers
Method
randn_data
Build a block of random numerical data.
tests/pipeline/base.py:177
↓ 10 callers
Method
remove
(k, selfref=ref(self), dict_remove=dict_remove)
zipline/utils/memoize.py:129
↓ 10 callers
Method
transform
Main generator work loop.
zipline/gens/tradesimulation.py:97
↓ 10 callers
Method
unregister
(self, name)
zipline/extensions.py:143
↓ 9 callers
Function
QuartersEstimates
(announcements_out)
tests/pipeline/test_quarters_estimates.py:67
↓ 9 callers
Function
_ensure_index
(x)
zipline/utils/data.py:22
↓ 9 callers
Function
fill_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 callers
Method
future_symbol
Lookup a futures contract with a given symbol. Parameters ---------- symbol : str The symbol of the desired contr
zipline/algorithm.py:1137
↓ 9 callers
Method
get_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 callers
Method
handle_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 callers
Function
make_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 callers
Function
make_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 callers
Method
make_simparams
(cls, **overrides)
zipline/testing/fixtures.py:649
↓ 9 callers
Method
recursive_repr
Short repr used to render in recursive contexts.
zipline/pipeline/data/dataset.py:385
↓ 9 callers
Method
slice
Take a slice of a DataSetFamily to produce a dataset indexed by asset and date. Parameters ---------- *args *
zipline/pipeline/data/dataset.py:957
↓ 8 callers
Function
T
Helpful function to improve readibility.
tests/utils/test_date_utils.py:9
↓ 8 callers
Method
_publish
(self)
zipline/pipeline/hooks/progress.py:48
↓ 8 callers
Method
add_event
Adds an event to the manager.
zipline/utils/events.py:203
↓ 8 callers
Method
assert_all_restrictions
(self, rl, expected, dt)
tests/test_restrictions.py:52
↓ 8 callers
Method
asset_end
(self, asset_id)
tests/data/test_daily_bars.py:210
↓ 8 callers
Method
check_algo_succeeds
(self, algo, order_count=4)
tests/test_algorithm.py:2673
↓ 8 callers
Method
check_internal_consistency
(self, bar_data)
tests/test_bar_data.py:75
↓ 8 callers
Method
create
Helper for creating new NumExprFactors. This is just a wrapper around NumericalExpression.__new__ that always forwards `bool
zipline/pipeline/filters/filter.py:328
↓ 8 callers
Method
data_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 callers
Method
enter_instance_context
Enter a context manager that should be exited during tearDown.
zipline/testing/fixtures.py:235
↓ 8 callers
Function
expected_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 callers
Method
get_value
Retrieve the pricing info for the given sid, dt, and field. Parameters ---------- sid : int Asset identi
zipline/data/minute_bars.py:1099
↓ 8 callers
Method
history
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 callers
Function
isnat
Check if a value is np.NaT.
zipline/utils/numpy_utils.py:341
↓ 8 callers
Method
linear_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 callers
Function
minutes_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 callers
Method
record
Track and record values each day. Parameters ---------- **kwargs The names and values to record. Notes
zipline/algorithm.py:963
↓ 8 callers
Method
unspecialize
Unspecialize a column to its generic form. This is equivalent to ``column.specialize(GENERIC)``.
zipline/pipeline/data/dataset.py:268
↓ 7 callers
Method
__init__
(self, on_error)
zipline/finance/controls.py:295
↓ 7 callers
Method
__new__
(cls, term)
zipline/pipeline/filters/filter.py:361
↓ 7 callers
Function
_build_offset
Builds the offset argument for event rules.
zipline/utils/events.py:108
↓ 7 callers
Method
_check_read_results
(self, columns, assets, start_date, end_date)
tests/data/test_daily_bars.py:226
↓ 7 callers
Function
_qualified_name
Return the fully-qualified name (ignoring inner classes) of a type.
zipline/utils/input_validation.py:33
↓ 7 callers
Method
_test_id
(self, df, dshape, expected, finder, add)
tests/pipeline/test_blaze.py:778
↓ 7 callers
Function
add_new_adjustments
(adjustments_dict, adjustments, column_name,
zipline/pipeline/loaders/earnings_estimates.py:95
↓ 7 callers
Method
asset_start
(self, asset_id)
tests/data/test_daily_bars.py:207
↓ 7 callers
Method
calendar_days_between
(cls, start_date, end_date, shift=0)
tests/pipeline/test_us_equity_pricing_loader.py:316
↓ 7 callers
Method
create_new
(self, start_session, end_session, data_frequency=None)
zipline/finance/trading.py:139
↓ 7 callers
Method
currency_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 callers
Method
current_securities
(self, dt)
tests/test_restrictions.py:232
↓ 7 callers
Function
empty_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 callers
Method
enter_class_context
Enter a context manager to be exited during the tearDownClass
zipline/testing/fixtures.py:174
↓ 7 callers
Method
f
(self)
tests/utils/test_final.py:55
↓ 7 callers
Method
format_callable
(self)
zipline/utils/argcheck.py:239
↓ 7 callers
Method
fx
Construct a currency-converted version of this column. Parameters ---------- currency : str or zipline.currency.Curr
zipline/pipeline/data/dataset.py:277
↓ 7 callers
Method
get_adjustments_for_sid
(self, table_name, sid)
zipline/data/adjustments.py:209
↓ 7 callers
Method
get_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 callers
Method
get_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 callers
Method
get_value
Retrieve the value at the given coordinates. Parameters ---------- sid : int The asset identifier.
zipline/data/bar_reader.py:101
↓ 7 callers
Method
lookup_by_supplementary_field
(self, field_name, value, as_of_date)
zipline/assets/assets.py:1110
↓ 7 callers
Function
parse_extension_arg
Converts argument strings in key=value or key.namespace=value form to dictionary entries Parameters ---------- arg : str
zipline/extensions.py:31
↓ 7 callers
Method
rand_mask
Build a block of random boolean data.
tests/pipeline/base.py:211
↓ 7 callers
Method
resolve_domain
Resolve a concrete domain for ``pipeline``.
zipline/pipeline/engine.py:877
↓ 7 callers
Method
roll_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 callers
Function
s
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 callers
Method
set_asset_restrictions
Set a restriction on which assets can be ordered. Parameters ---------- restricted_list : Restrictions An object
zipline/algorithm.py:2210
↓ 7 callers
Method
set_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 callers
Method
spearmanr
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 callers
Function
test_resource_path
(*path_parts)
zipline/testing/core.py:1382
↓ 7 callers
Function
vectorized_beta
Compute slopes of linear regressions between columns of ``dependents`` and ``independent``. Parameters ---------- dependents : n
zipline/pipeline/factors/statistical.py:571
↓ 7 callers
Method
verify_capital_used
(self, results, values)
tests/finance/test_commissions.py:535
↓ 7 callers
Function
writeln
(f, s)
zipline/pipeline/visualize.py:171
↓ 7 callers
Method
zscore
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
← previous
next →
101–200 of 4,252, ranked by callers