Skip to main content
Glama
questflowai

Aster Finance MCP Server

by questflowai

setMultiAssetsMode

Switch between Multi-Assets and Single-Asset margin modes to manage cross-margin trading across multiple cryptocurrency positions.

Instructions

Change user's Multi-Assets mode.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
multiAssetsMarginYes"true" for Multi-Assets Mode; "false" for Single-Asset Mode

Implementation Reference

  • The handler logic for the 'setMultiAssetsMode' tool. It invokes the shared makeRequest function to perform a signed POST request to the '/fapi/v1/multiAssetsMargin' endpoint with the tool arguments.
    case 'setMultiAssetsMode':
        return makeRequest('POST', '/fapi/v1/multiAssetsMargin', args, true);
  • src/index.ts:228-238 (registration)
    Registration of the 'setMultiAssetsMode' tool in the list of available tools, including its description and input schema definition.
    {
      name: 'setMultiAssetsMode',
      description: "Change user's Multi-Assets mode.",
      inputSchema: {
        type: 'object',
        properties: {
          multiAssetsMargin: { type: 'string', description: '"true" for Multi-Assets Mode; "false" for Single-Asset Mode' },
        },
        required: ['multiAssetsMargin'],
      },
    },
  • Input schema for the 'setMultiAssetsMode' tool, defining the expected parameter 'multiAssetsMargin' as a string.
    inputSchema: {
      type: 'object',
      properties: {
        multiAssetsMargin: { type: 'string', description: '"true" for Multi-Assets Mode; "false" for Single-Asset Mode' },
      },
      required: ['multiAssetsMargin'],
    },

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