Skip to content
トレカクラウド
Esc
↑↓navigate↵open⌘Jpreview

Get a card's price history

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
Authorization
AuthorizationOAuth2 access token · headerrequired

Authorization code flow (PKCE S256 required). Send resource=https://api.toreca-cloud.com/partner/v1 with the authorization, token and refresh requests. Access tokens last 15 minutes; refresh tokens last 90 days and rotate on every refresh.

Scopes:inventory:read
Path parameters
idstring<uuid>required
Query parameters
gradestringrequired

serviceCode:code as in InventoryItem.grade (for example psa:10, bgs:10-bl, raw:A).

matches ^([a-z0-9_-]{1,32}):([A-Za-z0-9.+_-]{1,32})$
intervalstring

1d for daily bars, 1w for weekly bars (weeks start on Monday).

default: "1d"
Allowed:1d1w
fromstring<date>

First day of the period (Japan time). Defaults to 89 days before to (the last 90 days). The period is at most 731 days.

tostring<date>

Last day of the period (Japan time). Defaults to today.

tradesinteger

When given, trades lists the period's individual sales, newest first, up to this many.

min 1 · max 500
Responses
200

The price history

idstring<uuid>required
sourcestringrequired

Where the prices come from

currencystringrequired
gradeUnitGraderequired
Show properties
serviceCodestringrequired
serviceNamestringrequired
serviceKindstringrequired
Allowed:third_partyinternal
codestringrequired
labelstringrequired
numericScorenumber | nullrequired
Show properties
One of:
number
number
null
null
intervalstringrequired
Allowed:1d1w
fromstring<date>required
tostring<date>required
barsobject[]required

Sales per day (week), in yen per piece.

Show properties
Array of object
timestring<date>required

YYYY-MM-DD (Japan time); for weekly bars, the week's Monday.

opennumber | nullrequired

null on a day with only multi-piece sales.

Show properties
One of:
number
number
null
null
highnumber | nullrequired

null on a day with only multi-piece sales.

Show properties
One of:
number
number
null
null
lownumber | nullrequired

null on a day with only multi-piece sales.

Show properties
One of:
number
number
null
null
closenumber | nullrequired

null on a day with only multi-piece sales.

Show properties
One of:
number
number
null
null
averagenumber | nullrequired

The average. Weekly bars weight each day by its pieces.

Show properties
One of:
number
number
null
null
volumeinteger | nullrequired

Number of sales; null on a day the marketplace only charted.

Show properties
One of:
integer
integer
null
null
unitsinteger | nullrequired

Pieces sold.

Show properties
One of:
integer
integer
null
null
provisionalbooleanrequired

true while the day can still change (today, or a day estimated from a relative date).

tradesobject[]

Only with trades.

Show properties
Array of object
datestring<date>required
seqintegerrequired

Its place among the day's sales (1 = the earliest).

pricenumberrequired

Yen for the sale (units pieces).

unitsintegerrequired
exactbooleanrequired

false for a day estimated from a relative date.

400

invalid_request: unknown grade, from after to, a period over 731 days, and so on.

errorstringrequired

