Api set sub account position margin config request
ApiSetSubAccountPositionMarginConfigRequest
Sets the margin type and leverage configuration for a specific position (instrument) within a sub account.
This configuration is applied per-instrument, allowing different margin settings for different positions.
NameLite |
Type | RequiredDefault |
Description |
|---|---|---|---|
sub_account_idsa |
string | True | The sub account ID to set the margin type and leverage for |
instrumenti |
string | True | The instrument of the position to set the margin type and leverage for |
margin_typemt |
PositionMarginType | True | The margin type to set for the position |
leveragel |
string | True | The leverage to set for the position |
signatures |
Signature | True | The signature of this operation |
PositionMarginType
| Value | Description |
|---|---|
ISOLATED = 1 |
Isolated Margin Mode: each position is allocated a fixed amount of collateral |
CROSS = 2 |
Cross Margin Mode: uses all available funds in your account as collateral across all cross margin positions |
Signature
NameLite |
Type | RequiredDefault |
Description |
|---|---|---|---|
signers |
string | True | The address (public key) of the wallet signing the payload |
rr |
string | True | Signature R |
ss1 |
string | True | Signature S |
vv |
integer | True | Signature V |
expiratione |
string | True | Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days |
noncen |
integer | True | Users can randomly generate this value, used as a signature deconflicting key. ie. You can send the same exact instruction twice with different nonces. When the same nonce is used, the same payload will generate the same signature. Our system will consider the payload a duplicate, and ignore it. Range: 0 to 4,294,967,295 (uint32) |
chain_idci |
string | True | Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID. |