Skip to main content
Close a position (fully or partially) and return the updated position object.
int
required
The market ID of the position to close
float
Optional size to reduce by. If None, closes the entire position
float
Optional price threshold for the reduce order
string
required
Updated position object as a dictionary with modified size field, or None if position doesn’t exist