Close futures position
close_futures_positionClose or partially reduce a mock futures position. Specify positionId and fraction (0,1] for partial close; idempotencyKey is required for idempotency.
Instructions
Close or partially reduce a mock futures position. fraction in (0,1] reduces partially; omit (or 1) for a full close. idempotencyKey is REQUIRED. Requires the trade:futures scope. Paper trading only — virtual funds (50,000 mUSD). Not financial advice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| positionId | Yes | ||
| fraction | No | (0,1] portion to close; omit/1 = full close. | |
| idempotencyKey | Yes |