IGNORE_T_COSTS
environment variable to False
:spot_dv01
returns a series of spot dollar duration (DV01) values for the history of the instrument:strat.add_position_target
with parameter unit_type='HISTORICAL_CVAR'
:strat.add_position_target
with parameter unit_type='HISTORICAL_VAR'
:DatetimeIndex
, DataFrame.loc
is no longer subscriptable with a basic Python datetime.date
object. Instead, use pandas.to_datetime
to convert a Python date object to a pandas datetime object:plot.performance
:plot.performance
uses a new visualization with improved interface design and UX controls. The v8 framework also adds a Share button to the interface, so you can share the visualization as an image or embed the interactive chart anywhere on the web.fallback=True
to Strategy.plot.performance
:plot.performance
no longer accepts deprecated inline
parameterinline
parameter to plot.performance
raises an error in v8. Remove the inline
parameter from calls to plot.performance
:sig.init
:env
points to the configured environment that sig.init
creates.sig.init
when the framework is already initialized has no effect in v8. To destroy the existing configured environment and initialize a new one, pass repeat_mode='reinit'
:sig.init
:_quant_bridge
replaced by quant_bridge
_quant_bridge
.quant_bridge
. Using the v7 property name raises an error in v8.sig.init
. To set the trading calendar to the London Christmas calendar:sig.init
:sig.get_single_stock_strategy
, the framework caps the start date of the strategy's history to the DEFAULT_RS_START_DATE
environment configuration setting.DEFAULT_RS_START_DATE
to Jan 02, 2008. The v8 framework sets DEFAULT_RS_START_DATE
to Jan 02, 2009. This change avoids possible conversion problems with older data.sig.get_single_stock_strategy
to include data from before Jan 02, 2009.sig.get_single_stock_strategy
to include data from before Jan 02, 2009, change the DEFAULT_RS_START_DATE
environment configuration setting immediately after you initialize the framework.DEFAULT_RS_START_DATE
to Jan 02, 2008:sig.analytics
sig.analytics
, v8 deprecates and replaces the following classes:optimization.optimizer
FactorOptimizer
Optimizer
optimization.optimization_problem
FactorOptimizationProblem
OptimizationProblem
performance.performance_report
TsPerformance
PerformanceReport
performance.performance_report
CustomReport
PerformanceReport
sig.infra.calendar
sig.infra.calendar
, v8 deprecates and replaces the following classes:business_calendar
Calendar
CustomCalendar
calendar
Calendar
HolidayCalendar
sig.instruments
sig.instruments
, v8 deprecates the following type-checking methods:base
Instrument
is_future
base
Instrument
is_synthetic_swap
base
Instrument
is_equity_swap
base
Instrument
is_bond_repo
base
Instrument
is_bond_swap
base
Instrument
is_ir_swap
base
Instrument
is_index_swap
base
Instrument
is_ir_bh_swap
base
Instrument
is_tr_swap
base
Instrument
is_bond
base
Instrument
is_fx_forward
base
Instrument
is_order
base
Instrument
is_equity_single_stock
base
Instrument
is_etf
bonds
BondBase
is_bond
bonds
GovernmentBondRepo
is_bond_repo
bonds
GovernmentBondSwap
is_bond_swap
fx_otc
FXForward
is_fx_forward
index_swap
IndexSwap
is_index_swap
ir_otc
InterestRateSwap
is_ir_swap
isinstance
to check the type of an object:instruments
methodssig.instruments
, v8 also deprecates the following methods and properties:base
ContractGroup.contract_product_type
ContractGroup.item_product_type
base
HistoricalFrameworkObject.underlying_str
HistoricalFrameworkObject.asset_description
fixes
IntradayFix.underlying_name
lme_otc
create_lme_forward
LMEUtils.create_lme_forward
options
CommodityFutureOption.underlying_name
options
OptionBase.pnl_breakdown
OptionBase.pnl_explain
sig.strategies
sig.strategies
, v8 deprecates and replaces the following classes:basket_strategies
DynamicGlobalBasket
BasketStrategy
fx_forward_rolling_strategy
FXForwardRollingStrategy
RollingFXForwardStrategy
fx_forward_rolling_strategy
DynamicFXForwardRollingStrategy
DynamicRollingFXForwardStrategy
sig.strategies
, v8 deprecates and replaces the following methods:reinvestment_strategy
get_single_stock_strategy_name_parallel
get_single_stock_strategy
reinvestment_strategy
get_reinvestment_strategy
get_single_stock_strategy
rolling_bond_strategy
RollingBondStrategy.get_roll_schedule
RollingBondStrategy.rolling_schedule
sig.strategies
, v8 deprecates and replaces the following decorators:runner.metaflow.decorators.function_flow
FunctionFlow
FunctionJob
runner.metaflow.decorators.strategy_flow
StrategyFlow
StrategyJob
Strategy
classsig.strategies
, v8 deprecates the following methods in the strategy.Strategy
class:strategy
Strategy.clean_up_margin
Strategy.add_margin_cleanup
strategy
Strategy.get_object
sig.obj.get
Strategy.add_margin_cleanup
.Strategy.analytics
interfaceStrategy.analytics
interface replaces the following deprecated methods:Strategy.excess_return_history
Strategy.pnl_breakdown
Strategy.turnover
Strategy.intraday_turnover
Strategy.cash_turnover
Strategy.turnover_stats
Strategy.approximate_rounding_impact
Strategy.approximate_rounding_summary
Strategy.relative_attribution
Strategy.total_return_valuation_history
Strategy.inspect
interfaceStrategy.inspect
interface replaces the following deprecated methods:Strategy.evaluate_trades
Strategy.evaluate_positions
Strategy.historic_positions
Strategy.display_holdings
Strategy.display_run_details
Strategy.positions_df
Strategy.weights_df
Strategy.cash_df
Strategy.bottom_positions_df
Strategy.bottom_cash_df
Strategy.timeline_data
Strategy.tree_df
Strategy.plot
interfaceStrategy.plot
interface replaces the following deprecated methods:Strategy.interactive_tree_plot
Strategy.interactive_portfolio_table()
Strategy.interactive_timeline_plot()
Strategy.interactive_performance
Strategy.plot.performance
method, the parameter inline
is deprecated.DailyStrategy
replaces some deprecated functionality in Strategy
DailyStrategy
class replaces some deprecated functionality in the Strategy
class.DailyStrategy
instead of Strategy
, and replace the deprecated methods below with their v8 equivalents.Strategy
class, but implemented in DailyStrategy
:Strategy.add_method
DailyStrategy.add_method
Strategy.add_position_target
DailyStrategy.add_position_target
Strategy.add_trade
DailyStrategy.add_trade
Strategy.add_break_point
DailyStrategy.add_break_point
Strategy.add_fx_spot_trade
DailyStrategy.add_fx_spot_trade
Strategy.size_date_from_decision_dt
DailyStrategy.size_date_from_decision_dt
Strategy.size_dt_from_date
DailyStrategy.size_dt_from_date
Strategy.size_date_from_date
DailyStrategy.size_date_from_date
Strategy._decision_time
DailyStrategy._decision_time
Strategy._decision_tzinfo
DailyStrategy._decision_tzinfo
Strategy.size_time
DailyStrategy.size_time
Strategy.size_tzinfo
DailyStrategy.size_tzinfo
Strategy.execution_time
DailyStrategy.execution_time
Strategy.execution_tzinfo
DailyStrategy.execution_tzinfo
Strategy._size_dt_from_decision_dt_
DailyStrategy._size_dt_from_decision_dt_
Strategy._instrument_execution_dt_from_datetime
DailyStrategy._instrument_execution_dt_from_datetime
Strategy.decision_dt_from_execution_dt
DailyStrategy.decision_dt_from_execution_dt
Strategy.decision_dt_from_date
DailyStrategy.decision_dt_from_date
DailyStrategy.add_method
instead of the following methods:Strategy.add_method
Strategy.add_processor
Strategy.add_processor_with_priority
DailyStrategy.add_position_target
instead of the following methods:Strategy.add_position_target
Strategy.set_position
Strategy.set_weight
DailyStrategy.add_trade
instead of the following methods:Strategy.add_trade
Strategy.add_position
Strategy.ir_swap_trade
Strategy.tr_swap_trade
Strategy.index_swap_trade
Strategy.fx_forward_trade
Strategy.lme_forward_trade
Strategy.lme_spread_trade
Strategy.index_forward_trade
Strategy.brl_swap_trade
Strategy.credit_index_trade
Strategy.xccy_swap_trade
DailyStrategy.add_break_point
instead of the following methods:Strategy.add_break_point
Strategy.stop_processing
DailyStrategy.add_fx_spot_trade
instead of the following methods:Strategy.add_fx_spot_trade
Strategy.fx_spot_trade
sig.config.config
ConfiguredEnvironment._quant_bridge
ConfiguredEnvironment
.quant_bridge
sig.infra.analytics.fx.cross
FXCross.is_flipped_cross
FXCross.is_flipped
sig.indices.tradable_index
IntradayInstrument.intraday_db_field
sig.signal.library.allocation
factor_optimized_allocations
optimized_allocations
sig.sig_master
SIGMasterBase.filter_to_last_corporate_event
SIGMasterBase.filter_to_last_pit_record