Query Trades Info
curl --request POST \
--url https://api.kraken.com/0/private/QueryTrades \
--header 'API-Key: <api-key>' \
--header 'API-Sign: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"nonce": 1695828490,
"txid": "L2QE42-IGSZ3-WEVTLK, STMH53C-C54CG-4SO42I",
"trades": false
}
'import requests
url = "https://api.kraken.com/0/private/QueryTrades"
payload = {
"nonce": 1695828490,
"txid": "L2QE42-IGSZ3-WEVTLK, STMH53C-C54CG-4SO42I",
"trades": False
}
headers = {
"API-Key": "<api-key>",
"API-Sign": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'API-Key': '<api-key>',
'API-Sign': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
nonce: 1695828490,
txid: 'L2QE42-IGSZ3-WEVTLK, STMH53C-C54CG-4SO42I',
trades: false
})
};
fetch('https://api.kraken.com/0/private/QueryTrades', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.kraken.com/0/private/QueryTrades"
payload := strings.NewReader("{\n \"nonce\": 1695828490,\n \"txid\": \"L2QE42-IGSZ3-WEVTLK, STMH53C-C54CG-4SO42I\",\n \"trades\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("API-Key", "<api-key>")
req.Header.Add("API-Sign", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": [],
"result": {
"THVRQM-33VKH-UCI7BS": {
"ordertxid": "OQCLML-BW3P3-BUCMWZ",
"postxid": "TKH2SE-M7IF5-CFI7LT",
"pair": "XXBTZUSD",
"time": 1688667796.8802,
"type": "buy",
"ordertype": "limit",
"price": "30010.00000",
"cost": "600.20000",
"fee": "0.00000",
"vol": "0.02000000",
"margin": "0.00000",
"misc": "",
"trade_id": 93748276,
"maker": true
},
"TTEUX3-HDAAA-RC2RUO": {
"ordertxid": "OH76VO-UKWAD-PSBDX6",
"postxid": "TKH2SE-M7IF5-CFI7LT",
"pair": "XXBTZEUR",
"time": 1688082549.3138,
"type": "buy",
"ordertype": "limit",
"price": "27732.00000",
"cost": "0.20020",
"fee": "0.00000",
"vol": "0.00020000",
"margin": "0.00000",
"misc": "",
"trade_id": 74625834,
"maker": true
}
}
}Account Data
Query Trades Info
Retrieve information about specific trades/fills.
API Key Permissions Required: Orders and trades - Query closed orders & trades
POST
/
private
/
QueryTrades
Query Trades Info
curl --request POST \
--url https://api.kraken.com/0/private/QueryTrades \
--header 'API-Key: <api-key>' \
--header 'API-Sign: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"nonce": 1695828490,
"txid": "L2QE42-IGSZ3-WEVTLK, STMH53C-C54CG-4SO42I",
"trades": false
}
'import requests
url = "https://api.kraken.com/0/private/QueryTrades"
payload = {
"nonce": 1695828490,
"txid": "L2QE42-IGSZ3-WEVTLK, STMH53C-C54CG-4SO42I",
"trades": False
}
headers = {
"API-Key": "<api-key>",
"API-Sign": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'API-Key': '<api-key>',
'API-Sign': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
nonce: 1695828490,
txid: 'L2QE42-IGSZ3-WEVTLK, STMH53C-C54CG-4SO42I',
trades: false
})
};
fetch('https://api.kraken.com/0/private/QueryTrades', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.kraken.com/0/private/QueryTrades"
payload := strings.NewReader("{\n \"nonce\": 1695828490,\n \"txid\": \"L2QE42-IGSZ3-WEVTLK, STMH53C-C54CG-4SO42I\",\n \"trades\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("API-Key", "<api-key>")
req.Header.Add("API-Sign", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": [],
"result": {
"THVRQM-33VKH-UCI7BS": {
"ordertxid": "OQCLML-BW3P3-BUCMWZ",
"postxid": "TKH2SE-M7IF5-CFI7LT",
"pair": "XXBTZUSD",
"time": 1688667796.8802,
"type": "buy",
"ordertype": "limit",
"price": "30010.00000",
"cost": "600.20000",
"fee": "0.00000",
"vol": "0.02000000",
"margin": "0.00000",
"misc": "",
"trade_id": 93748276,
"maker": true
},
"TTEUX3-HDAAA-RC2RUO": {
"ordertxid": "OH76VO-UKWAD-PSBDX6",
"postxid": "TKH2SE-M7IF5-CFI7LT",
"pair": "XXBTZEUR",
"time": 1688082549.3138,
"type": "buy",
"ordertype": "limit",
"price": "27732.00000",
"cost": "0.20020",
"fee": "0.00000",
"vol": "0.00020000",
"margin": "0.00000",
"misc": "",
"trade_id": 74625834,
"maker": true
}
}
}Authorizations
Query Parameters
Public wallet account ID. Omit to use the authenticated user's default wallet. See List Wallet Accounts.
Body
application/json
Was this page helpful?