MCPcopy Index your code

hub / github.com/quantopian/zipline / functions

Functions4,252 in github.com/quantopian/zipline

↓ 4 callersFunction_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 callersMethod_ensure_reader_aligned
(self, reader)
zipline/data/data_portal.py:300
↓ 4 callersMethod_open_minute_file
(self, field, sid)
zipline/data/minute_bars.py:1070
↓ 4 callersMethod_read_scaling_factor
(self, field)
zipline/data/hdf5_daily_bars.py:551
↓ 4 callersFunction_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 callersFunction_safe_cls_name
(cls)
zipline/testing/predicates.py:219
↓ 4 callersMethod_test_equity_calendar_domain
(self, domain, expected_cutoff_time,
tests/pipeline/test_domain.py:345
↓ 4 callersMethod_validate
(self)
zipline/pipeline/mixins.py:266
↓ 4 callersFunctionadd_security_data
(adds, deletes)
zipline/testing/core.py:196
↓ 4 callersMethodassert_is_restricted
(self, rl, asset, dt)
tests/test_restrictions.py:46
↓ 4 callersMethodassert_many_restrictions
(self, rl, assets, expected, dt)
tests/test_restrictions.py:55
↓ 4 callersFunctionasymmetric_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 callersMethodcalculate
(self, order, transaction)
tests/finance/test_commissions.py:96
↓ 4 callersFunctioncanonicalize_datetime
(dt)
zipline/utils/tradingcalendar.py:48
↓ 4 callersFunctioncategorical_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 callersFunctioncheck_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 callersMethodcheck_fails
(self, inputs, expected_domains)
tests/pipeline/test_domain.py:265
↓ 4 callersMethodcheck_roundtrip
(arr)
tests/test_labelarray.py:410
↓ 4 callersFunctioncheck_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 callersMethodcomponent_dataframes
(self, convert_dates=True)
tests/data/test_adjustments.py:42
↓ 4 callersMethodcompute
(self, today, assets, out, closes)
zipline/pipeline/factors/technical.py:55
↓ 4 callersMethodcreate
(cls, column, window_length)
tests/pipeline/test_domain.py:78
↓ 4 callersFunctioncreate_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 callersMethodcreate_df_for_asset
(cls, start_day, end_day, interval=1, force_zeroes=False)
tests/test_history.py:1703
↓ 4 callersMethodcreate_domain
(self, sessions, data_query_time=time(0, 0, tzinfo=pytz.utc),
tests/pipeline/test_blaze.py:123
↓ 4 callersMethoddeciles
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 callersFunctiondefault_missing_value_for_dtype
Get the default fill value for `dtype`.
zipline/utils/numpy_utils.py:168
↓ 4 callersMethodelement_of
Check if each element of self is an of ``container``. Parameters ---------- container : object An object
zipline/lib/labelarray.py:797
↓ 4 callersMethodevery_day
Create a rule that triggers every day. Returns ------- rule : zipline.utils.events.EventRule
zipline/utils/events.py:621
↓ 4 callersMethodexecute_cancel_policy
(self, event)
zipline/finance/blotter/simulation_blotter.py:235
↓ 4 callersMethodfrom_codes_and_metadata
Rehydrate a LabelArray from the codes and metadata. Parameters ---------- codes : np.ndarray[integral] T
zipline/lib/labelarray.py:199
↓ 4 callersMethodfrom_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 callersMethodget_expected_fx_rate_scalar
Get the expected FX rate for the given scalar coordinates.
zipline/testing/fixtures.py:2206
↓ 4 callersMethodget_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 callersFunctionget_registry
Getter method for retrieving the registry instance for a given extendable type Parameters ---------- interface : type ex
zipline/extensions.py:158
↓ 4 callersMethodget_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 callersMethodget_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 callersFunctiongroup_into_chunks
(items, chunk_size=SQLITE_MAX_VARIABLE_NUMBER)
zipline/utils/sqlite_utils.py:27
↓ 4 callersFunctionignore_pandas_nan_categorical_warning
()
zipline/utils/pandas_utils.py:210
↓ 4 callersFunctioninfer_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 callersMethodinit_class_fixtures
(cls)
tests/finance/test_slippage.py:98
↓ 4 callersMethodisfinite
A Filter producing True for values where this Factor is anything but NaN, inf, or -inf.
zipline/pipeline/factors/factor.py:1297
↓ 4 callersMethodlifetimes
Compute a DataFrame representing asset lifetimes for the specified date range. Parameters ---------- dates :
zipline/assets/assets.py:1444
↓ 4 callersMethodlookup_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 callersFunctionmake_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 callersFunctionmake_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 callersMethodmatches
(self, arg)
zipline/utils/argcheck.py:93
↓ 4 callersMethodon_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 callersFunctionpowerset
Return the power set (i.e., the set of all subsets) of entries in `values`.
zipline/testing/core.py:1037
↓ 4 callersMethodprocess_order
(self, data, order)
tests/finance/test_slippage.py:119
↓ 4 callersMethodquartiles
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 callersMethodquintiles
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 callersMethodreject
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 callersMethodrelabel
Convert ``self`` into a new classifier by mapping a function over each element produced by ``self``. Parameters ----
zipline/pipeline/classifiers/classifier.py:231
↓ 4 callersFunctionrepeat_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 callersFunctionrun_command
(commands, args, cwd=None, verbose=False, hide_stderr=False)
versioneer.py:436
↓ 4 callersMethodset_benchmark
Set the benchmark asset. Parameters ---------- benchmark : zipline.assets.Asset The asset to set as the new bench
zipline/algorithm.py:989
↓ 4 callersMethodshould_error
(self, f, exc_type, expected_message)
tests/pipeline/test_computable_term.py:243
↓ 4 callersMethodshow_graph
Render this Pipeline as a DAG. Parameters ---------- format : {'svg', 'png', 'jpeg'} Image format to ren
zipline/pipeline/pipeline.py:244
↓ 4 callersMethodto_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 callersMethodverify_per_trade_commissions
(self, model, expected_commission,
tests/finance/test_commissions.py:59
↓ 4 callersMethodwrite
Parameters ---------- data : iterable[tuple[int, pandas.DataFrame or bcolz.ctable]] The data chunks to write. Eac
zipline/data/bcolz_daily_bars.py:170
↓ 4 callersMethodwrite
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 callersMethodwrite_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 callersMethod__new__
(cls, factor, method, ascending, mask)
zipline/pipeline/factors/factor.py:1501
↓ 3 callersMethod_active_contract
(self, oc, front, back, dt)
zipline/assets/roll_finder.py:30
↓ 3 callersFunction_build_date
Builds the date argument for event rules.
zipline/utils/events.py:127
↓ 3 callersMethod_calculate_order_target_amount
(self, asset, target)
zipline/algorithm.py:1749
↓ 3 callersMethod_calculate_order_value_amount
Calculates how many shares/contracts to order based on the type of asset being ordered.
zipline/algorithm.py:1157
↓ 3 callersFunction_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 callersFunction_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 callersFunction_encode_continuous_future_sid
(root_symbol, offset, roll_style,
zipline/assets/assets.py:243
↓ 3 callersMethod_ewma
(self, data, length)
zipline/pipeline/factors/technical.py:369
↓ 3 callersMethod_expr_eq
(a, b)
zipline/pipeline/loaders/blaze/core.py:787
↓ 3 callersFunction_gen_expectations
(baseline, missing_value, adjustments, buffe
tests/pipeline/test_adjusted_array.py:437
↓ 3 callersMethod_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 callersMethod_get_current_contract
(self, continuous_future, dt)
zipline/data/data_portal.py:1414
↓ 3 callersMethod_get_minute_count_for_transform
(self, ending_minute, days_count)
zipline/data/data_portal.py:1273
↓ 3 callersMethod_get_pricing_reader
(self, data_frequency)
zipline/data/data_portal.py:396
↓ 3 callersMethod_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 callersMethod_keypath
(self, key)
zipline/utils/cache.py:239
↓ 3 callersMethod_log_writing
(self, *path)
zipline/data/fx/hdf5.py:326
↓ 3 callersFunction_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 callersMethod_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 callersMethod_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 callersMethod_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 callersMethod_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 callersMethod_validate
(self)
zipline/pipeline/filters/filter.py:210
↓ 3 callersMethod_validate_timestamp
(self, ts)
zipline/data/hdf5_daily_bars.py:677
↓ 3 callersMethod_write
(self, tablename, expected_dtypes, frame)
zipline/data/adjustments.py:383
↓ 3 callersFunctionadd_term_node
(f, term)
zipline/pipeline/visualize.py:183
↓ 3 callersMethodassert_all_empty
(self, dfs)
tests/data/test_adjustments.py:84
↓ 3 callersFunctionassert_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 callersFunctionassert_sequence_equal
(result, expected, path=(), msg='', **kwargs)
zipline/testing/predicates.py:532
↓ 3 callersFunctionasset_db_relative
(bundle_name, timestr, db_version=None)
zipline/data/bundles/core.py:85
↓ 3 callersFunctionasset_end
(asset_info, asset)
zipline/pipeline/loaders/synthetic.py:219
↓ 3 callersFunctionasset_start
(asset_info, asset)
zipline/pipeline/loaders/synthetic.py:211
↓ 3 callersMethodbuild_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 callersFunctionbulleted_list
Format a bulleted list of values.
zipline/utils/string_formatting.py:1
↓ 3 callersFunctionbytes_array_to_native_str_object_array
Convert an array of dtype S to an object array containing `str`.
zipline/utils/numpy_utils.py:533
← previousnext →301–400 of 4,252, ranked by callers