Withdraw balance to crypto
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.
Authorization
apiKey API key generated from your account settings on the website. Send as Authorization: Bearer csd_....
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/public/v1/crypto-withdraw" \ -H "Content-Type: application/json" \ -d '{ "amount": 1, "ticker": "BTC", "address": "string", "fee_level": "LOW" }'{ "withdrawal_id": 1, "status": "CREATED", "balance_amount": -9007199254740991, "token_amount": 0, "ticker": "BTC", "created_at": "2019-08-24T14:15:22Z", "tx_hash": "string", "network_fee": "string"}Crypto withdrawal status GET
One crypto withdrawal by the `withdrawal_id` returned when it was created. `tx_hash` and `network_fee` are `null` until the transaction is broadcast. Poll this until `status` settles at `SUCCESS` or `FAILED`; a failed withdrawal has been refunded to your balance.
Export your order history GET
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.