getPositionInfo
Retrieve current cryptocurrency position details including status, size, and value for specific trading symbols on the Aster Finance exchange.
Instructions
Get current position information.
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": "getPositionInfo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No |
Implementation Reference
- src/index.ts:673-674 (handler)The switch case that handles the 'getPositionInfo' tool invocation. It calls the shared makeRequest function with a signed GET to the '/fapi/v2/positionRisk' endpoint.
case 'getPositionInfo': return makeRequest('GET', '/fapi/v2/positionRisk', args, true); - src/index.ts:454-459 (schema)Input schema definition for the 'getPositionInfo' tool, accepting an optional 'symbol' parameter.
inputSchema: { type: 'object', properties: { symbol: { type: 'string' }, }, }, - src/index.ts:451-460 (registration)Registration of the 'getPositionInfo' tool in the listTools response, including name, description, and input schema.
{ name: 'getPositionInfo', description: 'Get current position information.', inputSchema: { type: 'object', properties: { symbol: { type: 'string' }, }, }, },