Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rob committed Jul 4, 2023
1 parent 2c5ca68 commit 656a1f8
Show file tree
Hide file tree
Showing 3 changed files with 289 additions and 91 deletions.
10 changes: 10 additions & 0 deletions sysdata/config/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ production_capital_method: 'full'
#
stale_instruments: ['an_instrument_i_no_longer_trade_or_sample']
#
# Roll status auto-update
roll_status_auto_update:
auto_roll_if_relative_volume_higher_than: 1.0
min_relative_volume: 0.01
min_absolute_volume: 100
near_expiry_days: 10
## following has to be one of enum roll states in sysobjects/production/roll_state.py
## eg Close, Force_Outright, Force
## or Ask to request from user
default_roll_state_if_undecided: Ask
#
# BACKTESTING STUFF
#
Expand Down
2 changes: 2 additions & 0 deletions sysobjects/production/roll_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
),
)

list_of_all_roll_states = [state.name for state in RollState]

no_roll_state = RollState.No_Roll
roll_adj_state = RollState.Roll_Adjusted
roll_close_state = RollState.Close
Expand Down
Loading

0 comments on commit 656a1f8

Please sign in to comment.