Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/quantopian/zipline
/ functions
Functions
4,252 in github.com/quantopian/zipline
⨍
Functions
4,252
◇
Types & classes
1,004
↳
Endpoints
31
↓ 2 callers
Function
binary_operator
Factory function for making binary operator methods on a Filter subclass. Returns a function "binary_operator" suitable for implementing fun
zipline/pipeline/filters/filter.py:61
↓ 2 callers
Function
build_ownership_map
Builds a dict mapping to lists of OwnershipPeriods, from a db table.
zipline/assets/assets.py:159
↓ 2 callers
Function
busday_count_mask_NaT
Simple of numpy.busday_count that returns `float` arrays rather than int arrays, and handles `NaT`s by returning `NaN`s where the inputs were
zipline/utils/numpy_utils.py:380
↓ 2 callers
Method
by_ds
(self)
tests/pipeline/test_engine.py:148
↓ 2 callers
Method
calculate_capital_changes
If there is a capital change for a given dt, this means the the change occurs before `handle_data` on the given dt. In the case of th
zipline/algorithm.py:679
↓ 2 callers
Function
calculate_per_unit_commission
If there is a minimum commission: If the order hasn't had a commission paid yet, pay the minimum commission. If the orde
zipline/finance/commission.py:105
↓ 2 callers
Function
can_represent_dtype
Can we build an AdjustedArray for a baseline of `dtype``?
zipline/lib/adjusted_array.py:63
↓ 2 callers
Method
cancel_all_orders_for_asset
Cancel all open orders for a given asset.
zipline/finance/blotter/simulation_blotter.py:177
↓ 2 callers
Function
check_dts
Validate that ``requested_dts`` are valid for querying from an FX reader.
zipline/data/fx/utils.py:4
↓ 2 callers
Method
check_metrics
confirm that the right number of riskmetrics were calculated for each window length.
tests/finance/test_risk.py:238
↓ 2 callers
Method
check_next_value_results
Check results for a single column.
tests/pipeline/test_events.py:532
↓ 2 callers
Method
check_previous_value_results
Check previous value results for a single column.
tests/pipeline/test_events.py:487
↓ 2 callers
Function
check_uint32_safe
(value, colname)
zipline/data/bcolz_daily_bars.py:61
↓ 2 callers
Method
clip
Clip (limit) the values in a factor. Given an interval, values outside the interval are clipped to the interval edges. For e
zipline/pipeline/factors/factor.py:1304
↓ 2 callers
Function
cluster
(f, name, **attrs)
zipline/pipeline/visualize.py:67
↓ 2 callers
Function
coerce_to_uint32
Returns a copy of the array as uint32, applying a scaling factor to maintain precision if supplied.
zipline/data/hdf5_daily_bars.py:165
↓ 2 callers
Method
collect_overwrites_for_sid
Given a sid, collect all overwrites that should be applied for this sid at each quarter boundary. Parameters -------
zipline/pipeline/loaders/earnings_estimates.py:282
↓ 2 callers
Function
compare_arrays
Eq check with a short-circuit for identical objects.
zipline/lib/labelarray.py:38
↓ 2 callers
Method
compare_with_empyrical
(self, dependents, independent)
tests/pipeline/test_statistical.py:928
↓ 2 callers
Method
compute
(self, today, assets, out, data)
zipline/pipeline/factors/basic.py:457
↓ 2 callers
Method
compute
(self, today, assets, out, returns, annualization_factor)
zipline/pipeline/factors/basic.py:491
↓ 2 callers
Method
compute
(self, today, assets, out, closes, lows, highs)
zipline/pipeline/factors/technical.py:159
↓ 2 callers
Method
compute_chunk
Compute the Pipeline terms in the graph for the requested start and end dates. This is where we do the actual work of runnin
zipline/pipeline/engine.py:586
↓ 2 callers
Method
compute_extra_rows
Calculate the number of extra rows needed to compute ``self``. Must return at least ``min_extra_rows``, and the default implementati
zipline/pipeline/term.py:326
↓ 2 callers
Method
contains
(self, asset, field)
zipline/data/data_portal.py:1239
↓ 2 callers
Method
create_fresh_generator
(self)
zipline/sources/test_source.py:148
↓ 2 callers
Function
create_trade
(sid, price, amount, datetime, source_id="test_factory")
zipline/sources/test_source.py:31
↓ 2 callers
Function
daily_equity_relative
(bundle_name, timestr)
zipline/data/bundles/core.py:77
↓ 2 callers
Method
determine_end_idx_for_adjustment
Determines the date until which the adjustment at the given date index should be applied for the given quarter. Parameters
zipline/pipeline/loaders/earnings_estimates.py:998
↓ 2 callers
Function
download_with_progress
Download streaming data from a URL, printing progress information to the terminal. Parameters ---------- url : str A URL
zipline/data/bundles/quandl.py:252
↓ 2 callers
Function
download_without_progress
Download data from a URL, returning a BytesIO containing the loaded data. Parameters ---------- url : str A URL that can be
zipline/data/bundles/quandl.py:285
↓ 2 callers
Function
dzip_exact
Parameters ---------- *dicts : iterable[dict] A sequence of dicts all sharing the same keys. Returns ------- zipped
zipline/utils/functional.py:113
↓ 2 callers
Function
end_graph
(f)
zipline/pipeline/visualize.py:55
↓ 2 callers
Method
end_of_bar
(self, packet, ledger, dt, session
zipline/finance/metrics/metric.py:279
↓ 2 callers
Method
end_of_session
(self, packet, ledger, session,
zipline/finance/metrics/metric.py:287
↓ 2 callers
Method
ensure_dir
Ensures a subdirectory of the working directory. Parameters ---------- path_parts : iterable[str] The parts of th
zipline/utils/cache.py:358
↓ 2 callers
Function
error_message
(func, argname, value)
zipline/utils/input_validation.py:268
↓ 2 callers
Method
execution_order
Return a topologically-sorted list of the terms in ``self`` which need to be computed. Filters out any terms that are alread
zipline/pipeline/graph.py:115
↓ 2 callers
Function
expected_bar_value
Check that the raw value for an asset/date/column triple is as expected. Used by tests to verify data written by a writer.
zipline/pipeline/loaders/synthetic.py:319
↓ 2 callers
Method
expected_close
(self, date, asset)
tests/pipeline/test_pipeline_algo.py:212
↓ 2 callers
Function
explode
Take a DataFrame and return a triple of (df.index, df.columns, df.values)
zipline/utils/pandas_utils.py:39
↓ 2 callers
Method
f
()
tests/utils/test_metautils.py:14
↓ 2 callers
Function
filter_kwargs
Return a dict of valid kwargs for `f` from a subset of `kwargs` Examples -------- >>> def f(a, b=1, c=2): ... return a + b + c
zipline/testing/predicates.py:159
↓ 2 callers
Function
find_in_sorted_index
Find the index of ``dt`` in ``dts``. This function should be used instead of `dts.get_loc(dt)` if the index is large enough that we don'
zipline/utils/pandas_utils.py:114
↓ 2 callers
Method
finish
(self, success)
zipline/pipeline/hooks/progress.py:253
↓ 2 callers
Function
flatten_list
(list)
zipline/testing/core.py:124
↓ 2 callers
Method
format_adjustments
Build a dict of Adjustment objects in the format expected by AdjustedArray. Returns a dict of the form: {
zipline/pipeline/loaders/frame.py:83
↓ 2 callers
Function
format_metadata_url
Build the query URL for Quandl WIKI Prices metadata.
zipline/data/bundles/quandl.py:27
↓ 2 callers
Method
from_lookback_window
(cls, initial_message, first_date,
zipline/errors.py:721
↓ 2 callers
Method
from_path
Construct from a file path. Parameters ---------- path : str Path to an HDF5 fx rates file. defa
zipline/data/fx/hdf5.py:142
↓ 2 callers
Method
g
()
tests/utils/test_metautils.py:27
↓ 2 callers
Function
gen_equivalent_factors
Return an iterator of SomeFactor instances that should all be the same object.
tests/pipeline/test_term.py:125
↓ 2 callers
Method
get_adjustments
Creates an AdjustedArray from the given estimates data for the given dates. Parameters ---------- zero_qtr_d
zipline/pipeline/loaders/earnings_estimates.py:431
↓ 2 callers
Function
get_algo_instance
()
zipline/utils/algo_instance.py:19
↓ 2 callers
Function
get_benchmark_returns_from_file
Get a Series of benchmark returns from a file Parameters ---------- filelike : str or file-like object Path to the benchmark
zipline/data/benchmarks.py:22
↓ 2 callers
Method
get_environment
Query the execution environment. Parameters ---------- field : {'platform', 'arena', 'data_frequency', 'star
zipline/algorithm.py:732
↓ 2 callers
Method
get_limit_price
(self, _is_buy)
zipline/finance/execution.py:65
↓ 2 callers
Method
get_limit_price
(self, is_buy)
zipline/finance/execution.py:90
↓ 2 callers
Method
get_limit_price
(self, is_buy)
zipline/finance/execution.py:155
↓ 2 callers
Function
get_loader
(column)
zipline/testing/core.py:1096
↓ 2 callers
Function
get_materialized_checkpoints
Computes a lower bound and a DataFrame checkpoints. Parameters ---------- checkpoints : Expr Bound blaze expression for a ch
zipline/pipeline/loaders/blaze/core.py:1087
↓ 2 callers
Method
get_range
Look up the returns for a given period. Parameters ---------- start_dt : datetime The inclusive start label.
zipline/sources/benchmark_source.py:98
↓ 2 callers
Method
get_rates_columnar
Load a 1D array of FX rates. Parameters ---------- rate : str Name of the rate to load. quote :
zipline/data/fx/base.py:116
↓ 2 callers
Method
get_sids
(cls)
tests/pipeline/test_quarters_estimates.py:149
↓ 2 callers
Method
get_splits
Returns any splits for the given sids and the given dt. Parameters ---------- assets : container Assets
zipline/data/data_portal.py:1158
↓ 2 callers
Method
get_stop_price
(self, _is_buy)
zipline/finance/execution.py:68
↓ 2 callers
Method
get_stop_price
(self, _is_buy)
zipline/finance/execution.py:97
↓ 2 callers
Method
get_stop_price
(self, is_buy)
zipline/finance/execution.py:162
↓ 2 callers
Method
group_by_type
Group a list of sids by asset type. Parameters ---------- sids : list[int] Returns -------
zipline/assets/assets.py:448
↓ 2 callers
Method
h5_file
(self, mode)
zipline/data/hdf5_daily_bars.py:236
↓ 2 callers
Method
handle_split
(self, ratio)
zipline/finance/order.py:183
↓ 2 callers
Method
handle_splits
Processes a list of splits by modifying any positions as needed. Parameters ---------- splits: list A list of spl
zipline/finance/ledger.py:114
↓ 2 callers
Method
handle_start_of_simulation
(self, benchmark_source)
zipline/finance/metrics/tracker.py:136
↓ 2 callers
Function
ingest
Ingest data for a given bundle. Parameters ---------- name : str The name of the bundle. environ : mappin
zipline/data/bundles/core.py:337
↓ 2 callers
Method
ingest
(self, environ, asset_db_writer, minute_bar_writer,
zipline/data/bundles/csvdir.py:69
↓ 2 callers
Function
ingestions_for_bundle
(bundle, environ=None)
zipline/data/bundles/core.py:124
↓ 2 callers
Method
init_class_fixtures
(cls)
tests/test_algorithm.py:2659
↓ 2 callers
Method
init_class_fixtures
(cls)
tests/test_bar_data.py:972
↓ 2 callers
Method
init_class_fixtures
(cls)
tests/data/test_daily_bars.py:157
↓ 2 callers
Method
init_class_fixtures
(cls)
tests/pipeline/test_events.py:158
↓ 2 callers
Method
init_instance_fixtures
(self)
tests/data/test_resample.py:758
↓ 2 callers
Method
initial_refcounts
Calculate initial refcounts for execution of this graph. Parameters ---------- initial_terms : iterable[Term]
zipline/pipeline/graph.py:163
↓ 2 callers
Function
iter_stdout
(cmd)
ci/make_conda_packages.py:11
↓ 2 callers
Function
load
Loads a previously ingested bundle. Parameters ---------- name : str The name of the bundle. environ : ma
zipline/data/bundles/core.py:493
↓ 2 callers
Method
load_adjusted_array
(self, domain, columns, dates, sids, mask)
tests/pipeline/test_engine.py:164
↓ 2 callers
Method
load_adjustments
Load collection of Adjustment objects from underlying adjustments db. Parameters ---------- dates : pd.DatetimeIndex
zipline/data/adjustments.py:142
↓ 2 callers
Function
load_data_table
Load data table from zip file provided by Quandl.
zipline/data/bundles/quandl.py:37
↓ 2 callers
Function
load_from_directory
To resolve the symbol in the LEVERAGED_ETF list, the date on which the symbol was in effect is needed. Furthermore, to maintain a point
zipline/utils/security_list.py:123
↓ 2 callers
Method
make_algo_kwargs
(self, **overrides)
zipline/testing/fixtures.py:2043
↓ 2 callers
Method
make_data_portal
(self)
zipline/testing/fixtures.py:1899
↓ 2 callers
Method
make_equity_minute_bar_data
(cls)
zipline/testing/fixtures.py:1354
↓ 2 callers
Function
make_events
Every event has at least three pieces of data associated with it: 1. sid : The ID of the asset associated with the event. 2. event_date
tests/pipeline/test_events.py:110
↓ 2 callers
Method
make_events
(cls)
tests/pipeline/test_quarters_estimates.py:145
↓ 2 callers
Method
make_future_minute_bar_data
(cls)
zipline/testing/fixtures.py:1414
↓ 2 callers
Function
make_jagged_equity_info
Create a DataFrame representing assets that all begin at the same start date, but have cascading end dates. Parameters ----------
zipline/assets/synthetic.py:156
↓ 2 callers
Method
make_order
(self, amount)
tests/test_testing.py:149
↓ 2 callers
Function
make_param_sets
()
zipline/testing/core.py:1198
↓ 2 callers
Function
make_seeded_random_loader
Make a PipelineLoader that emits random arrays seeded with `seed` for the columns in ``TestingDataSet``.
zipline/pipeline/loaders/testing.py:16
↓ 2 callers
Function
make_trade_data_for_asset_info
Convert the asset info dataframe into a dataframe of trade data for each sid, and write to the writer if provided. Write NaNs for locations w
zipline/testing/core.py:294
↓ 2 callers
Function
mangle
(name)
zipline/utils/preprocess.py:155
← previous
next →
601–700 of 4,252, ranked by callers