Get client balance [Private]
Review account wallets balance. Returns an array of the balances of all your wallets.
To call any private endpoint, headers should include authorization key(s).
You may use a single API key or a public-private key pair based on your current tasks. Here you may find typical Header configurations for both options.
Method name: | /v4/private/getBalance |
Request type: | GET |
Exemplary request
const apiKey = "YOUR_API_KEY"; // put here your Api key
const url = "https://api.kuna.io";
const path = "/v4/private/getBalance";
const options = {
method: "GET",
headers: {
accept: "application/json",
"Content-Type": "application/json",
"api-key": apiKey,
},
};
fetch(url + path, options)
.then((response) => response.json())
.then((showResponse) => console.log(showResponse.data));
import requests
api_key = "YOUR_API_KEY" # put here your Api key
url = "https://api.kuna.io"
path = "/v4/private/getBalance"
headers = {
"accept": "application/json",
"Content-Type": "application/json",
"api-key": api_key,
}
request = requests.get(url + path, headers=headers)
print(request.json())
How to call private endpoints here
Response
[
{
"currency": "UAH", // Wallet currency
"balance": "7134.6", // Available balance, precision depends on the currency
"lockBalance": "100" // Minimum amount locked on the balance
},
{
"currency": "BTC",
"balance": "9994849.763209032",
"lockBalance": "5110.24204168"
}
]
Updated over 1 year ago