int
required
The market ID of the position to update
float
required
The new target margin amount
string
required
Updated position object as a dictionary with modified allocated_margin field,
or None if position doesn’t exist
Python SDK reference for updatePositionMargin.