mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-15 20:31:43 +00:00
returning last candle close price for a pair
This commit is contained in:
@@ -164,6 +164,12 @@ class Exchange(object):
|
||||
else:
|
||||
return None
|
||||
|
||||
def last_kline_close(self, pair: str):
|
||||
if pair in self._klines:
|
||||
return self._klines[pair].iloc[-1]['close']
|
||||
else:
|
||||
return None
|
||||
|
||||
def set_sandbox(self, api, exchange_config: dict, name: str):
|
||||
if exchange_config.get('sandbox'):
|
||||
if api.urls.get('test'):
|
||||
|
||||
Reference in New Issue
Block a user