GMX · Schema

TradeActionResponse

DeFiPerpetual ExchangeDEXTradingLeverageLiquidity PoolsGLPGM TokensGLVArbitrumAvalancheWeb3

Properties

Name Type Description
reasonBytes string
reason string
numberOfParts number
twapGroupId string
srcChainId number
decreasePositionSwapType string
proportionalPendingImpactUsd string
collateralTotalCostAmount string
swapImpactUsd string
executionAmountOut string
totalImpactUsd string
liquidationFeeAmount string
swapFeeUsd string
fundingFeeAmount string
borrowingFeeAmount string
traderDiscountAmount string
positionFeeAmount string
priceImpactDiffUsd string
priceImpactUsd string
basePnlUsd string
pnlUsd string
minOutputAmount string
collateralTokenPriceMax string
collateralTokenPriceMin string
indexTokenPriceMax string
indexTokenPriceMin string
executionPrice string
triggerPrice string
acceptablePrice string
sizeDeltaInTokens string
sizeDeltaUsd string
isLong boolean
marketAddress string
shouldUnwrapNativeToken boolean
initialCollateralDeltaAmount string
initialCollateralTokenAddress string
swapPath array
transactionHash string
timestamp number
orderKey string
orderType number
account string
eventName string
id string
View JSON Schema on GitHub

JSON Schema

TradeActionResponse.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api-evangelist.github.io/gmx/json-schema/TradeActionResponse.json",
  "title": "TradeActionResponse",
  "properties": {
    "reasonBytes": {
      "type": "string"
    },
    "reason": {
      "type": "string"
    },
    "numberOfParts": {
      "type": "number",
      "format": "double"
    },
    "twapGroupId": {
      "type": "string"
    },
    "srcChainId": {
      "type": "number",
      "format": "double"
    },
    "decreasePositionSwapType": {
      "type": "string"
    },
    "proportionalPendingImpactUsd": {
      "type": "string"
    },
    "collateralTotalCostAmount": {
      "type": "string"
    },
    "swapImpactUsd": {
      "type": "string"
    },
    "executionAmountOut": {
      "type": "string"
    },
    "totalImpactUsd": {
      "type": "string"
    },
    "liquidationFeeAmount": {
      "type": "string"
    },
    "swapFeeUsd": {
      "type": "string"
    },
    "fundingFeeAmount": {
      "type": "string"
    },
    "borrowingFeeAmount": {
      "type": "string"
    },
    "traderDiscountAmount": {
      "type": "string"
    },
    "positionFeeAmount": {
      "type": "string"
    },
    "priceImpactDiffUsd": {
      "type": "string"
    },
    "priceImpactUsd": {
      "type": "string"
    },
    "basePnlUsd": {
      "type": "string"
    },
    "pnlUsd": {
      "type": "string"
    },
    "minOutputAmount": {
      "type": "string"
    },
    "collateralTokenPriceMax": {
      "type": "string"
    },
    "collateralTokenPriceMin": {
      "type": "string"
    },
    "indexTokenPriceMax": {
      "type": "string"
    },
    "indexTokenPriceMin": {
      "type": "string"
    },
    "executionPrice": {
      "type": "string"
    },
    "triggerPrice": {
      "type": "string"
    },
    "acceptablePrice": {
      "type": "string"
    },
    "sizeDeltaInTokens": {
      "type": "string"
    },
    "sizeDeltaUsd": {
      "type": "string"
    },
    "isLong": {
      "type": "boolean"
    },
    "marketAddress": {
      "type": "string"
    },
    "shouldUnwrapNativeToken": {
      "type": "boolean"
    },
    "initialCollateralDeltaAmount": {
      "type": "string"
    },
    "initialCollateralTokenAddress": {
      "type": "string"
    },
    "swapPath": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "transactionHash": {
      "type": "string"
    },
    "timestamp": {
      "type": "number",
      "format": "double"
    },
    "orderKey": {
      "type": "string"
    },
    "orderType": {
      "type": "number",
      "format": "double"
    },
    "account": {
      "type": "string"
    },
    "eventName": {
      "type": "string"
    },
    "id": {
      "type": "string"
    }
  },
  "required": [
    "initialCollateralDeltaAmount",
    "initialCollateralTokenAddress",
    "swapPath",
    "transactionHash",
    "timestamp",
    "orderKey",
    "orderType",
    "account",
    "eventName",
    "id"
  ],
  "type": "object"
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/TradeActionResponse"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.