Export your order history
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.
Authorization
apiKey API key generated from your account settings on the website. Send as Authorization: Bearer csd_....
In: header
Query Parameters
"csv"Value in
- "csv"
- "json"
Value in
- "bought"
- "sold"
^[1-9]\d*$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" } ]}Withdraw balance to crypto POST
Sends part of your balance to a crypto address. `amount` is in cents and is deducted from your balance in full: the platform fee comes off it, the remainder is converted to `ticker` at the current spot rate, and the network fee is paid out of the converted amount. Each currency has a minimum withdrawal amount; requests below it are rejected with a `400`. If two-factor authentication is enabled for withdrawals on your account, pass `two_factor_auth_token`. The response is the same shape as the status endpoint: `status` starts at `PENDING`, moves to `CONFIRMING` once the transaction is broadcast (`tx_hash` is set from then on), and settles at `SUCCESS` or `FAILED`. A failed withdrawal is refunded to your balance automatically.
Order history GET
Your order items, newest first. `side` is `bought` when you were the buyer and `sold` when you were the seller. Prices are integers in cents.