GET /open/v1/{network_id}/market_statistics

Query market statistics by contract address.

Path parameters

  • network_id integer Required

    Chain ID.

    Value is 137.

Query parameters

  • contract string Required

    Address of the NFT collection

  • time string

    Time range of the statistics

    Values are 24H, 7D, or ALL. Default value is 24H.

  • type integer

    Statistics type. 0: Volume, 1: Listings, 2: Solds, 3: Transactions

    Values are 0, 1, 2, or 3. Default value is 1.

Responses

  • 200 application/json

    Successful

    Hide response attribute Show response attribute object
    • data object
      Hide data attributes Show data attributes object
      • volume number

        Volume in USD. For Home Verse chain, it's volume in OAS.

      • new_listings integer

        New listings

      • sales integer

        Sales

      • transactions integer

        Transactions

  • 400 application/json

    Bad Request

    Hide response attributes Show response attributes object
    • code integer Required

      0: success, others: error

    • error string | null Required
    • errors array[object] | null
GET /open/v1/{network_id}/market_statistics
curl \
 -X GET https://api.dewapi.com/open/v1/137/market_statistics?contract=0xa131b877B12B0Ae8BB7da7229b8a1095881497A6 \
 -H "X-API-Key: $API_KEY"
Response examples (200)
{
  "data": {
    "volume": 100.0,
    "new_listings": 100,
    "sales": 100,
    "transactions": 100
  }
}
Response examples (400)
{
  "code": 3000,
  "error": "this is an error message",
  "errors": [
    {
      "field": [
        "error message"
      ]
    }
  ]
}