wip
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user