Place a new order, this endpoint is used for all supported order types
Bitcoin Suisse API (1.5.0)
The Bitcoin Suisse API allows customers of Bitcoin Suisse to automate activities like trading, custody, staking and reporting using their own tools.
Have a look at the Developer Portal to find out how to get an API key and how authentication works.
- application/json-patch+json
- application/json
- text/json
- application/*+json
Current timestamp (UTC), if the timestamp is too old when the request reaches the server, the order is rejected
A custom id for this order, can be used to get or cancel the order after creation. Must be unique for each order.
Provide a quote id to execute a quote that was created using the quote request endpoint, required for OrderType 'PreviouslyQuoted'
The timestamp when the order is automatically cancelled (UTC), only applicable for TimeInForce 'GoodTillCancel'
The account where the proceeds of the trade will be booked to, automatically determined if not provided
Set to 'true' to deduct the trading fees from the Quantity, otherwise the fees are added on top
- Mock serverhttps://docs.bitcoinsuisse.com/_mock/api/pages/rest/bitcoinsuisseopenapi/trading/api/v3/Orders
- Bitcoin Suisse APIhttps://api.bitcoinsuisse.com/trading/api/v3/Orders
- Bitcoin Suisse Sandbox APIhttps://sandbox-api.btcsqa.net/trading/api/v3/Orders
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.bitcoinsuisse.com/_mock/api/pages/rest/bitcoinsuisseopenapi/trading/api/v3/Orders \
-H 'Content-Type: application/json-patch+json' \
-H 'X-Auth: YOUR_API_KEY_HERE' \
-H 'X-Auth-Nonce: YOUR_API_KEY_HERE' \
-H 'X-Auth-Signature: YOUR_API_KEY_HERE' \
-H 'X-Auth-Timestamp: YOUR_API_KEY_HERE' \
-H 'X-Auth-Version: YOUR_API_KEY_HERE' \
-H 'customer-number: string' \
-d '{
"symbol": "string",
"currency": "string",
"transactionTime": "2019-08-24T14:15:22Z",
"orderType": "Market",
"timeInForce": "GoodTillCancel",
"fromAccount": 0,
"clientOrderId": "string",
"quoteId": 0,
"side": "Buy",
"quantity": 0,
"limitPrice": 0,
"stopPrice": 0,
"expireTime": "2019-08-24T14:15:22Z",
"toAccount": 0,
"isCommissionIncluded": true,
"targetStrategy": "None"
}'{ "account": 0, "clientOrderId": "string", "orderId": 0, "quoteId": 0, "side": "Unknown", "orderType": "Unknown", "symbol": "string", "currency": "string", "quantity": 0, "price": 0, "stopPrice": 0, "timeInForce": "Unknown", "transactionTime": "2019-08-24T14:15:22Z", "expireTime": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "toAccount": 0, "executionId": "string", "executionType": "Unknown", "indicativePrice": 0, "status": "Unknown", "lastPrice": 0, "lastQuantity": 0, "cumulativeQuantity": 0, "leavesQuantity": 0, "rejectionCode": 0, "text": "string", "availableToTrade": 0, "commissionCurrency": "string", "commission": 0, "settlementDate": "2019-08-24T14:15:22Z", "venueId": 0, "tenor": "Unknown", "prosecoFuseco": true, "isTwap": true, "isCommissionIncluded": true, "legPrice": 0, "legSymbol": "string", "settlementAmount": 0, "fromAmount": 0, "toAmount": 0, "isSettled": true, "appliedCommissionPct": 0, "targetStrategy": "None", "durationUnit": "Unknown", "duration": 0, "pegOffsetType": "None", "pegOffsetValue": 0, "effectiveTime": "2019-08-24T14:15:22Z", "parentClientOrderId": 0, "source": 0, "isMinimumCommissionApplied": true, "legs": [ { … } ] }
Filter by order type(s)
Filter by order status
Filter by time in force
- Mock serverhttps://docs.bitcoinsuisse.com/_mock/api/pages/rest/bitcoinsuisseopenapi/trading/api/v3/Orders
- Bitcoin Suisse APIhttps://api.bitcoinsuisse.com/trading/api/v3/Orders
- Bitcoin Suisse Sandbox APIhttps://sandbox-api.btcsqa.net/trading/api/v3/Orders
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.bitcoinsuisse.com/_mock/api/pages/rest/bitcoinsuisseopenapi/trading/api/v3/Orders?scope=All&account=string&orderTypes=Market&status=Unknown&symbols=string&side=Unknown&transactionTimeMin=2019-08-24T14%3A15%3A22Z&transactionTimeMax=2019-08-24T14%3A15%3A22Z&timeInForce=Unknown&expiresTimeMin=2019-08-24T14%3A15%3A22Z&expiresTimeMax=2019-08-24T14%3A15%3A22Z&page=1&pageSize=50' \
-H 'X-Auth: YOUR_API_KEY_HERE' \
-H 'X-Auth-Nonce: YOUR_API_KEY_HERE' \
-H 'X-Auth-Signature: YOUR_API_KEY_HERE' \
-H 'X-Auth-Timestamp: YOUR_API_KEY_HERE' \
-H 'X-Auth-Version: YOUR_API_KEY_HERE' \
-H 'customer-number: string'{ "content": [ { … } ], "count": 0 }
- application/json-patch+json
- application/json
- text/json
- application/*+json
A custom id for this request, can be used for tracing purposes in case of rejection
- Mock serverhttps://docs.bitcoinsuisse.com/_mock/api/pages/rest/bitcoinsuisseopenapi/trading/api/v3/Orders
- Bitcoin Suisse APIhttps://api.bitcoinsuisse.com/trading/api/v3/Orders
- Bitcoin Suisse Sandbox APIhttps://sandbox-api.btcsqa.net/trading/api/v3/Orders
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://docs.bitcoinsuisse.com/_mock/api/pages/rest/bitcoinsuisseopenapi/trading/api/v3/Orders \
-H 'Content-Type: application/json-patch+json' \
-H 'X-Auth: YOUR_API_KEY_HERE' \
-H 'X-Auth-Nonce: YOUR_API_KEY_HERE' \
-H 'X-Auth-Signature: YOUR_API_KEY_HERE' \
-H 'X-Auth-Timestamp: YOUR_API_KEY_HERE' \
-H 'X-Auth-Version: YOUR_API_KEY_HERE' \
-H 'customer-number: string' \
-d '{
"account": 0,
"clientOrderId": "string",
"orderId": 0,
"cancelRequestId": "string",
"transactionTime": "2019-08-24T14:15:22Z"
}'{ "account": 0, "clientOrderId": "string", "orderId": 0, "quoteId": 0, "side": "Unknown", "orderType": "Unknown", "symbol": "string", "currency": "string", "quantity": 0, "price": 0, "stopPrice": 0, "timeInForce": "Unknown", "transactionTime": "2019-08-24T14:15:22Z", "expireTime": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "toAccount": 0, "executionId": "string", "executionType": "Unknown", "indicativePrice": 0, "status": "Unknown", "lastPrice": 0, "lastQuantity": 0, "cumulativeQuantity": 0, "leavesQuantity": 0, "rejectionCode": 0, "text": "string", "availableToTrade": 0, "commissionCurrency": "string", "commission": 0, "settlementDate": "2019-08-24T14:15:22Z", "venueId": 0, "tenor": "Unknown", "prosecoFuseco": true, "isTwap": true, "isCommissionIncluded": true, "legPrice": 0, "legSymbol": "string", "settlementAmount": 0, "fromAmount": 0, "toAmount": 0, "isSettled": true, "appliedCommissionPct": 0, "targetStrategy": "None", "durationUnit": "Unknown", "duration": 0, "pegOffsetType": "None", "pegOffsetValue": 0, "effectiveTime": "2019-08-24T14:15:22Z", "parentClientOrderId": 0, "source": 0, "isMinimumCommissionApplied": true, "legs": [ { … } ] }