Skip to main content
Glama
questflowai

Aster Finance MCP Server

by questflowai

modifyPositionMargin

Adjust margin for isolated cryptocurrency trading positions on Aster Finance to manage risk exposure by adding or reducing collateral.

Instructions

Modify isolated position margin.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYes
positionSideNo
symbolYes
typeYes1: Add, 2: Reduce

Implementation Reference

  • The handler case for the 'modifyPositionMargin' tool. It invokes a signed POST request to the Aster Futures API endpoint '/fapi/v1/positionMargin' with the provided arguments.
    case 'modifyPositionMargin': return makeRequest('POST', '/fapi/v1/positionMargin', args, true);
  • src/index.ts:422-435 (registration)
    Registration of the 'modifyPositionMargin' tool in the list of available tools, including its description and input schema for validation.
    { name: 'modifyPositionMargin', description: 'Modify isolated position margin.', inputSchema: { type: 'object', properties: { symbol: { type: 'string' }, positionSide: { type: 'string', enum: ['BOTH', 'LONG', 'SHORT'] }, amount: { type: 'number' }, type: { type: 'number', enum: [1, 2], description: '1: Add, 2: Reduce' }, }, required: ['symbol', 'amount', 'type'], }, },
  • Input schema defining the parameters for the 'modifyPositionMargin' tool.
    inputSchema: { type: 'object', properties: { symbol: { type: 'string' }, positionSide: { type: 'string', enum: ['BOTH', 'LONG', 'SHORT'] }, amount: { type: 'number' }, type: { type: 'number', enum: [1, 2], description: '1: Add, 2: Reduce' }, }, required: ['symbol', 'amount', 'type'], },

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