okx_get_positions
Retrieve all open trading positions from OKX with their P&L, leverage, and margin ratio using your API key.
Instructions
Get all open positions with P&L, leverage, margin ratio. Requires OKX API key.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "okx_get_positions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instType | No | Position type | SWAP |