drift_close_position
Close an open Drift BET prediction market position via your configured Drift Gateway. Submits a reduce-only market order to exit at the best available price. Requires DRIFT_GATEWAY_URL to be set. Costs $0.01 USDC per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Market symbol of the position to close (e.g. 'NBAFINALS25-OKC-BET') | |
| amountUsdc | No | Amount in USDC to close. Omit to close the full position. |