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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | Order price | |
| amount | Yes | Order size | |
| instrument_name | Yes | Instrument name |