Rename get_positions to fetch_positions to align with ccxt naming
This commit is contained in:
@@ -1168,7 +1168,7 @@ class Exchange:
|
||||
raise OperationalException(e) from e
|
||||
|
||||
@retrier
|
||||
def get_positions(self) -> List[Dict]:
|
||||
def fetch_positions(self) -> List[Dict]:
|
||||
if self._config['dry_run'] or self.trading_mode != TradingMode.FUTURES:
|
||||
return []
|
||||
try:
|
||||
|
@@ -141,7 +141,7 @@ class Wallets:
|
||||
if currency not in balances:
|
||||
del self._wallets[currency]
|
||||
|
||||
positions = self._exchange.get_positions()
|
||||
positions = self._exchange.fetch_positions()
|
||||
self._positions = {}
|
||||
for position in positions:
|
||||
symbol = position['symbol']
|
||||
|
Reference in New Issue
Block a user