Skip to main content
Glama
questflowai

Aster Finance MCP Server

by questflowai

getPositionMarginHistory

Retrieve historical margin adjustments for cryptocurrency futures positions on Aster Finance, tracking changes over specified time periods to monitor position management activity.

Instructions

Get position margin change history.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endTimeNo
limitNo
startTimeNo
symbolYes
typeNo

Implementation Reference

  • Handler for getPositionMarginHistory tool: makes a signed GET request to the Aster API endpoint '/fapi/v1/positionMargin/history'.
    case 'getPositionMarginHistory': return makeRequest('GET', '/fapi/v1/positionMargin/history', args, true);
  • src/index.ts:436-450 (registration)
    Registration of the getPositionMarginHistory tool in the listTools response, including description and input schema.
    { name: 'getPositionMarginHistory', description: 'Get position margin change history.', inputSchema: { type: 'object', properties: { symbol: { type: 'string' }, type: { type: 'number', enum: [1, 2] }, startTime: { type: 'number' }, endTime: { type: 'number' }, limit: { type: 'number' }, }, required: ['symbol'], }, },

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