This commit is contained in:
Dobromir Popov
2025-07-28 22:09:15 +03:00
parent bc4b72c6de
commit a341fade80
4 changed files with 4329 additions and 2395 deletions

View File

@ -2599,6 +2599,17 @@ class TradingExecutor:
logger.error(f"Error getting current position: {e}")
return None
def get_position(self, symbol: str) -> Optional[Dict[str, Any]]:
"""Get position for a symbol (alias for get_current_position for compatibility)
Args:
symbol: Trading symbol to get position for
Returns:
dict: Position information with 'side' key or None if no position
"""
return self.get_current_position(symbol)
def get_leverage(self) -> float:
"""Get current leverage setting"""
return self.mexc_config.get('leverage', 50.0)