symbol(symbol, mic=None, asset_type=...) | Yes | Look up an equity or exchange asset. |
symbols(*symbols, **kwargs) | See note | Compatibility helper; prefer list comprehensions. |
symbols_universe(name, dt=None) | Yes | Load a named universe. |
sid(sid) | Yes | Look up by numeric asset id. |
future_symbol(symbol, exchange_name=None) | Yes | Look up a futures contract. |
get_datetime() | No | Current simulation datetime. |
record(**kwargs) | No | Add custom columns to performance output. |
schedule_function(func, date_rule=None, time_rule=None, ...) | No | Register a callback. |
order(asset, amount, style, exchange_name=None) | Yes | Buy or sell a fixed quantity. |
order_percent(asset, percent, style, exchange_name=None) | Yes | Trade an incremental percent of portfolio value. |
order_target(asset, target, style, exchange_name=None) | Yes | Target a share/contract quantity. |
order_target_value(asset, target, style, exchange_name=None) | Yes | Target a dollar exposure. |
order_target_percent(asset, target, style, exchange_name=None) | Yes | Target a portfolio weight. |
get_open_orders(asset=None) | No | Inspect open orders. |
get_order(order_id, exchange_name) | No | Retrieve a specific order. |
cancel_order(order_id, exchange_name, relay_status=True) | Yes | Cancel an open order. |
set_long_only() | No | Disallow short positions. |
set_max_leverage(max_leverage) | No | Cap account leverage. |
set_max_position_size(...) | No | Cap position size. |
set_max_order_size(...) | No | Cap single-order size. |
set_max_order_count(max_count) | No | Cap order count per day. |
attach_pipeline(pipeline, name, ...) | No | Register a pipeline during initialization. |
pipeline_output(name) | No | Read attached pipeline results after initialization. |