Get Open Orders
List your current open orders. Only open or un-settled orders are returned.
warning
For all transactions related to the private endpoint, you must authorize before sending your request.
For more information you can check our Authentication V1 article. This endpoint requires the Trade API key permission.
pairSymbolis optional; when omitted, open orders for all pairs are returned.
Open Orders
GET /api/v1/openOrders
Query Parameters
| Name | Type | Description |
|---|---|---|
| pairSymbol | string | BTCUSDT, ETHUSDT etc. |
Headers
| Name | Type | Description |
|---|---|---|
| X-PCK* | string | API public key. |
| X-Stamp* | integer | Current time in milliseconds since the Unix epoch (UTC). |
| X-Signature* | string | HMAC-SHA256 signature. See Authentication V1. |
| X-Nonce | integer | Optional. Backward tolerance for X-Stamp in milliseconds. Default 5000, maximum 60000. |
- 200
{
"success": true,
"message": null,
"code": 0,
"data": {
"asks": [
{
"id": 16060235,
"price": "85420.00",
"amount": "0.09733687",
"quantity": "0.09733687",
"stopPrice": "0.00",
"pairSymbol": "BTCUSDT",
"pairSymbolNormalized": "BTC_USDT",
"type": "sell",
"method": "limit",
"orderClientId": "da593000-6eb3-4a1c-ba26-c616122a0210",
"time": 0,
"updateTime": 1591286401373,
"status": "Untouched",
"leftAmount": "0.09733687"
}
],
"bids": [
{
"id": 16071095,
"price": "85391.00",
"amount": "0.08956055",
"quantity": "0.08956055",
"stopPrice": "0.00",
"pairSymbol": "BTCUSDT",
"pairSymbolNormalized": "BTC_USDT",
"type": "buy",
"method": "limit",
"orderClientId": "da593000-6eb3-4a1c-ba26-c616122a0210",
"time": 0,
"updateTime": 1591352311273,
"status": "Untouched",
"leftAmount": "0.08956055"
}
]
}
}
Note that time is not populated for open orders (always 0); use updateTime for a meaningful timestamp.
Stop orders cannot be placed through the API, but orders you place on the BtcTurk Global website can be stop
orders: their method is stoplimit or stopmarket and stopPrice is the trigger price. For other orders
stopPrice is "0.00" (with denominatorScale decimals).
Code Example
- curl
- C#
curl -X GET "https://api.global.btcturk.com/api/v1/openOrders?pairSymbol=BTCUSDT" \
-H "X-PCK: YOUR_API_PUBLIC_KEY" \
-H "X-Stamp: 1735866257711" \
-H "X-Signature: COMPUTED_SIGNATURE"
using var client = new HttpClient { BaseAddress = new Uri("https://api.global.btcturk.com") };
client.DefaultRequestHeaders.Add("X-PCK", apiKey);
client.DefaultRequestHeaders.Add("X-Stamp", stamp);
client.DefaultRequestHeaders.Add("X-Signature", signature);
var response = await client.GetAsync("/api/v1/openOrders?pairSymbol=BTCUSDT");
Console.WriteLine(await response.Content.ReadAsStringAsync());