---
search:
  tags:
    - Card catalog
    - GET
seo:
  description: >-
    Returns a card's sales history for one grade as daily or weekly… Reference
    for the GET /cards/{id}/market-history endpoint in the Toreca Cloud Partner
    API.
sidebar:
  label: Get a card's price history
  badge: GET
title: Get a card's price history
type: openapi-operation
---
Returns a card's sales history for one grade as daily or weekly bars. Both a line (`average`) and candlesticks (`open`, `high`, `low`, `close`) can be drawn from the same `bars`. The current price source is SNKRDUNK.

Amounts are yen. `bars` holds only the days (weeks) with sales or price records, oldest first; days without sales are left out. Weeks start on Monday.

`GET /cards/{id}/market-history`

**Responses**

- `200` — The price history
- `400` — \`invalid\_request\`: unknown grade, \`from\` after \`to\`, a period over 731 days, and so on.
- `401` — \`invalid\_token\`: the token is missing, expired, or for another resource.
- `403` — One of \`insufficient\_scope\`, \`connection\_revoked\`, \`client\_disabled\` or \`forbidden\`.
- `404` — \`not\_found\`: no active card.

Response example, 200:

```json
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "source": "snkrdunk",
  "currency": "JPY",
  "grade": {
    "serviceCode": "string",
    "serviceName": "string",
    "serviceKind": "third_party",
    "code": "string",
    "label": "string",
    "numericScore": 0
  },
  "interval": "1d",
  "from": "2019-08-24",
  "to": "2019-08-24",
  "bars": [
    {
      "time": "2019-08-24",
      "open": 0,
      "high": 0,
      "low": 0,
      "close": 0,
      "average": 0,
      "volume": 0,
      "units": 0,
      "provisional": true
    }
  ],
  "trades": [
    {
      "date": "2019-08-24",
      "seq": 0,
      "price": 0,
      "units": 0,
      "exact": true
    }
  ]
}
```
