curl --request GET \
--url http://localhost:8000/trading/{account_name}/{connector_name}/position-mode \
--header 'Authorization: Basic <encoded-value>'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Get current position mode for a perpetual connector.
Args: account_name: Name of the account connector_name: Name of the perpetual connector
Returns: Dictionary with current position mode, connector name, and account name
Raises: HTTPException: 400 if not a perpetual connector
curl --request GET \
--url http://localhost:8000/trading/{account_name}/{connector_name}/position-mode \
--header 'Authorization: Basic <encoded-value>'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Was this page helpful?