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.
Input Schema
TableJSON 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' }, }, }, },