get_margins
Estimate margin requirements for a hypothetical trade before placing it. Get buy and sell side margins plus min/max price bounds to assess risk.
Instructions
Estimate the margin required for a hypothetical trade before placing it. Returns margin for both buy and sell sides, plus min/max price bounds.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"instrument_name": "<instrument_name>",
"amount": "<amount>",
"price": "<price>"
},
"name": "get_margins"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | Order price | |
| amount | Yes | Order size | |
| instrument_name | Yes | Instrument name |