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

# Trades

Returns a token's trades.

Available chains:
  - [x] Ethereum
  - [x] Solana
  - [x] Polygon
  - [x] BNB

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "version": "0.2.0",
    "title": "Zash NFT API",
    "summary": "Supercharge your NFT offering.",
    "termsOfService": "http://zash.sh/termsofservice",
    "contact": {
      "url": "https://zash.sh"
    },
    "x-logo": {
      "url": "https://uploads-ssl.webflow.com/620e57315cd5bf8aa8c47941/62704e83d5ff032ab3ac9fb5_zash_api_logo.png",
      "alttext": "zash logo"
    },
    "description": "# Introduction\n\nSay goodbye to the long mix of addresses and binary numbers reading raw on chain data and fragmented social media. We map all that into meaningful fields - e.g collection, buyer, seller, price, marketplace, twitter count, discord members.\n\nProvided as a live API of clean and indexed NFT metadata, collections and projects.\nSolana & Ethereum live. BNB Chain and others coming soon.‍\n\n# Authentication\n\nCurrently all you need is to obtain an API key. [Get in touch](mailto:efe@joinzash.com) if you don't have one.\n",
    "license": {
      "name": "MIT",
      "url": "https://zash.sh/termsofservice"
    }
  },
  "tags": [
    {
      "name": "Token",
      "description": "Enriched token metadata"
    }
  ],
  "servers": [
    {
      "url": "https://api.zash.sh/v2",
      "description": "Default Server"
    }
  ],
  "paths": {
    "/nft/token/trades": {
      "get": {
        "tags": [
          "Token"
        ],
        "summary": "Trades",
        "description": "Returns a token's trades.\n\nAvailable chains:\n  - [x] Ethereum\n  - [x] Solana\n  - [x] Polygon\n  - [x] BNB\n",
        "operationId": "getEvmTokenTrades",
        "parameters": [
          {
            "in": "query",
            "name": "collection_address",
            "description": "Collection address",
            "required": true,
            "schema": {
              "type": "string",
              "example": "0x239d74b020360b20b2db0b90d55f67af68812fe3"
            }
          },
          {
            "in": "query",
            "name": "token_id",
            "description": "Token ID",
            "required": true,
            "schema": {
              "type": "string",
              "example": "897"
            }
          },
          {
            "in": "query",
            "name": "chain",
            "description": "Chain code (e.g. eth, sol, matic, bnb)",
            "required": true,
            "schema": {
              "type": "string",
              "default": "eth",
              "example": "eth"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of results to return.",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 20,
              "example": 20
            }
          },
          {
            "name": "sort_direction",
            "in": "query",
            "description": "Sort the result-set in ascending or descending order.",
            "required": false,
            "schema": {
              "type": "string",
              "default": "desc",
              "example": "desc",
              "enum": [
                "desc",
                "asc"
              ]
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Cursor String for pagination.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "api-key": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenTrades"
                },
                "example": {
                  "trades": [
                    {
                      "currency": "ETH",
                      "from_address": "0xd43e547e080f8f591d83cc8efc16bd63baa66b24",
                      "to_address": "0x03d10848626667360b615b9a5e01bec1efb49c84",
                      "aggregator_name": "",
                      "marketplace_name": "opensea",
                      "hash": "0x172ff27d4f7696870a89ec4fb1457bf4c901dc9ae73faeea708a35a008364a09",
                      "price": 0.0399,
                      "timestamp": 1666309943,
                      "token_id": "4574"
                    }
                  ],
                  "continue": "=120xr1xMZz2"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "$ref": "#/components/responses/Problem"
          },
          "404": {
            "description": "Token not found",
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "api-key": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      }
    },
    "schemas": {
      "Problem": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "example": "Requested resource can not be fetched."
          }
        }
      },
      "TokenTrades": {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "object",
        "properties": {
          "trades": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "currency": {
                  "type": "string"
                },
                "from_address": {
                  "type": "string"
                },
                "to_address": {
                  "type": "string"
                },
                "aggregator_name": {
                  "type": "string"
                },
                "marketplace_name": {
                  "type": "string"
                },
                "hash": {
                  "type": "string"
                },
                "price": {
                  "type": "number"
                },
                "timestamp": {
                  "type": "number"
                },
                "token_id": {
                  "type": "string"
                }
              }
            }
          },
          "continue": {
            "type": "string"
          }
        }
      }
    },
    "responses": {
      "Problem": {
        "description": "Problem",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 98,
      "1": 139,
      "2": 164,
      "3": 97,
      "4": 147,
      "5": 99,
      "6": 19,
      "7": 0,
      "8": 100,
      "9": 5,
      "10": 234,
      "11": 92
    }
  }
}
```