MCPcopy Create free account

hub / github.com/quantopian/zipline / functions

Functions4,252 in github.com/quantopian/zipline

↓ 1 callersMethodfrom_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 callersMethodfrom_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 callersMethodfrom_panel
Helper for construction from a pandas.Panel.
zipline/data/in_memory_daily_bars.py:56
↓ 1 callersMethodfrom_returns
(cls, benchmark_returns)
zipline/utils/run_algo.py:464
↓ 1 callersMethodfrom_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 callersFunctionfrom_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 callersFunctionfunction_application
Factory function for producing function application methods for Factor subclasses.
zipline/pipeline/factors/factor.py:326
↓ 1 callersFunctiongen_asset_metadata
(data, show_progress)
zipline/data/bundles/quandl.py:116
↓ 1 callersFunctiongen_date_interleavings
()
tests/pipeline/test_events.py:134
↓ 1 callersMethodget_adjustments_for_sid
Parameters ---------- group : pd.DataFrame The data for the given sid. dates : pd.DatetimeIndex
zipline/pipeline/loaders/earnings_estimates.py:355
↓ 1 callersFunctionget_config
()
zipline/_version.py:33
↓ 1 callersMethodget_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 callersMethodget_df_from_table
(self, table_name, convert_dates=False)
zipline/data/adjustments.py:291
↓ 1 callersMethodget_dividends_with_ex_date
(self, assets, date, asset_finder)
zipline/data/adjustments.py:221
↓ 1 callersFunctionget_early_closes
(start, end)
zipline/utils/tradingcalendar.py:283
↓ 1 callersMethodget_expected_estimate
(self, q1_knowledge, q2_knowledge,
tests/pipeline/test_quarters_estimates.py:578
↓ 1 callersMethodget_expected_fx_rates
Get an array of expected FX rates for the given indices.
zipline/testing/fixtures.py:2227
↓ 1 callersMethodget_expected_fx_rates_columnar
(cls, rate, quote, bases, dts)
zipline/testing/fixtures.py:2241
↓ 1 callersMethodget_hash
(self)
zipline/sources/requests_csv.py:193
↓ 1 callersFunctionget_immediate_subdirectories
(a_dir)
ci/make_conda_packages.py:6
↓ 1 callersFunctionget_keywords
()
zipline/_version.py:18
↓ 1 callersMethodget_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 callersMethodget_last_traded_dt
(self, sid, dt)
zipline/data/resample.py:645
↓ 1 callersMethodget_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 callersMethodget_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 callersFunctionget_next_trading_dt
(current, interval, trading_calendar)
zipline/utils/factory.py:68
↓ 1 callersFunctionget_non_trading_days
(start, end)
zipline/utils/tradingcalendar.py:54
↓ 1 callersFunctionget_open_and_closes
(trading_days, early_closes, get_open_and_close)
zipline/utils/tradingcalendar.py:415
↓ 1 callersMethodget_position_list
(self)
zipline/finance/ledger.py:254
↓ 1 callersMethodget_positions
(self)
zipline/finance/ledger.py:244
↓ 1 callersMethodget_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 callersMethodget_shifted_qtrs
(self, zero_qtrs, num_announcements)
zipline/pipeline/loaders/earnings_estimates.py:170
↓ 1 callersMethodget_sid_attr
(self, sid, name)
zipline/data/minute_bars.py:1090
↓ 1 callersMethodget_simulated_impact
Calculate simulated price impact. Parameters ---------- order : The order being processed. current_price : C
zipline/finance/slippage.py:406
↓ 1 callersMethodget_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 callersMethodget_spot_value
(self, asset, field, dt, data_frequency)
zipline/testing/core.py:710
↓ 1 callersMethodget_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 callersMethodget_stock_dividends_with_ex_date
(self, assets, date, asset_finder)
zipline/data/adjustments.py:243
↓ 1 callersFunctionget_trading_days
(start, end, trading_day=trading_day)
zipline/utils/tradingcalendar.py:274
↓ 1 callersMethodget_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 callersMethodget_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 callersMethodget_value
(self, sid, session, colname)
zipline/data/resample.py:571
↓ 1 callersMethodget_value
Retrieve the value at the given coordinates. Parameters ---------- sid : int The asset identifier.
zipline/data/continuous_future_reader.py:313
↓ 1 callersMethodget_value
Retrieve the value at the given coordinates. Parameters ---------- sid : int The asset identifier.
zipline/data/hdf5_daily_bars.py:770
↓ 1 callersFunctionget_versions
()
zipline/_version.py:419
↓ 1 callersMethodget_zeroth_quarter_idx
(self, stacked_last_per_qtr)
zipline/pipeline/loaders/earnings_estimates.py:166
↓ 1 callersFunctiongetattrs
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 callersFunctiongit_pieces_from_vcs
(tag_prefix, root, verbose, run_command=run_command)
zipline/_version.py:180
↓ 1 callersFunctiongit_versions_from_keywords
(keywords, tag_prefix, verbose)
zipline/_version.py:135
↓ 1 callersMethodglobal_instance
(cls)
zipline/pipeline/loaders/blaze/core.py:845
↓ 1 callersFunctiongraph
(f, name, **attrs)
zipline/pipeline/visualize.py:60
↓ 1 callersMethodgraph_repr
(self)
zipline/pipeline/factors/statistical.py:548
↓ 1 callersFunctiongroup_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 callersMethodhandle_commission
(self, asset, cost)
zipline/finance/ledger.py:108
↓ 1 callersFunctionhandle_data
(algo, data)
zipline/examples/olmar.py:37
↓ 1 callersMethodhandle_data
(self, data)
zipline/test_algorithms.py:127
↓ 1 callersMethodhandle_data
Calls the callable only when the rule is triggered.
zipline/utils/events.py:232
↓ 1 callersMethodhandle_data
(context, data)
tests/metrics/test_metrics.py:1564
↓ 1 callersMethodhandle_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 callersMethodhandle_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 callersMethodhandle_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 callersMethodhandle_minute_close
Handles the close of the given minute in minute emission. Parameters ---------- dt : Timestamp The minut
zipline/finance/metrics/tracker.py:204
↓ 1 callersMethodhandle_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 callersMethodhas_label
(self, value)
zipline/lib/labelarray.py:266
↓ 1 callersMethodhas_no_default
(arg)
zipline/utils/argcheck.py:123
↓ 1 callersMethodhighs
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 callersMethodignore_default
(arg)
zipline/utils/argcheck.py:127
↓ 1 callersMethodin_memory_reader_for_close
(self, close)
tests/data/test_adjustments.py:66
↓ 1 callersFunctionindex_of_first_difference
Get the index of the first difference between two strings.
zipline/testing/predicates.py:824
↓ 1 callersMethodinit_class_fixtures
(cls)
tests/metrics/test_metrics.py:1334
↓ 1 callersMethodinit_class_fixtures
(cls)
tests/data/test_dispatch_bar_reader.py:256
↓ 1 callersMethodinit_class_fixtures
(cls)
tests/pipeline/test_pipeline_algo.py:150
↓ 1 callersMethodinit_class_fixtures
(cls)
tests/pipeline/test_international_markets.py:95
↓ 1 callersMethodinit_class_fixtures
(cls)
tests/pipeline/test_statistical.py:516
↓ 1 callersMethodinit_db
Connect to database and create tables. Parameters ---------- txn : sa.engine.Connection, optional The transaction
zipline/assets/asset_writer.py:875
↓ 1 callersMethodinit_engine
Construct and store a PipelineEngine from loader. If get_loader is None, constructs an ExplodingPipelineEngine
zipline/algorithm.py:415
↓ 1 callersMethodinit_instance_fixtures
(self)
zipline/testing/fixtures.py:223
↓ 1 callersMethodinitialize
Call self._initialize with `self` made available to Zipline API functions.
zipline/algorithm.py:430
↓ 1 callersMethodinspect
Return a string representation of the data stored in this array.
zipline/lib/adjusted_array.py:320
↓ 1 callersFunctioninstall_requires
(conda_format=False)
setup.py:217
↓ 1 callersFunctionintersecting_ranges
Return any ranges that intersect. Parameters ---------- ranges : iterable[ranges] A sequence of ranges to check for intersections
zipline/utils/range.py:336
↓ 1 callersFunctionintervals_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 callersFunctioninvert
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 callersFunctionis_categorical
Do we represent this dtype with LabelArrays rather than ndarrays?
zipline/lib/adjusted_array.py:70
↓ 1 callersFunctionis_sorted_ascending
Check if a numpy array is sorted.
zipline/pipeline/loaders/utils.py:8
↓ 1 callersFunctionkeysorted
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 callersFunctionkeywords
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 callersFunctionlast_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 callersFunctionlast_modified_time
Get the last modified time of path as a Timestamp.
zipline/utils/paths.py:78
↓ 1 callersFunctionload
Retrieves a custom class whose name is given. Parameters ---------- interface : type The base class for which to perform thi
zipline/extensions.py:179
↓ 1 callersMethodload_adjusted_array
(self, domain, columns, dates, sids, mask)
zipline/pipeline/loaders/events.py:253
↓ 1 callersMethodload_adjusted_array
(self, domain, columns, dates, sids, mask)
zipline/pipeline/loaders/blaze/estimates.py:95
↓ 1 callersMethodload_df
(self)
zipline/sources/requests_csv.py:290
↓ 1 callersMethodload_next_events
(self, domain, columns, dates,
zipline/pipeline/loaders/events.py:167
↓ 1 callersMethodload_previous_events
(self, domain, columns,
zipline/pipeline/loaders/events.py:187
↓ 1 callersFunctionload_prices_from_csv
(filepath, identifier_col, tz='UTC')
zipline/data/loader.py:20
↓ 1 callersMethodload_pricing_adjustments
Returns ------- adjustments : list[dict[int -> Adjustment]] A list, where each element corresponds to the `column
zipline/data/history_loader.py:172
↓ 1 callersMethodload_raw_arrays
Parameters ---------- fields : list of str 'open', 'high', 'low', 'close', or 'volume' start_dt: Timestamp
zipline/data/continuous_future_reader.py:204
↓ 1 callersMethodload_raw_arrays
Parameters ---------- columns : list of str 'open', 'high', 'low', 'close', or 'volume' start_date: Timest
zipline/data/hdf5_daily_bars.py:554
↓ 1 callersMethodloading_terms
(self, terms)
zipline/pipeline/hooks/no.py:20
← previousnext →1,101–1,200 of 4,252, ranked by callers