Account Data
Get Trade Volume
Returns 30 day USD trading volume and resulting fee schedule for any asset pair(s) provided. Fees will not be included if pair is not specified as Kraken fees differ by asset pair.
Note: If an asset pair is on a maker/taker fee schedule, the taker side is given in fees and maker side in fees_maker. For pairs not on maker/taker, they will only be given in fees.
API Key Permissions Required: Funds permissions - Query
POST
/
private
/
TradeVolume
Get Trade Volume
curl --request POST \
--url https://api.kraken.com/0/private/TradeVolume \
--header 'API-Key: <api-key>' \
--header 'API-Sign: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"nonce": 1695828490,
"pair": "XXBT/ZUSD, XETH/ZEUR"
}
'import requests
url = "https://api.kraken.com/0/private/TradeVolume"
payload = {
"nonce": 1695828490,
"pair": "XXBT/ZUSD, XETH/ZEUR"
}
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, pair: 'XXBT/ZUSD, XETH/ZEUR'})
};
fetch('https://api.kraken.com/0/private/TradeVolume', 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/TradeVolume"
payload := strings.NewReader("{\n \"nonce\": 1695828490,\n \"pair\": \"XXBT/ZUSD, XETH/ZEUR\"\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": {
"currency": "ZUSD",
"volume": "200709587.4223",
"fees": {
"XXBTZUSD": {
"fee": "0.1000",
"min_fee": "0.1000",
"max_fee": "0.2600",
"next_fee": null,
"next_volume": null,
"tier_volume": "10000000.0000"
}
},
"fees_maker": {
"XXBTZUSD": {
"fee": "0.0000",
"min_fee": "0.0000",
"max_fee": "0.1600",
"next_fee": null,
"next_volume": null,
"tier_volume": "10000000.0000"
}
}
}
}Authorizations
Body
application/json
⌘I
Get Trade Volume
curl --request POST \
--url https://api.kraken.com/0/private/TradeVolume \
--header 'API-Key: <api-key>' \
--header 'API-Sign: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"nonce": 1695828490,
"pair": "XXBT/ZUSD, XETH/ZEUR"
}
'import requests
url = "https://api.kraken.com/0/private/TradeVolume"
payload = {
"nonce": 1695828490,
"pair": "XXBT/ZUSD, XETH/ZEUR"
}
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, pair: 'XXBT/ZUSD, XETH/ZEUR'})
};
fetch('https://api.kraken.com/0/private/TradeVolume', 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/TradeVolume"
payload := strings.NewReader("{\n \"nonce\": 1695828490,\n \"pair\": \"XXBT/ZUSD, XETH/ZEUR\"\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": {
"currency": "ZUSD",
"volume": "200709587.4223",
"fees": {
"XXBTZUSD": {
"fee": "0.1000",
"min_fee": "0.1000",
"max_fee": "0.2600",
"next_fee": null,
"next_volume": null,
"tier_volume": "10000000.0000"
}
},
"fees_maker": {
"XXBTZUSD": {
"fee": "0.0000",
"min_fee": "0.0000",
"max_fee": "0.1600",
"next_fee": null,
"next_volume": null,
"tier_volume": "10000000.0000"
}
}
}
}