drift_close_position

$0.01 USDC per call

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.

Parameters
NameTypeRequiredDescription
symbol string required Market symbol of the position to close (e.g. 'NBAFINALS25-OKC-BET')
amountUsdc string optional Amount in USDC to close. Omit to close the full position.
Example Call
// MCP tool call
{
  "name": "drift_close_position",
  "arguments": {
    "symbol": "",
    "amountUsdc": ""
}
}
Connect
// Add to your MCP config — this tool is immediately available
{
  "mcpServers": {
    "toolbooth": { "url": "https://toolbooth.io/mcp" }
  }
}
Related Tools

Try it live in the playground