---
agentTools:
  projectIndex: https://imx.readme.io/llms.txt
---

# Get details of a trade with the given ID

Get details of a trade with the given ID

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Immutable X API",
    "version": "1.0",
    "description": "https://docs.x.immutable.com/reference",
    "contact": {
      "name": "Immutable",
      "url": "https://godsunchained.com"
    }
  },
  "servers": [
    {
      "url": "https://api.x.immutable.com",
      "description": "Production Environment"
    },
    {
      "url": "https://api.ropsten.x.immutable.com",
      "description": "Ropsten Environment"
    }
  ],
  "paths": {
    "/v1/trades/{id}": {
      "parameters": [
        {
          "schema": {
            "type": "string"
          },
          "name": "id",
          "in": "path",
          "required": true,
          "description": "Trade ID"
        }
      ],
      "get": {
        "summary": "Get details of a trade with the given ID",
        "tags": [
          "trades"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Trade"
                }
              }
            }
          }
        },
        "operationId": "getTradeDetailsById",
        "description": "Get details of a trade with the given ID"
      }
    }
  },
  "components": {
    "schemas": {
      "Trade": {
        "description": "",
        "type": "object",
        "properties": {
          "transaction_id": {
            "type": "number"
          },
          "status": {
            "type": "string",
            "minLength": 1
          },
          "a": {
            "type": "object",
            "properties": {
              "order_id": {
                "type": "number"
              },
              "token_type": {
                "type": "string",
                "minLength": 1
              },
              "sold": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "order_id",
              "token_type",
              "sold"
            ]
          },
          "b": {
            "type": "object",
            "properties": {
              "order_id": {
                "type": "number"
              },
              "token_type": {
                "type": "string",
                "minLength": 1
              },
              "token_id": {
                "type": "string",
                "minLength": 1
              },
              "token_address": {
                "type": "string",
                "minLength": 1
              },
              "sold": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "order_id",
              "token_type",
              "token_id",
              "token_address",
              "sold"
            ]
          },
          "timestamp": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "transaction_id",
          "status",
          "a",
          "b",
          "timestamp"
        ],
        "x-examples": {
          "example-1": {
            "transaction_id": 2831710,
            "status": "success",
            "a": {
              "order_id": 6836,
              "token_type": "ETH",
              "sold": "1000000000000"
            },
            "b": {
              "order_id": 6835,
              "token_type": "ERC721",
              "token_id": "45592041623264511098966602065981453",
              "token_address": "0xb72d1aa092cf5b3b50dabb55bdab0f33dfab37b7",
              "sold": "1"
            },
            "timestamp": "2022-01-01T15:25:55.150568Z"
          }
        },
        "title": ""
      }
    }
  },
  "tags": [
    {
      "name": "trades"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 97,
      "1": 222,
      "2": 73,
      "3": 4,
      "4": 47,
      "5": 148,
      "6": 195,
      "7": 0,
      "8": 100,
      "9": 250,
      "10": 119,
      "11": 107
    }
  }
}
```