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
↓ 1 callers
Method
from_center_of_mass
Convenience constructor for passing `decay_rate` in terms of center of mass. Forwards `decay_rate` as `1 - (1 / 1 + center_o
zipline/pipeline/factors/basic.py:320
↓ 1 callers
Method
from_halflife
Convenience constructor for passing ``decay_rate`` in terms of half life. Forwards ``decay_rate`` as ``exp(log(.5) / halflif
zipline/pipeline/factors/basic.py:275
↓ 1 callers
Method
from_panel
Helper for construction from a pandas.Panel.
zipline/data/in_memory_daily_bars.py:56
↓ 1 callers
Method
from_returns
(cls, benchmark_returns)
zipline/utils/run_algo.py:464
↓ 1 callers
Method
from_span
Convenience constructor for passing `decay_rate` in terms of `span`. Forwards `decay_rate` as `1 - (2.0 / (1 + span))`. This provid
zipline/pipeline/factors/basic.py:229
↓ 1 callers
Function
from_tuple
Convert a tuple into a range with error handling. Parameters ---------- tup : tuple (len 2 or 3) The tuple to turn into a range.
zipline/utils/range.py:151
↓ 1 callers
Function
function_application
Factory function for producing function application methods for Factor subclasses.
zipline/pipeline/factors/factor.py:326
↓ 1 callers
Function
gen_asset_metadata
(data, show_progress)
zipline/data/bundles/quandl.py:116
↓ 1 callers
Function
gen_date_interleavings
()
tests/pipeline/test_events.py:134
↓ 1 callers
Method
get_adjustments_for_sid
Parameters ---------- group : pd.DataFrame The data for the given sid. dates : pd.DatetimeIndex
zipline/pipeline/loaders/earnings_estimates.py:355
↓ 1 callers
Function
get_config
()
zipline/_version.py:33
↓ 1 callers
Method
get_current
Get a Panel that is the current data in view. It is not safe to persist these objects because internal data might change
zipline/utils/data.py:294
↓ 1 callers
Method
get_df_from_table
(self, table_name, convert_dates=False)
zipline/data/adjustments.py:291
↓ 1 callers
Method
get_dividends_with_ex_date
(self, assets, date, asset_finder)
zipline/data/adjustments.py:221
↓ 1 callers
Function
get_early_closes
(start, end)
zipline/utils/tradingcalendar.py:283
↓ 1 callers
Method
get_expected_estimate
(self, q1_knowledge, q2_knowledge,
tests/pipeline/test_quarters_estimates.py:578
↓ 1 callers
Method
get_expected_fx_rates
Get an array of expected FX rates for the given indices.
zipline/testing/fixtures.py:2227
↓ 1 callers
Method
get_expected_fx_rates_columnar
(cls, rate, quote, bases, dts)
zipline/testing/fixtures.py:2241
↓ 1 callers
Method
get_hash
(self)
zipline/sources/requests_csv.py:193
↓ 1 callers
Function
get_immediate_subdirectories
(a_dir)
ci/make_conda_packages.py:6
↓ 1 callers
Function
get_keywords
()
zipline/_version.py:18
↓ 1 callers
Method
get_last_data_per_qtr
Determine the last piece of information we know for each column on each date in the index for each sid and quarter. Paramete
zipline/pipeline/loaders/earnings_estimates.py:667
↓ 1 callers
Method
get_last_traded_dt
(self, sid, dt)
zipline/data/resample.py:645
↓ 1 callers
Method
get_last_traded_dt
Get the latest minute on or before ``dt`` in which ``asset`` traded. If there are no trades on or before ``dt``, returns ``pd.NaT``.
zipline/data/continuous_future_reader.py:344
↓ 1 callers
Method
get_last_traded_dt
Get the latest day on or before ``dt`` in which ``asset`` traded. If there are no trades on or before ``dt``, returns ``pd.NaT``.
zipline/data/hdf5_daily_bars.py:818
↓ 1 callers
Function
get_next_trading_dt
(current, interval, trading_calendar)
zipline/utils/factory.py:68
↓ 1 callers
Function
get_non_trading_days
(start, end)
zipline/utils/tradingcalendar.py:54
↓ 1 callers
Function
get_open_and_closes
(trading_days, early_closes, get_open_and_close)
zipline/utils/tradingcalendar.py:415
↓ 1 callers
Method
get_position_list
(self)
zipline/finance/ledger.py:254
↓ 1 callers
Method
get_positions
(self)
zipline/finance/ledger.py:244
↓ 1 callers
Method
get_requested_quarter_data
Selects the requested data for each date. Parameters ---------- zero_qtr_data : pd.DataFrame The 'time z
zipline/pipeline/loaders/earnings_estimates.py:190
↓ 1 callers
Method
get_shifted_qtrs
(self, zero_qtrs, num_announcements)
zipline/pipeline/loaders/earnings_estimates.py:170
↓ 1 callers
Method
get_sid_attr
(self, sid, name)
zipline/data/minute_bars.py:1090
↓ 1 callers
Method
get_simulated_impact
Calculate simulated price impact. Parameters ---------- order : The order being processed. current_price : C
zipline/finance/slippage.py:406
↓ 1 callers
Method
get_split_adjusted_asof_idx
Compute the index in `dates` where the split-adjusted-asof-date falls. This is the date up to which, and including which, we will
zipline/pipeline/loaders/earnings_estimates.py:255
↓ 1 callers
Method
get_spot_value
(self, asset, field, dt, data_frequency)
zipline/testing/core.py:710
↓ 1 callers
Method
get_stock_dividends
Returns all the stock dividends for a specific sid that occur in the given trading range. Parameters ----------
zipline/data/data_portal.py:1192
↓ 1 callers
Method
get_stock_dividends_with_ex_date
(self, assets, date, asset_finder)
zipline/data/adjustments.py:243
↓ 1 callers
Function
get_trading_days
(start, end, trading_day=trading_day)
zipline/utils/tradingcalendar.py:274
↓ 1 callers
Method
get_transactions
Creates a list of transactions based on the current open orders, slippage model, and commission model. Parameters --
zipline/finance/blotter/blotter.py:155
↓ 1 callers
Method
get_txn_volume
Return the number of shares we would like to order in this minute. Parameters ---------- data : BarData orde
zipline/finance/slippage.py:390
↓ 1 callers
Method
get_value
(self, sid, session, colname)
zipline/data/resample.py:571
↓ 1 callers
Method
get_value
Retrieve the value at the given coordinates. Parameters ---------- sid : int The asset identifier.
zipline/data/continuous_future_reader.py:313
↓ 1 callers
Method
get_value
Retrieve the value at the given coordinates. Parameters ---------- sid : int The asset identifier.
zipline/data/hdf5_daily_bars.py:770
↓ 1 callers
Function
get_versions
()
zipline/_version.py:419
↓ 1 callers
Method
get_zeroth_quarter_idx
(self, stacked_last_per_qtr)
zipline/pipeline/loaders/earnings_estimates.py:166
↓ 1 callers
Function
getattrs
Perform a chained application of ``getattr`` on ``value`` with the values in ``attrs``. If ``default`` is supplied, return it if any of
zipline/utils/functional.py:256
↓ 1 callers
Function
git_pieces_from_vcs
(tag_prefix, root, verbose, run_command=run_command)
zipline/_version.py:180
↓ 1 callers
Function
git_versions_from_keywords
(keywords, tag_prefix, verbose)
zipline/_version.py:135
↓ 1 callers
Method
global_instance
(cls)
zipline/pipeline/loaders/blaze/core.py:845
↓ 1 callers
Function
graph
(f, name, **attrs)
zipline/pipeline/visualize.py:60
↓ 1 callers
Method
graph_repr
(self)
zipline/pipeline/factors/statistical.py:548
↓ 1 callers
Function
group_ranges
Group any overlapping ranges into a single range. Parameters ---------- ranges : iterable[ranges] A sorted sequence of ranges to
zipline/utils/range.py:293
↓ 1 callers
Method
handle_commission
(self, asset, cost)
zipline/finance/ledger.py:108
↓ 1 callers
Function
handle_data
(algo, data)
zipline/examples/olmar.py:37
↓ 1 callers
Method
handle_data
(self, data)
zipline/test_algorithms.py:127
↓ 1 callers
Method
handle_data
Calls the callable only when the rule is triggered.
zipline/utils/events.py:232
↓ 1 callers
Method
handle_data
(context, data)
tests/metrics/test_metrics.py:1564
↓ 1 callers
Method
handle_extra_source
Extra sources always have a sid column. We expand the given data (by forward filling) to the full range of the simulation da
zipline/data/data_portal.py:324
↓ 1 callers
Method
handle_market_close
Handles the close of the given day. Parameters ---------- dt : Timestamp The most recently completed simulation d
zipline/finance/metrics/tracker.py:277
↓ 1 callers
Method
handle_market_open
Handles the start of each session. Parameters ---------- session_label : Timestamp The label of the session that
zipline/finance/metrics/tracker.py:245
↓ 1 callers
Method
handle_minute_close
Handles the close of the given minute in minute emission. Parameters ---------- dt : Timestamp The minut
zipline/finance/metrics/tracker.py:204
↓ 1 callers
Method
handle_simulation_end
When the simulation is complete, run the full period risk report and send it out on the results socket.
zipline/finance/metrics/tracker.py:330
↓ 1 callers
Method
has_label
(self, value)
zipline/lib/labelarray.py:266
↓ 1 callers
Method
has_no_default
(arg)
zipline/utils/argcheck.py:123
↓ 1 callers
Method
highs
The high field's aggregation returns the largest high seen between the market open and the current dt. If there has been no d
zipline/data/resample.py:239
↓ 1 callers
Method
ignore_default
(arg)
zipline/utils/argcheck.py:127
↓ 1 callers
Method
in_memory_reader_for_close
(self, close)
tests/data/test_adjustments.py:66
↓ 1 callers
Function
index_of_first_difference
Get the index of the first difference between two strings.
zipline/testing/predicates.py:824
↓ 1 callers
Method
init_class_fixtures
(cls)
tests/metrics/test_metrics.py:1334
↓ 1 callers
Method
init_class_fixtures
(cls)
tests/data/test_dispatch_bar_reader.py:256
↓ 1 callers
Method
init_class_fixtures
(cls)
tests/pipeline/test_pipeline_algo.py:150
↓ 1 callers
Method
init_class_fixtures
(cls)
tests/pipeline/test_international_markets.py:95
↓ 1 callers
Method
init_class_fixtures
(cls)
tests/pipeline/test_statistical.py:516
↓ 1 callers
Method
init_db
Connect to database and create tables. Parameters ---------- txn : sa.engine.Connection, optional The transaction
zipline/assets/asset_writer.py:875
↓ 1 callers
Method
init_engine
Construct and store a PipelineEngine from loader. If get_loader is None, constructs an ExplodingPipelineEngine
zipline/algorithm.py:415
↓ 1 callers
Method
init_instance_fixtures
(self)
zipline/testing/fixtures.py:223
↓ 1 callers
Method
initialize
Call self._initialize with `self` made available to Zipline API functions.
zipline/algorithm.py:430
↓ 1 callers
Method
inspect
Return a string representation of the data stored in this array.
zipline/lib/adjusted_array.py:320
↓ 1 callers
Function
install_requires
(conda_format=False)
setup.py:217
↓ 1 callers
Function
intersecting_ranges
Return any ranges that intersect. Parameters ---------- ranges : iterable[ranges] A sequence of ranges to check for intersections
zipline/utils/range.py:336
↓ 1 callers
Function
intervals_overlap
Check whether a pair of datetime intervals overlap. Parameters ---------- a : (pd.Timestamp, pd.Timestamp) b : (pd.Timestamp, pd
tests/pipeline/test_international_markets.py:465
↓ 1 callers
Function
invert
Invert a dictionary into a dictionary of sets. >>> invert({'a': 1, 'b': 2, 'c': 1}) # doctest: +SKIP {1: {'a', 'c'}, 2: {'b'}}
zipline/utils/functional.py:396
↓ 1 callers
Function
is_categorical
Do we represent this dtype with LabelArrays rather than ndarrays?
zipline/lib/adjusted_array.py:70
↓ 1 callers
Function
is_sorted_ascending
Check if a numpy array is sorted.
zipline/pipeline/loaders/utils.py:8
↓ 1 callers
Function
keysorted
Get the items from a dict, sorted by key. Example ------- >>> keysorted({'c': 1, 'b': 2, 'a': 3}) [('a', 3), ('b', 2), ('c', 1)]
zipline/utils/functional.py:412
↓ 1 callers
Function
keywords
Get the argument names of a function >>> def f(x, y=2): ... pass >>> keywords(f) ['x', 'y'] Notes ----- Taken from
zipline/testing/predicates.py:139
↓ 1 callers
Function
last_in_date_group
Determine the last piece of information known on each date in the date index for each group. Input df MUST be sorted such that the correct l
zipline/pipeline/loaders/utils.py:141
↓ 1 callers
Function
last_modified_time
Get the last modified time of path as a Timestamp.
zipline/utils/paths.py:78
↓ 1 callers
Function
load
Retrieves a custom class whose name is given. Parameters ---------- interface : type The base class for which to perform thi
zipline/extensions.py:179
↓ 1 callers
Method
load_adjusted_array
(self, domain, columns, dates, sids, mask)
zipline/pipeline/loaders/events.py:253
↓ 1 callers
Method
load_adjusted_array
(self, domain, columns, dates, sids, mask)
zipline/pipeline/loaders/blaze/estimates.py:95
↓ 1 callers
Method
load_df
(self)
zipline/sources/requests_csv.py:290
↓ 1 callers
Method
load_next_events
(self, domain, columns, dates,
zipline/pipeline/loaders/events.py:167
↓ 1 callers
Method
load_previous_events
(self, domain, columns,
zipline/pipeline/loaders/events.py:187
↓ 1 callers
Function
load_prices_from_csv
(filepath, identifier_col, tz='UTC')
zipline/data/loader.py:20
↓ 1 callers
Method
load_pricing_adjustments
Returns ------- adjustments : list[dict[int -> Adjustment]] A list, where each element corresponds to the `column
zipline/data/history_loader.py:172
↓ 1 callers
Method
load_raw_arrays
Parameters ---------- fields : list of str 'open', 'high', 'low', 'close', or 'volume' start_dt: Timestamp
zipline/data/continuous_future_reader.py:204
↓ 1 callers
Method
load_raw_arrays
Parameters ---------- columns : list of str 'open', 'high', 'low', 'close', or 'volume' start_date: Timest
zipline/data/hdf5_daily_bars.py:554
↓ 1 callers
Method
loading_terms
(self, terms)
zipline/pipeline/hooks/no.py:20
← previous
next →
1,101–1,200 of 4,252, ranked by callers