Strategies
Strategy Introduction
The user can implement any of the included strategies, or build their own.
Strategyclasses have aStrategyConfigclass. All custom strategies and strategy configs inherit their respective base classes.
Initializing a strategy and running it
strategy_config = StrategyConfig()
# edit and adjust aspects of the config
strategy_config.log_level = 10 # Debug mode
strategy_config.event_id = 'evt_xxx'
strategy = Strategy(strategy_config)
jockbot.trade_strategy(strategy)
Prebuilt Strategies
- IPO:
- heat_check
Based off of historical data, decide if you want to go long or short on a player who is performing above, below, or at their projections.
- random_strategy
Buy N random players.
- short_top_long_bottom
Short all of the expensive players over a certain price and long anyone below a certain price.
- LIVE:
- short_early
Short players that score a lot of fantasy points early in an event
- dump_late
Sell players who are likely to pay out less than their current best bid, once their game is complete.
Buy players who are likely to pay out more than their current ask, once their game is complete.
- market_maker
Make a market on a single player.