returning last candle close price for a pair
This commit is contained in:
@@ -814,6 +814,9 @@ def test_refresh_tickers(mocker, default_conf, caplog) -> None:
|
||||
assert isinstance(exchange.klines(pair), DataFrame)
|
||||
assert len(exchange.klines(pair)) > 0
|
||||
|
||||
# test last kline close price
|
||||
assert exchange.last_kline_close('XRP/ETH') == 4
|
||||
|
||||
# test caching
|
||||
exchange.refresh_tickers(['IOTA/ETH', 'XRP/ETH'], '5m')
|
||||
|
||||
|
Reference in New Issue
Block a user