Dataset#
tradeexecutor.strategy.trading_strategy_universe.Dataset Python class in Trading Strategy framework.
- class Dataset[source]#
Bases:
object
Contain raw loaded datasets.
- __init__(time_bucket, exchanges, pairs, candles=None, liquidity=None, liquidity_time_bucket=None, backtest_stop_loss_time_bucket=None, backtest_stop_loss_candles=None, start_at=None, end_at=None)#
- Parameters:
time_bucket (TimeBucket) –
exchanges (ExchangeUniverse) –
pairs (DataFrame) –
liquidity_time_bucket (Optional[TimeBucket]) –
backtest_stop_loss_time_bucket (Optional[TimeBucket]) –
- Return type:
None
Methods
__init__
(time_bucket, exchanges, pairs[, ...])Attributes
All candles in stop loss time bucket
Granularity of backtesting OHLCV data
Candle data for all pairs
Data clipping period
All liquidity samples
Liquidity data granularity
Data clipping period
Granularity of our OHLCV data
All exchanges
All trading pairs
- time_bucket: TimeBucket#
Granularity of our OHLCV data
- exchanges: ExchangeUniverse#
All exchanges
- liquidity_time_bucket: Optional[TimeBucket] = None#
Liquidity data granularity
- backtest_stop_loss_time_bucket: Optional[TimeBucket] = None#
Granularity of backtesting OHLCV data
- __init__(time_bucket, exchanges, pairs, candles=None, liquidity=None, liquidity_time_bucket=None, backtest_stop_loss_time_bucket=None, backtest_stop_loss_candles=None, start_at=None, end_at=None)#
- Parameters:
time_bucket (TimeBucket) –
exchanges (ExchangeUniverse) –
pairs (DataFrame) –
liquidity_time_bucket (Optional[TimeBucket]) –
backtest_stop_loss_time_bucket (Optional[TimeBucket]) –
- Return type:
None