close_quote
The quote that exits account's open position in instrument before expiry: reads the position, takes the opposite
side (long -> sell, short -> buy), size = min(|position|, quantity or the whole position), and returns the desk's signed
quote with the fillOrderAs calldata in fill.send. You must send it with your own key before validUntil
(hedgehood close <instrument> --send or the npm MCP's close_position); this server never sends. nothing_to_close
when the account is flat there; a close_only:* refusal from the desk is returned with its reason.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | ||
| quantity | No | ||
| instrument | Yes | ||
| session_key | No |