API
ReferenceAccount

Export your order history

GET
/public/v1/orders/export

Your whole order history in one download, no pagination: every item you bought and sold, oldest first. format=csv (the default) returns a spreadsheet with a header row; format=json returns { "orders": [...] } with the same columns. Narrow it with side (bought or sold), app_id, and from/to as ISO dates. Money is in integer cents: unit_price is the price of one copy, total_value the whole row, fee the selling commission (only ever set on your sold rows) and net what the row was worth to you. settled_at is when a sale settled and is empty until it does. The response is streamed, so a long history starts arriving immediately.

AuthorizationBearer <token>

API key generated from your account settings on the website. Send as Authorization: Bearer csd_....

In: header

Query Parameters

format?string
Default"csv"

Value in

  • "csv"
  • "json"
side?string

Value in

  • "bought"
  • "sold"
app_id?string
Match^[1-9]\d*$
from?string
to?string

Response Body

application/json

curl -X GET "https://example.com/public/v1/orders/export"
{  "orders": [    {      "order_item_id": 1,      "order_id": 1,      "side": "bought",      "app_id": 1,      "market_hash_name": "string",      "amount": -9007199254740991,      "unit_price": -9007199254740991,      "total_value": -9007199254740991,      "fee": -9007199254740991,      "net": -9007199254740991,      "created_at": "2019-08-24T14:15:22Z",      "settled_at": "2019-08-24T14:15:22Z"    }  ]}