Retrieve information about currently open orders.
API Key Permissions Required: Orders and trades - Query open orders & trades
curl --request POST \
--url https://api.kraken.com/0/private/OpenOrders \
--header 'API-Key: <api-key>' \
--header 'API-Sign: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"nonce": 1234567,
"trades": true,
"cl_ord_id": "9cc788d8-9c00-4b25-94d3-26d93603948d"
}
'{
"error": [],
"result": {
"open": {
"OQCLML-BW3P3-BUCMWZ": {
"refid": "None",
"userref": 0,
"status": "open",
"opentm": 1688666559.8974,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTUSD",
"type": "buy",
"ordertype": "limit",
"price": "30010.0",
"price2": "0",
"leverage": "none",
"order": "buy 1.25000000 XBTUSD @ limit 30010.0",
"close": ""
},
"vol": "1.25000000",
"vol_exec": "0.37500000",
"cost": "11253.7",
"fee": "0.00000",
"price": "30010.0",
"stopprice": "0.00000",
"limitprice": "0.00000",
"misc": "",
"oflags": "fciq",
"trades": [
"TCCCTY-WE2O6-P3NB37"
]
},
"OB5VMB-B4U2U-DK2WRW": {
"refid": "None",
"userref": 45326,
"status": "open",
"opentm": 1688665899.5699,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTUSD",
"type": "buy",
"ordertype": "limit",
"price": "14500.0",
"price2": "0",
"leverage": "5:1",
"order": "buy 0.27500000 XBTUSD @ limit 14500.0 with 5:1 leverage",
"close": ""
},
"vol": "0.27500000",
"vol_exec": "0.00000000",
"cost": "0.00000",
"fee": "0.00000",
"price": "0.00000",
"stopprice": "0.00000",
"limitprice": "0.00000",
"misc": "",
"oflags": "fciq"
}
}
}
}Documentation Index
Fetch the complete documentation index at: https://kraken-sandbox.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
The "API-Key" header should contain your API key.
Authenticated requests should be signed with the "API-Sign" header, using a signature generated with your private key, nonce, encoded payload, and URI path.
Nonce used in construction of API-Sign header
Whether or not to include trades related to position in output
Restrict results to given user reference
Restrict results to given client order id
Optional parameter for viewing xstocks data.
rebased: Display in terms of underlying equity.base: Display in terms of SPV tokens.rebased, base curl --request POST \
--url https://api.kraken.com/0/private/OpenOrders \
--header 'API-Key: <api-key>' \
--header 'API-Sign: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"nonce": 1234567,
"trades": true,
"cl_ord_id": "9cc788d8-9c00-4b25-94d3-26d93603948d"
}
'{
"error": [],
"result": {
"open": {
"OQCLML-BW3P3-BUCMWZ": {
"refid": "None",
"userref": 0,
"status": "open",
"opentm": 1688666559.8974,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTUSD",
"type": "buy",
"ordertype": "limit",
"price": "30010.0",
"price2": "0",
"leverage": "none",
"order": "buy 1.25000000 XBTUSD @ limit 30010.0",
"close": ""
},
"vol": "1.25000000",
"vol_exec": "0.37500000",
"cost": "11253.7",
"fee": "0.00000",
"price": "30010.0",
"stopprice": "0.00000",
"limitprice": "0.00000",
"misc": "",
"oflags": "fciq",
"trades": [
"TCCCTY-WE2O6-P3NB37"
]
},
"OB5VMB-B4U2U-DK2WRW": {
"refid": "None",
"userref": 45326,
"status": "open",
"opentm": 1688665899.5699,
"starttm": 0,
"expiretm": 0,
"descr": {
"pair": "XBTUSD",
"type": "buy",
"ordertype": "limit",
"price": "14500.0",
"price2": "0",
"leverage": "5:1",
"order": "buy 0.27500000 XBTUSD @ limit 14500.0 with 5:1 leverage",
"close": ""
},
"vol": "0.27500000",
"vol_exec": "0.00000000",
"cost": "0.00000",
"fee": "0.00000",
"price": "0.00000",
"stopprice": "0.00000",
"limitprice": "0.00000",
"misc": "",
"oflags": "fciq"
}
}
}
}