Dataset#
API documentation for 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, lending_reserves=None, candles=None, liquidity=None, lending_candles=None, liquidity_time_bucket=None, backtest_stop_loss_time_bucket=None, backtest_stop_loss_candles=None, start_at=None, end_at=None, history_period=None)#
- Parameters:
time_bucket (TimeBucket) –
exchanges (ExchangeUniverse) –
pairs (DataFrame) –
lending_reserves (Optional[LendingReserveUniverse]) –
candles (Optional[DataFrame]) –
liquidity (Optional[DataFrame]) –
lending_candles (Optional[LendingCandleUniverse]) –
liquidity_time_bucket (Optional[TimeBucket]) –
backtest_stop_loss_time_bucket (Optional[TimeBucket]) –
backtest_stop_loss_candles (Optional[DataFrame]) –
- Return type:
None
Methods
__init__
(time_bucket, exchanges, pairs[, ...])Get all chain ids on this dataset.
Attributes
All candles in stop loss time bucket
Granularity of backtesting OHLCV data
Candle data for all pairs
Data clipping period
How much back we looked from today
All lendinds candles
All lending reserves
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
- pairs: DataFrame#
All trading pairs
- 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, lending_reserves=None, candles=None, liquidity=None, lending_candles=None, liquidity_time_bucket=None, backtest_stop_loss_time_bucket=None, backtest_stop_loss_candles=None, start_at=None, end_at=None, history_period=None)#
- Parameters:
time_bucket (TimeBucket) –
exchanges (ExchangeUniverse) –
pairs (DataFrame) –
lending_reserves (Optional[LendingReserveUniverse]) –
candles (Optional[DataFrame]) –
liquidity (Optional[DataFrame]) –
lending_candles (Optional[LendingCandleUniverse]) –
liquidity_time_bucket (Optional[TimeBucket]) –
backtest_stop_loss_time_bucket (Optional[TimeBucket]) –
backtest_stop_loss_candles (Optional[DataFrame]) –
- Return type:
None