Set margin configuration

Set margin configuration for an account and market

Path parameters

marketstringRequired

Market Name - example: BTC-USD-PERP

Headers

AuthorizationstringRequired

Request

This endpoint expects an object.
leverageintegerRequired

Leverage value (1 up to market’s maximum leverage)

margin_typestringRequired

Margin type (CROSS or ISOLATED)

on_behalf_of_accountstringOptional

Specify sub-account ID to set margin for, if not provided, it will be the main account itself

Response

OK

accountstringOptional

Account ID

leverageintegerOptional

Leverage value

margin_typestringOptional

Margin type (CROSS/ISOLATED)

marketstringOptional

Market symbol

Errors