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
↓ 4 callers
Function
_dt_to_epoch_ns
Convert a timeseries into an Int64Index of nanoseconds since the epoch. Parameters ---------- dt_series : pd.Series The timeserie
zipline/assets/asset_writer.py:370
↓ 4 callers
Method
_ensure_reader_aligned
(self, reader)
zipline/data/data_portal.py:300
↓ 4 callers
Method
_open_minute_file
(self, field, sid)
zipline/data/minute_bars.py:1070
↓ 4 callers
Method
_read_scaling_factor
(self, field)
zipline/data/hdf5_daily_bars.py:551
↓ 4 callers
Function
_register_assert_equal_wrapper
Register a new check for an ndframe object. Parameters ---------- type_ : type The class to register an ``assert_equal`` dispatch
zipline/testing/predicates.py:624
↓ 4 callers
Function
_safe_cls_name
(cls)
zipline/testing/predicates.py:219
↓ 4 callers
Method
_test_equity_calendar_domain
(self, domain, expected_cutoff_time,
tests/pipeline/test_domain.py:345
↓ 4 callers
Method
_validate
(self)
zipline/pipeline/mixins.py:266
↓ 4 callers
Function
add_security_data
(adds, deletes)
zipline/testing/core.py:196
↓ 4 callers
Method
assert_is_restricted
(self, rl, asset, dt)
tests/test_restrictions.py:46
↓ 4 callers
Method
assert_many_restrictions
(self, rl, assets, expected, dt)
tests/test_restrictions.py:55
↓ 4 callers
Function
asymmetric_round_price
Asymmetric rounding function for adjusting prices to the specified number of places in a way that "improves" the price. For limit prices, thi
zipline/finance/execution.py:170
↓ 4 callers
Method
calculate
(self, order, transaction)
tests/finance/test_commissions.py:96
↓ 4 callers
Function
canonicalize_datetime
(dt)
zipline/utils/tradingcalendar.py:48
↓ 4 callers
Function
categorical_df_concat
Prepare list of pandas DataFrames to be used as input to pd.concat. Ensure any columns of type 'category' have the same categories across eac
zipline/utils/pandas_utils.py:247
↓ 4 callers
Function
check_allclose
Wrapper around np.testing.assert_allclose that also verifies that inputs are ndarrays. See Also -------- np.assert_allclose
zipline/testing/core.py:343
↓ 4 callers
Method
check_fails
(self, inputs, expected_domains)
tests/pipeline/test_domain.py:265
↓ 4 callers
Method
check_roundtrip
(arr)
tests/test_labelarray.py:410
↓ 4 callers
Function
check_stoplimit_prices
Check to make sure the stop/limit prices are reasonable and raise a BadOrderParameters exception if not.
zipline/finance/execution.py:207
↓ 4 callers
Method
component_dataframes
(self, convert_dates=True)
tests/data/test_adjustments.py:42
↓ 4 callers
Method
compute
(self, today, assets, out, closes)
zipline/pipeline/factors/technical.py:55
↓ 4 callers
Method
create
(cls, column, window_length)
tests/pipeline/test_domain.py:78
↓ 4 callers
Function
create_args
Encapsulates a set of custom command line arguments in key=value or key.namespace=value form into a chain of Namespace objects, where eac
zipline/extensions.py:6
↓ 4 callers
Method
create_df_for_asset
(cls, start_day, end_day, interval=1, force_zeroes=False)
tests/test_history.py:1703
↓ 4 callers
Method
create_domain
(self, sessions, data_query_time=time(0, 0, tzinfo=pytz.utc),
tests/pipeline/test_blaze.py:123
↓ 4 callers
Method
deciles
Construct a Classifier computing decile labels on ``self``. Every non-NaN data point the output is labelled with a value from 0 to
zipline/pipeline/factors/factor.py:1163
↓ 4 callers
Function
default_missing_value_for_dtype
Get the default fill value for `dtype`.
zipline/utils/numpy_utils.py:168
↓ 4 callers
Method
element_of
Check if each element of self is an of ``container``. Parameters ---------- container : object An object
zipline/lib/labelarray.py:797
↓ 4 callers
Method
every_day
Create a rule that triggers every day. Returns ------- rule : zipline.utils.events.EventRule
zipline/utils/events.py:621
↓ 4 callers
Method
execute_cancel_policy
(self, event)
zipline/finance/blotter/simulation_blotter.py:235
↓ 4 callers
Method
from_codes_and_metadata
Rehydrate a LabelArray from the codes and metadata. Parameters ---------- codes : np.ndarray[integral] T
zipline/lib/labelarray.py:199
↓ 4 callers
Method
from_file
Construct from an h5py.File and a country code. Parameters ---------- h5_file : h5py.File An HDF5 daily
zipline/data/hdf5_daily_bars.py:516
↓ 4 callers
Method
get_expected_fx_rate_scalar
Get the expected FX rate for the given scalar coordinates.
zipline/testing/fixtures.py:2206
↓ 4 callers
Method
get_last_traded_dt
Given an asset and dt, returns the last traded dt from the viewpoint of the given dt. If there is a trade on the dt, the ans
zipline/data/data_portal.py:399
↓ 4 callers
Function
get_registry
Getter method for retrieving the registry instance for a given extendable type Parameters ---------- interface : type ex
zipline/extensions.py:158
↓ 4 callers
Method
get_supplementary_field
Get the value of a supplementary field for an asset. Parameters ---------- sid : int The sid of the asset to quer
zipline/assets/assets.py:1145
↓ 4 callers
Method
get_transactions
Creates a list of transactions based on the current open orders, slippage model, and commission model. Parameters --
zipline/finance/blotter/simulation_blotter.py:306
↓ 4 callers
Function
group_into_chunks
(items, chunk_size=SQLITE_MAX_VARIABLE_NUMBER)
zipline/utils/sqlite_utils.py:27
↓ 4 callers
Function
ignore_pandas_nan_categorical_warning
()
zipline/utils/pandas_utils.py:210
↓ 4 callers
Function
infer_domain
Infer the domain from a collection of terms. The algorithm for inferring domains is as follows: - If all input terms have a domain of G
zipline/pipeline/domain.py:310
↓ 4 callers
Method
init_class_fixtures
(cls)
tests/finance/test_slippage.py:98
↓ 4 callers
Method
isfinite
A Filter producing True for values where this Factor is anything but NaN, inf, or -inf.
zipline/pipeline/factors/factor.py:1297
↓ 4 callers
Method
lifetimes
Compute a DataFrame representing asset lifetimes for the specified date range. Parameters ---------- dates :
zipline/assets/assets.py:1444
↓ 4 callers
Method
lookup_symbols
Lookup a list of equities by symbol. Equivalent to:: [finder.lookup_symbol(s, as_of, fuzzy) for s in symbols]
zipline/assets/assets.py:1021
↓ 4 callers
Function
make_check
Factory for making preprocessing functions that check a predicate on the input value. Parameters ---------- exc_type : Exception
zipline/utils/input_validation.py:416
↓ 4 callers
Function
make_kind_check
Make a function that checks whether a scalar or array is of a given kind (e.g. float, int, datetime, timedelta).
zipline/utils/numpy_utils.py:131
↓ 4 callers
Method
matches
(self, arg)
zipline/utils/argcheck.py:93
↓ 4 callers
Method
on_dt_changed
Callback triggered by the simulation loop whenever the current dt changes. Any logic that should happen exactly once at the
zipline/algorithm.py:1461
↓ 4 callers
Function
powerset
Return the power set (i.e., the set of all subsets) of entries in `values`.
zipline/testing/core.py:1037
↓ 4 callers
Method
process_order
(self, data, order)
tests/finance/test_slippage.py:119
↓ 4 callers
Method
quartiles
Construct a Classifier computing quartiles over the output of ``self``. Every non-NaN data point the output is labelled with a value
zipline/pipeline/factors/factor.py:1115
↓ 4 callers
Method
quintiles
Construct a Classifier computing quintile labels on ``self``. Every non-NaN data point the output is labelled with a value of either
zipline/pipeline/factors/factor.py:1139
↓ 4 callers
Method
reject
Mark the given order as 'rejected', which is functionally similar to cancelled. The distinction is that rejections are involuntary (a
zipline/finance/blotter/simulation_blotter.py:242
↓ 4 callers
Method
relabel
Convert ``self`` into a new classifier by mapping a function over each element produced by ``self``. Parameters ----
zipline/pipeline/classifiers/classifier.py:231
↓ 4 callers
Function
repeat_first_axis
Restride `array` to repeat `count` times along the first axis. Parameters ---------- array : np.array The array to restride.
zipline/utils/numpy_utils.py:180
↓ 4 callers
Function
run_command
(commands, args, cwd=None, verbose=False, hide_stderr=False)
versioneer.py:436
↓ 4 callers
Method
set_benchmark
Set the benchmark asset. Parameters ---------- benchmark : zipline.assets.Asset The asset to set as the new bench
zipline/algorithm.py:989
↓ 4 callers
Method
should_error
(self, f, exc_type, expected_message)
tests/pipeline/test_computable_term.py:243
↓ 4 callers
Method
show_graph
Render this Pipeline as a DAG. Parameters ---------- format : {'svg', 'png', 'jpeg'} Image format to ren
zipline/pipeline/pipeline.py:244
↓ 4 callers
Method
to_workspace_value
Called with a column of the result of a pipeline. This needs to put the data into a format that can be used in a workspace to continu
zipline/pipeline/term.py:690
↓ 4 callers
Method
verify_per_trade_commissions
(self, model, expected_commission,
tests/finance/test_commissions.py:59
↓ 4 callers
Method
write
Parameters ---------- data : iterable[tuple[int, pandas.DataFrame or bcolz.ctable]] The data chunks to write. Eac
zipline/data/bcolz_daily_bars.py:170
↓ 4 callers
Method
write
Write the OHLCV data for one country to the HDF5 file. Parameters ---------- country_code : str The ISO
zipline/data/hdf5_daily_bars.py:239
↓ 4 callers
Method
write_cols
Write the OHLCV data for the given sid. If there is no bcolz ctable yet created for the sid, create it. If the length of the
zipline/data/minute_bars.py:733
↓ 3 callers
Method
__new__
(cls, factor, method, ascending, mask)
zipline/pipeline/factors/factor.py:1501
↓ 3 callers
Method
_active_contract
(self, oc, front, back, dt)
zipline/assets/roll_finder.py:30
↓ 3 callers
Function
_build_date
Builds the date argument for event rules.
zipline/utils/events.py:127
↓ 3 callers
Method
_calculate_order_target_amount
(self, asset, target)
zipline/algorithm.py:1749
↓ 3 callers
Method
_calculate_order_value_amount
Calculates how many shares/contracts to order based on the type of asset being ordered.
zipline/algorithm.py:1157
↓ 3 callers
Function
_check_resources
Validate that the expression and resources passed match up. Parameters ---------- name : str The name of the argument we are chec
zipline/pipeline/loaders/blaze/core.py:352
↓ 3 callers
Function
_check_sets
Compare two sets. This is used to check dictionary keys and sets. Parameters ---------- result : set expected : set msg : str
zipline/testing/predicates.py:424
↓ 3 callers
Function
_encode_continuous_future_sid
(root_symbol, offset, roll_style,
zipline/assets/assets.py:243
↓ 3 callers
Method
_ewma
(self, data, length)
zipline/pipeline/factors/technical.py:369
↓ 3 callers
Method
_expr_eq
(a, b)
zipline/pipeline/loaders/blaze/core.py:787
↓ 3 callers
Function
_gen_expectations
(baseline, missing_value, adjustments, buffe
tests/pipeline/test_adjusted_array.py:437
↓ 3 callers
Method
_get_adjustment_list
Internal method that returns a list of adjustments for the given sid. Parameters ---------- asset : Asset
zipline/data/data_portal.py:1124
↓ 3 callers
Method
_get_current_contract
(self, continuous_future, dt)
zipline/data/data_portal.py:1414
↓ 3 callers
Method
_get_minute_count_for_transform
(self, ending_minute, days_count)
zipline/data/data_portal.py:1273
↓ 3 callers
Method
_get_pricing_reader
(self, data_frequency)
zipline/data/data_portal.py:396
↓ 3 callers
Method
_is_extra_source
Internal method that determines if this asset/field combination represents a fetcher value or a regular OHLCVP lookup.
zipline/data/data_portal.py:410
↓ 3 callers
Method
_keypath
(self, key)
zipline/utils/cache.py:239
↓ 3 callers
Method
_log_writing
(self, *path)
zipline/data/fx/hdf5.py:326
↓ 3 callers
Function
_sid_subdir_path
Format subdir path to limit the number directories in any given subdirectory to 100. The number in each directory is designed to support
zipline/data/minute_bars.py:86
↓ 3 callers
Method
_sync_last_sale_prices
Sync the last sale prices on the metrics tracker to a given datetime. Parameters ---------- dt : datetime
zipline/algorithm.py:1424
↓ 3 callers
Method
_test_checkpoints
Simple checkpoints test that accepts a checkpoints dataframe and the expected value for 2014-01-03. The underlying data has value -(s
tests/pipeline/test_blaze.py:2209
↓ 3 callers
Method
_test_checkpoints_macro
Simple checkpoints test that accepts a checkpoints dataframe and the expected value for 2014-01-03 for macro datasets. The underlying
tests/pipeline/test_blaze.py:2093
↓ 3 callers
Method
_to_integral
Convert an array produced by this classifier into an array of integer labels and a missing value label.
zipline/pipeline/classifiers/classifier.py:362
↓ 3 callers
Method
_validate
(self)
zipline/pipeline/filters/filter.py:210
↓ 3 callers
Method
_validate_timestamp
(self, ts)
zipline/data/hdf5_daily_bars.py:677
↓ 3 callers
Method
_write
(self, tablename, expected_dtypes, frame)
zipline/data/adjustments.py:383
↓ 3 callers
Function
add_term_node
(f, term)
zipline/pipeline/visualize.py:183
↓ 3 callers
Method
assert_all_empty
(self, dfs)
tests/data/test_adjustments.py:84
↓ 3 callers
Function
assert_raises_regex
Assert that some exception is raised in a context and that the message matches some pattern. Parameters ---------- exc : type or tupl
zipline/testing/predicates.py:295
↓ 3 callers
Function
assert_sequence_equal
(result, expected, path=(), msg='', **kwargs)
zipline/testing/predicates.py:532
↓ 3 callers
Function
asset_db_relative
(bundle_name, timestr, db_version=None)
zipline/data/bundles/core.py:85
↓ 3 callers
Function
asset_end
(asset_info, asset)
zipline/pipeline/loaders/synthetic.py:219
↓ 3 callers
Function
asset_start
(asset_info, asset)
zipline/pipeline/loaders/synthetic.py:211
↓ 3 callers
Method
build_binary_op
Compute new expression strings and a new inputs tuple for combining self and other with a binary operator.
zipline/pipeline/expression.py:296
↓ 3 callers
Function
bulleted_list
Format a bulleted list of values.
zipline/utils/string_formatting.py:1
↓ 3 callers
Function
bytes_array_to_native_str_object_array
Convert an array of dtype S to an object array containing `str`.
zipline/utils/numpy_utils.py:533
← previous
next →
301–400 of 4,252, ranked by callers