mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-14 03:41:14 +00:00
test: mark-test should use the candle's defined mark price attribute
This commit is contained in:
@@ -398,7 +398,10 @@ class TestCCXTExchange:
|
|||||||
exchange, exchangename = exchange_futures
|
exchange, exchangename = exchange_futures
|
||||||
pair = EXCHANGES[exchangename].get("futures_pair", EXCHANGES[exchangename]["pair"])
|
pair = EXCHANGES[exchangename].get("futures_pair", EXCHANGES[exchangename]["pair"])
|
||||||
since = int((datetime.now(UTC) - timedelta(days=5)).timestamp() * 1000)
|
since = int((datetime.now(UTC) - timedelta(days=5)).timestamp() * 1000)
|
||||||
pair_tf = (pair, "1h", CandleType.MARK)
|
candle_type = CandleType.from_string(
|
||||||
|
exchange.get_option("mark_ohlcv_price", default=CandleType.MARK)
|
||||||
|
)
|
||||||
|
pair_tf = (pair, "1h", candle_type)
|
||||||
|
|
||||||
mark_ohlcv = exchange.refresh_latest_ohlcv([pair_tf], since_ms=since, drop_incomplete=False)
|
mark_ohlcv = exchange.refresh_latest_ohlcv([pair_tf], since_ms=since, drop_incomplete=False)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user