Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/quantopian/zipline
/ types & classes
Types & classes
1,004 in github.com/quantopian/zipline
⨍
Functions
4,252
◇
Types & classes
1,004
↳
Endpoints
31
↓ 219 callers
Class
range
Lazy range object with constant time containment check. The arguments are the same as ``range``.
zipline/utils/range.py:10
↓ 216 callers
Class
Timestamp
A click parameter that parses the value into pandas.Timestamp objects. Parameters ---------- tz : timezone-coercable, optional Th
zipline/utils/cli.py:61
↓ 127 callers
Class
Pipeline
A Pipeline object represents a collection of named expressions to be compiled and executed by a PipelineEngine. A Pipeline has two impor
zipline/pipeline/pipeline.py:16
↓ 97 callers
Class
Column
An abstract column of data, not yet associated with a dataset.
zipline/pipeline/data/dataset.py:39
↓ 64 callers
Class
LabelArray
An ndarray subclass for working with arrays of strings. Factorizes the input array into integers, but overloads equality on strings to c
zipline/lib/labelarray.py:91
↓ 52 callers
Class
F
tests/pipeline/test_factor.py:72
↓ 47 callers
Class
EquityCalendarDomain
An equity domain whose sessions are defined by a named TradingCalendar. Parameters ---------- country_code : str ISO-3166 tw
zipline/pipeline/domain.py:147
↓ 42 callers
Class
SomeFactor
tests/pipeline/test_term.py:71
↓ 30 callers
Class
Order
zipline/finance/order.py:41
↓ 27 callers
Class
Returns
Calculates the percent change in close price over the given window_length. **Default Inputs**: [EquityPricing.close]
zipline/pipeline/factors/basic.py:38
↓ 25 callers
Class
ExchangeInfo
An exchange where assets are traded. Parameters ---------- name : str or None The full name of the exchange, for example 'NEW YOR
zipline/assets/exchange_info.py:4
↓ 25 callers
Class
SimulationParameters
zipline/finance/trading.py:28
↓ 24 callers
Class
SimplePipelineEngine
PipelineEngine class that computes each term independently. Parameters ---------- get_loader : callable A function that is g
zipline/pipeline/engine.py:230
↓ 22 callers
Class
Argument
An argument to a function. Argument.no_default is a value representing no default to the argument. Argument.ignore is a value that says y
zipline/utils/argcheck.py:58
↓ 22 callers
Class
MarketOrder
Execution style for orders to be filled at current market price. This is the default for orders placed with :func:`~zipline.api.order`.
zipline/finance/execution.py:55
↓ 21 callers
Class
NumExprFactor
Factor computed from a numexpr expression. Parameters ---------- expr : string A string suitable for passing to numexpr. All
zipline/pipeline/factors/factor.py:1348
↓ 18 callers
Class
AdjustedArray
An array that can be iterated with a variable-length window, and which can provide different views on data from different perspectives.
zipline/lib/adjusted_array.py:181
↓ 17 callers
Class
C
tests/pipeline/test_classifier.py:31
↓ 17 callers
Class
Timedelta
A click parameter that parses values into pd.Timedelta objects. Parameters ---------- unit : {'D', 'h', 'm', 's', 'ms', 'us', 'ns'}, opti
zipline/utils/cli.py:106
↓ 17 callers
Class
tmp_asset_finder
Create a temporary asset finder using an in memory sqlite db. Parameters ---------- url : string The URL for the database connect
zipline/testing/core.py:835
↓ 16 callers
Class
MultipleOutputs
tests/pipeline/test_term.py:103
↓ 15 callers
Class
AssetExists
Pseudo-filter describing whether or not an asset existed on a given day. This is the default mask for all terms that haven't been passed a ma
zipline/pipeline/term.py:402
↓ 15 callers
Class
SimpleMovingAverage
Average Value of an arbitrary column **Default Inputs**: None **Default Window Length**: None
zipline/pipeline/factors/basic.py:99
↓ 15 callers
Class
SimulationBlotter
zipline/finance/blotter/simulation_blotter.py:43
↓ 14 callers
Class
BcolzMinuteBarReader
Reader for data written by BcolzMinuteBarWriter Parameters ---------- rootdir : string The root directory containing the met
zipline/data/minute_bars.py:887
↓ 13 callers
Class
DataFrameLoader
A PipelineLoader that reads its input from DataFrames. Mostly useful for testing, but can also be used for real work if your data fits i
zipline/pipeline/loaders/frame.py:32
↓ 13 callers
Class
Input
tests/pipeline/test_filter.py:575
↓ 13 callers
Class
Mask
tests/pipeline/test_factor.py:98
↓ 12 callers
Class
AssetIDPlusDay
zipline/testing/core.py:1597
↓ 12 callers
Class
DailyLedgerField
Like :class:`~zipline.finance.metrics.metric.SimpleLedgerField` but also puts the current value in the ``cumulative_perf`` section. Parameter
zipline/finance/metrics/metric.py:68
↓ 11 callers
Class
DataPortal
Interface to all of the data that a zipline simulation needs. This is used by the simulation runner to answer questions about the data, like
zipline/data/data_portal.py:100
↓ 10 callers
Class
Always
A rule that always triggers.
zipline/utils/events.py:330
↓ 10 callers
Class
BlazeLoader
A PipelineLoader for datasets constructed with ``from_blaze``. Parameters ---------- dsmap : mapping, optional An initial mapping
zipline/pipeline/loaders/blaze/core.py:810
↓ 10 callers
Class
EquitySessionDomain
A domain built directly from an index of sessions. Mostly useful for testing. Parameters ---------- sessions : pd.DatetimeIndex
zipline/pipeline/domain.py:374
↓ 10 callers
Class
FixedSlippage
Simple model assuming a fixed-size spread for all assets. Parameters ---------- spread : float, optional Size of the assumed
zipline/finance/slippage.py:341
↓ 10 callers
Class
LimitOrder
Execution style for orders to be filled at a price equal to or better than a specified limit price. Parameters ---------- limit_
zipline/finance/execution.py:72
↓ 10 callers
Class
NoRestrictions
A no-op restrictions that contains no restrictions.
zipline/finance/asset_restrictions.py:119
↓ 9 callers
Class
BcolzDailyBarReader
Reader for raw pricing data written by BcolzDailyOHLCVWriter. Parameters ---------- table : bcolz.ctable The ctable contanin
zipline/data/bcolz_daily_bars.py:376
↓ 9 callers
Class
C
tests/pipeline/test_factor.py:84
↓ 9 callers
Class
PerShare
Calculates a commission for a transaction based on a per share cost with an optional minimum cost per trade. Parameters ----------
zipline/finance/commission.py:144
↓ 9 callers
Class
SymbolNotFound
Raised when a symbol() call contains a non-existant symbol.
zipline/errors.py:345
↓ 8 callers
Class
ArrayPredicate
A filter applying a function from (ndarray, *args) -> ndarray[bool]. Parameters ---------- term : zipline.pipeline.Term Term
zipline/pipeline/filters/filter.py:553
↓ 8 callers
Class
AssetID
CustomFactor that returns the AssetID of each asset. Useful for providing a Factor that produces a different value for each asset.
zipline/testing/core.py:1583
↓ 8 callers
Class
BcolzDailyBarWriter
Class capable of writing daily OHLCV data to disk in a format that can be read efficiently by BcolzDailyOHLCVReader. Parameters ----
zipline/data/bcolz_daily_bars.py:117
↓ 8 callers
Class
F
tests/pipeline/test_term.py:519
↓ 8 callers
Class
HistoricalRestrictions
Historical restrictions stored in memory with effective dates for each asset. Parameters ---------- restrictions : iterable of n
zipline/finance/asset_restrictions.py:155
↓ 8 callers
Class
NotThisMethod
versioneer.py:419
↓ 8 callers
Class
NthTradingDayOfWeek
A rule that triggers on the nth trading day of the week. This is zero-indexed, n=0 is the first trading day of the week.
zipline/utils/events.py:500
↓ 8 callers
Class
RollingSumDifference
tests/pipeline/test_engine.py:97
↓ 8 callers
Class
SimpleBeta
Factor producing the slope of a regression line between each asset's daily returns to the daily returns of a single "target" asset. Para
zipline/pipeline/factors/statistical.py:484
↓ 8 callers
Class
SomeFactor
tests/pipeline/test_pipeline.py:23
↓ 8 callers
Class
UnsupportedDataType
Raised by CustomFactors with unsupported dtypes.
zipline/errors.py:698
↓ 8 callers
Class
mappingproxy
zipline/utils/compat.py:29
↓ 7 callers
Class
AfterOpen
A rule that triggers for some offset after the market opens. Example that triggers after 30 minutes of the market opening: >>> AfterOpen
zipline/utils/events.py:356
↓ 7 callers
Class
AllPresent
Pipeline filter indicating input term has data for a given window.
zipline/pipeline/filters/filter.py:681
↓ 7 callers
Class
AssetDBWriter
Class used to write data to an assets db. Parameters ---------- engine : Engine or str An SQLAlchemy engine or path to a SQL data
zipline/assets/asset_writer.py:446
↓ 7 callers
Class
AssetFinder
An AssetFinder is an interface to a database of Asset metadata written by an ``AssetDBWriter``. This class provides methods for looking
zipline/assets/assets.py:276
↓ 7 callers
Class
BcolzMinuteBarWriter
Class capable of writing minute OHLCV data to disk into bcolz format. Parameters ---------- rootdir : string Path to the roo
zipline/data/minute_bars.py:353
↓ 7 callers
Class
FixedBasisPointsSlippage
Model slippage as a fixed percentage difference from historical minutely close price, limiting the size of fills to a fixed percentage of his
zipline/finance/slippage.py:602
↓ 7 callers
Class
Floats
tests/pipeline/test_computable_term.py:19
↓ 7 callers
Class
PerContract
Calculates a commission for a transaction based on a per contract cost with an optional minimum cost per trade. Parameters ---------
zipline/finance/commission.py:190
↓ 7 callers
Class
SecurityListSet
zipline/utils/security_list.py:98
↓ 7 callers
Class
SomeFilter
tests/pipeline/test_filter.py:90
↓ 7 callers
Class
StaticRestrictions
Static restrictions stored in memory that are constant regardless of dt for each asset. Parameters ---------- restricted_list :
zipline/finance/asset_restrictions.py:129
↓ 7 callers
Class
SubClass
tests/utils/test_final.py:34
↓ 7 callers
Class
VolumeShareSlippage
Model slippage as a quadratic function of percentage of historical volume. Orders to buy will be filled at:: price * (1 + price_impa
zipline/finance/slippage.py:247
↓ 7 callers
Class
instance_of
An object that compares equal to any instance of a given type or types. Parameters ---------- types : type or tuple[type] The typ
zipline/testing/predicates.py:96
↓ 6 callers
Class
BenchmarkSource
zipline/sources/benchmark_source.py:25
↓ 6 callers
Class
Dates
tests/pipeline/test_computable_term.py:31
↓ 6 callers
Class
EventsLoader
Base class for PipelineLoaders that supports loading the next and previous value of an event field. Does not currently support adjustmen
zipline/pipeline/loaders/events.py:61
↓ 6 callers
Class
Ints
tests/pipeline/test_computable_term.py:67
↓ 6 callers
Class
MinuteResampleSessionBarReader
zipline/data/resample.py:513
↓ 6 callers
Class
MovingAverageConvergenceDivergenceSignal
Moving Average Convergence/Divergence (MACD) Signal line https://en.wikipedia.org/wiki/MACD A technical indicator originally developed b
zipline/pipeline/factors/technical.py:305
↓ 6 callers
Class
NextEarningsEstimatesLoader
zipline/pipeline/loaders/earnings_estimates.py:728
↓ 6 callers
Class
NoDataOnDate
Raised when a spot price cannot be found for the sid and date.
zipline/data/bar_reader.py:18
↓ 6 callers
Class
NotThisMethod
zipline/_version.py:46
↓ 6 callers
Class
PreviousEarningsEstimatesLoader
zipline/pipeline/loaders/earnings_estimates.py:787
↓ 6 callers
Class
RollingLinearRegressionOfReturns
Perform an ordinary least-squares regression predicting the returns of all other assets on the given asset. Parameters ----------
zipline/pipeline/factors/statistical.py:365
↓ 6 callers
Class
Strs
tests/pipeline/test_computable_term.py:53
↓ 6 callers
Class
Transaction
zipline/finance/transaction.py:24
↓ 6 callers
Class
VolatilityVolumeShare
Model slippage for futures contracts according to the following formula: new_price = price + (price * MI / 10000), where 'MI' is ma
zipline/finance/slippage.py:524
↓ 6 callers
Class
_RunAlgoError
Signal an error that should have a different message if invoked from the cli. Parameters ---------- pyfunc_msg : str The mess
zipline/utils/run_algo.py:37
↓ 5 callers
Class
BadBinaryOperator
Called when a bad binary operation is encountered. Parameters ---------- op : str The attempted operation left : zipline
zipline/pipeline/expression.py:106
↓ 5 callers
Class
BeforeClose
A rule that triggers for some offset time before the market closes. Example that triggers for the last 30 minutes every day: >>> BeforeC
zipline/utils/events.py:412
↓ 5 callers
Class
ExprData
A pair of expressions and data resources. The expressions will be computed using the resources as the starting scope. Parameters --------
zipline/pipeline/loaders/blaze/core.py:722
↓ 5 callers
Class
Foo
tests/utils/test_preprocess.py:169
↓ 5 callers
Class
MockDailyBarReader
zipline/testing/core.py:979
↓ 5 callers
Class
MyFactor
tests/pipeline/test_hooks.py:471
↓ 5 callers
Class
NamedExplodingObject
An object which has no attributes but produces a more informative error message when accessed. Parameters ---------- name : str
zipline/utils/exploding_object.py:1
↓ 5 callers
Class
Namespace
A placeholder object representing a namespace level
zipline/extensions.py:86
↓ 5 callers
Class
PerTrade
Calculates a commission for a transaction based on a per trade cost. For orders that require multiple fills, the full commission is charged
zipline/finance/commission.py:280
↓ 5 callers
Class
RSI
Relative Strength Index **Default Inputs**: :data:`zipline.pipeline.data.EquityPricing.close` **Default Window Length**: 15
zipline/pipeline/factors/technical.py:43
↓ 5 callers
Class
RollingPearsonOfReturns
Calculates the Pearson product-moment correlation coefficient of the returns of the given asset with the returns of all other assets. Pe
zipline/pipeline/factors/statistical.py:222
↓ 5 callers
Class
RollingSpearmanOfReturns
Calculates the Spearman rank correlation coefficient of the returns of the given asset with the returns of all other assets. Parameters
zipline/pipeline/factors/statistical.py:315
↓ 5 callers
Class
SomeOtherFactor
tests/pipeline/test_term.py:80
↓ 5 callers
Class
StopLimitOrder
Execution style representing a limit order to be placed if market price reaches a threshold. Parameters ---------- limit_price :
zipline/finance/execution.py:131
↓ 5 callers
Class
TrivialFactor
A CustomFactor that doesn't do any work. This is used to test that we correctly track date bounds in hooks in the presence of windowed c
tests/pipeline/test_hooks.py:29
↓ 5 callers
Class
UsesSlicedInput
tests/pipeline/test_slice.py:74
↓ 5 callers
Class
_WeakArgs
Works with _WeakArgsDict to provide a weak cache for function args. When any of those args are gc'd, the pair is removed from the cache.
zipline/utils/memoize.py:123
↓ 4 callers
Class
All
A Filter requiring that assets produce True for ``window_length`` consecutive days. **Default Inputs:** None **Default Window Lengt
zipline/pipeline/filters/smoothing.py:10
next →
1–100 of 1,004, ranked by callers