Last updated
Last updated
Note: your API key must have the "Assets" permission.
This endpoint allows you to retrieve the total asset of all your wallets in a specified fiat currency (e.g., USD). You will also get detailed information about each individual wallet, including the cryptocurrency balance and its equivalent in fiat currency.
GET
https://api.payhubix.com/v1/assets/USD/
Note: you must insert Fiat symbol in end of URL (e.g USD).
Request Header:
Response:
An example of response:
Note: Please make sure to replace YOUR_API_KEY
in the code snippets with your actual merchant API key
X-Api-Key*
string
Your API key for authentication and authorization.
Name
Type
Description
total_fiat_balance*
float
The total balance of all wallets converted into fiat (e.g., 1439.828 USD).
fiat_symbol*
string
The symbol of the fiat currency used to represent the total balance (e.g., "USD").
symbol*
string
The symbol of the cryptocurrency (e.g., "USDT" for Tether, "TRX" for Tron).
name*
string
The name of the cryptocurrency (e.g., "Tether", "Tron").
icon*
string
URL of the cryptocurrency's icon (e.g., "https://payhubixstorage.darkube.app/.../USDT_logo.jpg").
balance*
float
The balance of the cryptocurrency in its own unit (e.g., 9665 TRX).
fiat_balance*
float
The equivalent balance of the cryptocurrency in fiat currency (e.g., 1439.828 USD).
fiat_symbol*
string
The symbol of the fiat currency (e.g., "USD").
price*
float
The price of the coin.
Get the list of your assets