Calculate Funding Fees
curl --request GET \
--url https://api.kraken.com/funding/v1/fees/{method_id} \
--header 'API-Key: <api-key>' \
--header 'API-Nonce: <api-key>' \
--header 'API-Sign: <api-key>'import requests
url = "https://api.kraken.com/funding/v1/fees/{method_id}"
headers = {
"API-Key": "<api-key>",
"API-Sign": "<api-key>",
"API-Nonce": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'API-Key': '<api-key>', 'API-Sign': '<api-key>', 'API-Nonce': '<api-key>'}
};
fetch('https://api.kraken.com/funding/v1/fees/{method_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.kraken.com/funding/v1/fees/{method_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("API-Key", "<api-key>")
req.Header.Add("API-Sign", "<api-key>")
req.Header.Add("API-Nonce", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"fee": {
"asset": {
"class": "currency",
"name": "USDC"
},
"amount": "1.00000000"
},
"gross_amount": {
"asset": {
"class": "currency",
"name": "USDC"
},
"amount": "5.00000000"
},
"net_amount": {
"asset": {
"class": "currency",
"name": "USDC"
},
"amount": "4.00000000"
},
"fee_details": {
"base_fee": {
"asset": {
"class": "currency",
"name": "USDC"
},
"amount": "1.00000000"
},
"fee_percentage": "0"
},
"withdrawal_fee_token": "AAAAAAAAAAHG33Wc1eES6QpeGgMok_gUnlZC7Y5niezI2,MBriLCyg8oqCX7SH1bSqY6SfmC2ZLf_SgTxNZj4Cd1RLPaTyZE..."
}Funding (Beta)
Calculate Funding Fees
Calculate the fee for a funding method and amount. For withdrawals, the response also includes a unique
withdrawal_fee_token that pins the quoted fee rate for later use with
Create Funding Withdrawal. The token expires after
5 minutes and can be used on multiple withdrawals.
API Key Permissions Required: Funds permissions - Query
GET
/
funding
/
v1
/
fees
/
{method_id}
Calculate Funding Fees
curl --request GET \
--url https://api.kraken.com/funding/v1/fees/{method_id} \
--header 'API-Key: <api-key>' \
--header 'API-Nonce: <api-key>' \
--header 'API-Sign: <api-key>'import requests
url = "https://api.kraken.com/funding/v1/fees/{method_id}"
headers = {
"API-Key": "<api-key>",
"API-Sign": "<api-key>",
"API-Nonce": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'API-Key': '<api-key>', 'API-Sign': '<api-key>', 'API-Nonce': '<api-key>'}
};
fetch('https://api.kraken.com/funding/v1/fees/{method_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.kraken.com/funding/v1/fees/{method_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("API-Key", "<api-key>")
req.Header.Add("API-Sign", "<api-key>")
req.Header.Add("API-Nonce", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"fee": {
"asset": {
"class": "currency",
"name": "USDC"
},
"amount": "1.00000000"
},
"gross_amount": {
"asset": {
"class": "currency",
"name": "USDC"
},
"amount": "5.00000000"
},
"net_amount": {
"asset": {
"class": "currency",
"name": "USDC"
},
"amount": "4.00000000"
},
"fee_details": {
"base_fee": {
"asset": {
"class": "currency",
"name": "USDC"
},
"amount": "1.00000000"
},
"fee_percentage": "0"
},
"withdrawal_fee_token": "AAAAAAAAAAHG33Wc1eES6QpeGgMok_gUnlZC7Y5niezI2,MBriLCyg8oqCX7SH1bSqY6SfmC2ZLf_SgTxNZj4Cd1RLPaTyZE..."
}Authorizations
API-Key & API-Sign & API-NonceAPI-Key & API-Sign & API-Nonce & API-OTP
Path Parameters
Query Parameters
Response
200 - application/json
Was this page helpful?