The error code. The main ones are below; more may be added.

  • 400: invalid_request (bad parameters or body), invalid_cursor
  • 401: invalid_token
  • 403: insufficient_scope, connection_revoked, client_disabled, forbidden, ip_not_allowed
  • 404: not_found
  • 409: conflict (updated at the same time; read again and retry), idempotency_conflict (a requestId reused for different content), receipt_not_confirmed (a purchase awaiting the customer's payment confirmation)
  • 422 units: unit_unavailable (not in stock), unit_not_allocated (not allocated to this partner), unit_not_found
  • 422 holds: invalid_expiry, hold_shipped, hold_cancelled, hold_confirmed, hold_blocked, sale_amount_required (neither a sale price nor a market value)
  • 422 listings and shipments: commitment_not_on_sale, commitment_not_allocated, commitment_shipping, commitment_blocked, commitment_closed, commitment_not_on_shipment, shipment_shipped, shipment_cancelled, shipment_not_shipped, shipment_blocked, shipment_refused
  • 422 moves: invalid_location, location_inactive, different_site, same_site, mixed_sites, invalid_site, site_inactive, wrong_site, unit_not_on_transfer, transfer_line_closed, unit_not_on_checkout, move_refused, transfer_refused, checkout_refused, return_refused
  • 422 other: invalid_webhook_url, invalid_generated_at
  • 429: rate_limited
  • 503: photo_unavailable
scopestring

With insufficient_scope, the missing scope

requestIdstring<uuid>
inventoryItemIdsstring<uuid>[]
holdIdsstring<uuid>[]
commitmentIdsstring<uuid>[]
401

invalid_token: the token is missing, expired, or for another resource.

errorstringrequired

The error code. The main ones are below; more may be added.

  • 400: invalid_request (bad parameters or body), invalid_cursor
  • 401: invalid_token
  • 403: insufficient_scope, connection_revoked, client_disabled, forbidden, ip_not_allowed
  • 404: not_found
  • 409: conflict (updated at the same time; read again and retry), idempotency_conflict (a requestId reused for different content), receipt_not_confirmed (a purchase awaiting the customer's payment confirmation)
  • 422 units: unit_unavailable (not in stock), unit_not_allocated (not allocated to this partner), unit_not_found
  • 422 holds: invalid_expiry, hold_shipped, hold_cancelled, hold_confirmed, hold_blocked, sale_amount_required (neither a sale price nor a market value)
  • 422 listings and shipments: commitment_not_on_sale, commitment_not_allocated, commitment_shipping, commitment_blocked, commitment_closed, commitment_not_on_shipment, shipment_shipped, shipment_cancelled, shipment_not_shipped, shipment_blocked, shipment_refused
  • 422 moves: invalid_location, location_inactive, different_site, same_site, mixed_sites, invalid_site, site_inactive, wrong_site, unit_not_on_transfer, transfer_line_closed, unit_not_on_checkout, move_refused, transfer_refused, checkout_refused, return_refused
  • 422 other: invalid_webhook_url, invalid_generated_at
  • 429: rate_limited
  • 503: photo_unavailable
scopestring

With insufficient_scope, the missing scope

requestIdstring<uuid>
inventoryItemIdsstring<uuid>[]
holdIdsstring<uuid>[]
commitmentIdsstring<uuid>[]
403

One of insufficient_scope, connection_revoked, client_disabled or forbidden.

errorstringrequired

The error code. The main ones are below; more may be added.

  • 400: invalid_request (bad parameters or body), invalid_cursor
  • 401: invalid_token
  • 403: insufficient_scope, connection_revoked, client_disabled, forbidden, ip_not_allowed
  • 404: not_found
  • 409: conflict (updated at the same time; read again and retry), idempotency_conflict (a requestId reused for different content), receipt_not_confirmed (a purchase awaiting the customer's payment confirmation)
  • 422 units: unit_unavailable (not in stock), unit_not_allocated (not allocated to this partner), unit_not_found
  • 422 holds: invalid_expiry, hold_shipped, hold_cancelled, hold_confirmed, hold_blocked, sale_amount_required (neither a sale price nor a market value)
  • 422 listings and shipments: commitment_not_on_sale, commitment_not_allocated, commitment_shipping, commitment_blocked, commitment_closed, commitment_not_on_shipment, shipment_shipped, shipment_cancelled, shipment_not_shipped, shipment_blocked, shipment_refused
  • 422 moves: invalid_location, location_inactive, different_site, same_site, mixed_sites, invalid_site, site_inactive, wrong_site, unit_not_on_transfer, transfer_line_closed, unit_not_on_checkout, move_refused, transfer_refused, checkout_refused, return_refused
  • 422 other: invalid_webhook_url, invalid_generated_at
  • 429: rate_limited
  • 503: photo_unavailable
scopestring

With insufficient_scope, the missing scope

requestIdstring<uuid>
inventoryItemIdsstring<uuid>[]
holdIdsstring<uuid>[]
commitmentIdsstring<uuid>[]
404

not_found: no active card.

errorstringrequired

The error code. The main ones are below; more may be added.

  • 400: invalid_request (bad parameters or body), invalid_cursor
  • 401: invalid_token
  • 403: insufficient_scope, connection_revoked, client_disabled, forbidden, ip_not_allowed
  • 404: not_found
  • 409: conflict (updated at the same time; read again and retry), idempotency_conflict (a requestId reused for different content), receipt_not_confirmed (a purchase awaiting the customer's payment confirmation)
  • 422 units: unit_unavailable (not in stock), unit_not_allocated (not allocated to this partner), unit_not_found
  • 422 holds: invalid_expiry, hold_shipped, hold_cancelled, hold_confirmed, hold_blocked, sale_amount_required (neither a sale price nor a market value)
  • 422 listings and shipments: commitment_not_on_sale, commitment_not_allocated, commitment_shipping, commitment_blocked, commitment_closed, commitment_not_on_shipment, shipment_shipped, shipment_cancelled, shipment_not_shipped, shipment_blocked, shipment_refused
  • 422 moves: invalid_location, location_inactive, different_site, same_site, mixed_sites, invalid_site, site_inactive, wrong_site, unit_not_on_transfer, transfer_line_closed, unit_not_on_checkout, move_refused, transfer_refused, checkout_refused, return_refused
  • 422 other: invalid_webhook_url, invalid_generated_at
  • 429: rate_limited
  • 503: photo_unavailable
scopestring

With insufficient_scope, the missing scope

requestIdstring<uuid>
inventoryItemIdsstring<uuid>[]
holdIdsstring<uuid>[]
commitmentIdsstring<uuid>[]
Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://api.toreca-cloud.com/partner/v1/cards/497f6eca-6276-4993-bfeb-53cbbbba6f08/market-history?grade=psa%3A10' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "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
    }
  ]
}

Was this page helpful?