You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the modify_isolated_position_margin is problematic.
I first run the umfuture.account(recvWindow=6000) and got response with positions {'initialMargin': '191.00400000', 'isolatedMargin': '174.91529420', 'isolatedWallet': '195.16329420', 'maintMargin': '3.82008000', 'notional': '955.02000000', 'positionAmt': '0.010', 'positionSide': 'LONG', 'symbol': 'BTCUSDC', 'unrealizedProfit': '-20.24800000', 'updateTime': 1739836800303}],
However, the following modify_isolated_position_margin is always returning error 4054 update_margin_res = self.umfuture.modify_isolated_position_margin( # type 1: Add position margin,2: Reduce position margin # margin_symbol like "BTCUSDT" # symbol=self.get_bn_symbol(token), symbol="ARBUSDT", amount=amount, type=1, recvWindow=6000, )
error : (400, -4054, 'Cannot add position margin: position is 0.', {'Date': 'Tue, 18 Feb 2025 07:50:57 GMT', 'Content-Type': 'application/json', 'Content-Length': '65', 'Connection': 'keep-alive', 'Server': 'Tengine', 'x-mbx-used-weight-1m': '45', 'x-response-time': '11ms', 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, OPTIONS'})
Any expert could help me out?
The text was updated successfully, but these errors were encountered:
It seems that the modify_isolated_position_margin is problematic.
I first run the umfuture.account(recvWindow=6000) and got response with positions
{'initialMargin': '191.00400000', 'isolatedMargin': '174.91529420', 'isolatedWallet': '195.16329420', 'maintMargin': '3.82008000', 'notional': '955.02000000', 'positionAmt': '0.010', 'positionSide': 'LONG', 'symbol': 'BTCUSDC', 'unrealizedProfit': '-20.24800000', 'updateTime': 1739836800303}],
However, the following modify_isolated_position_margin is always returning error 4054
update_margin_res = self.umfuture.modify_isolated_position_margin( # type 1: Add position margin,2: Reduce position margin # margin_symbol like "BTCUSDT" # symbol=self.get_bn_symbol(token), symbol="ARBUSDT", amount=amount, type=1, recvWindow=6000, )
error :
(400, -4054, 'Cannot add position margin: position is 0.', {'Date': 'Tue, 18 Feb 2025 07:50:57 GMT', 'Content-Type': 'application/json', 'Content-Length': '65', 'Connection': 'keep-alive', 'Server': 'Tengine', 'x-mbx-used-weight-1m': '45', 'x-response-time': '11ms', 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, OPTIONS'})
Any expert could help me out?
The text was updated successfully, but these errors were encountered: