GMX · Schema

TradesSearchRequest

DeFiPerpetual ExchangeDEXTradingLeverageLiquidity PoolsGLPGM TokensGLVArbitrumAvalancheWeb3

Properties

Name Type Description
cursor string Opaque pagination cursor returned by previous response.
limit number Page size, 1..1000. Defaults to 100.
showDebugValues boolean When false (default), excludes MarketIncrease/Decrease/Swap OrderCreated debug events.
orderEventCombinations array
marketsDirections array
toTimestamp number Inclusive upper-bound timestamp filter. Accepts seconds or milliseconds.
fromTimestamp number Inclusive lower-bound timestamp filter. Accepts seconds or milliseconds.
forAllAccounts boolean When true, returns trades for all accounts.
address string Trader address. Required unless `forAllAccounts` is true.
View JSON Schema on GitHub

JSON Schema

TradesSearchRequest.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api-evangelist.github.io/gmx/json-schema/TradesSearchRequest.json",
  "title": "TradesSearchRequest",
  "properties": {
    "cursor": {
      "type": "string",
      "description": "Opaque pagination cursor returned by previous response."
    },
    "limit": {
      "type": "number",
      "format": "double",
      "description": "Page size, 1..1000. Defaults to 100."
    },
    "showDebugValues": {
      "type": "boolean",
      "description": "When false (default), excludes MarketIncrease/Decrease/Swap OrderCreated debug events."
    },
    "orderEventCombinations": {
      "items": {
        "$ref": "#/components/schemas/OrderEventCombination"
      },
      "type": "array"
    },
    "marketsDirections": {
      "items": {
        "$ref": "#/components/schemas/MarketDirectionFilter"
      },
      "type": "array"
    },
    "toTimestamp": {
      "type": "number",
      "format": "double",
      "description": "Inclusive upper-bound timestamp filter. Accepts seconds or milliseconds."
    },
    "fromTimestamp": {
      "type": "number",
      "format": "double",
      "description": "Inclusive lower-bound timestamp filter. Accepts seconds or milliseconds."
    },
    "forAllAccounts": {
      "type": "boolean",
      "description": "When true, returns trades for all accounts."
    },
    "address": {
      "type": "string",
      "description": "Trader address. Required unless `forAllAccounts` is true."
    }
  },
  "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/TradesSearchRequest"
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.