Skip to main content
Glama
questflowai

Aster Finance MCP Server

by questflowai

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
NameRequiredDescriptionDefault
symbolNo

Implementation Reference

  • 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);
  • 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' }, }, }, },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/questflowai/aster-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server