Options risk and margin check
options_risk_checkCheck an options book (existing or proposed legs) the way a broker's options desk would: covered, cash-secured, spread or naked; margin requirement under FINRA Rule 4210; cash-account limits; required approval level; early-assignment risk around ex-dividend dates; pin risk; auto-exercise of expiring in-the-money longs and the capital it needs; max loss; and net Greeks. Returns approve / approve_with_warnings / reject with reasons. Price: $0.01.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"legs": [
{
"side": "short",
"type": "call",
"expiry": "2026-11-20",
"strike": 210,
"premium": 3.1,
"quantity": 1
},
{
"side": "short",
"type": "put",
"expiry": "2026-11-20",
"strike": 190,
"premium": 2.6,
"quantity": 2
},
{
"side": "long",
"type": "put",
"expiry": "2026-11-20",
"strike": 180,
"premium": 1.2,
"quantity": 2
}
],
"as_of": "2026-10-19",
"account": {
"type": "margin",
"equity": 50000,
"shares_held": 100,
"options_level": 3
},
"underlying": {
"price": 200,
"symbol": "AAPL"
}
},
"name": "options_risk_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legs | Yes | ||
| as_of | No | Date of the check (YYYY-MM-DD); defaults to today in New York. | |
| policy | No | Overrides: pin_band_pct, max_requirement_pct_of_equity, max_delta_dollars_pct_of_equity, assignment_dte, low_extrinsic. | |
| account | Yes | ||
| api_key | No | Optional. Your AFA API key (afa_...), from get_api_key. Pass it on every call so free calls and credits apply; without it calls use the anonymous trial. | |
| underlying | Yes |