Documentation

API Reference & Integration Guide

API Available

Get Balance

Retrieve current account balance

GETGet Balance
Endpoint URL
https://testnet.trustsig.xyz/v1/balance/query

⚙️Authentication Status

⚠️ API Key is required for all requests Webhook Secret

🔑

Headers

x-api-key
Required

API Key for authentication

x-signature
Required

HMAC-SHA256 signature for authentication

x-timestamp
Required

Timestamp (milliseconds) for signature

Request Example

Terminal
curl --location 'https://testnet.trustsig.xyz/v1/balance/query' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'x-signature: SIGNATURE_FROM_SIGN_API' \
--header 'x-timestamp: TIMESTAMP_FROM_SIGN_API' \
--header 'Content-Type: application/json'

Response Example

200 OK
JSON Response
{
  "data": {
    "error": null,
    "result": {
      "ETH": {
        "available": "0",
        "freeze": "0",
        "total": "0",
        "total_value": "0",
        "available_value": "0",
        "freeze_value": "0",
        "rate_usd": "4318.90925577",
        "rate_pair": "1",
        "pair": "USD"
      },
      "USDT": {
        "available": "0",
        "freeze": "0",
        "total": "0",
        "total_value": "0",
        "available_value": "0",
        "freeze_value": "0",
        "rate_usd": "0.99996938",
        "rate_pair": "1",
        "pair": "USD"
      },
      "THB": {
        "available": "0",
        "freeze": "0",
        "total": "0",
        "total_value": "0",
        "available_value": "0",
        "freeze_value": "0",
        "rate_usd": "0.030829",
        "rate_pair": "1",
        "pair": "USD"
      },
      "BNB": {
        "available": "0",
        "freeze": "0",
        "total": "0",
        "total_value": "0",
        "available_value": "0",
        "freeze_value": "0",
        "rate_usd": "1023.02695597",
        "rate_pair": "1",
        "pair": "USD"
      },
      "BTC": {
        "available": "0",
        "freeze": "0",
        "total": "0",
        "total_value": "0",
        "available_value": "0",
        "freeze_value": "0",
        "rate_usd": "117408.334404",
        "rate_pair": "1",
        "pair": "USD"
      },
      "SOL": {
        "available": "0",
        "freeze": "0",
        "total": "0",
        "total_value": "0",
        "available_value": "0",
        "freeze_value": "0",
        "rate_usd": "218.98311802",
        "rate_pair": "1",
        "pair": "USD"
      },
      "DOGE": {
        "available": "0",
        "freeze": "0",
        "total": "0",
        "total_value": "0",
        "available_value": "0",
        "freeze_value": "0",
        "rate_usd": "0.2445081",
        "rate_pair": "1",
        "pair": "USD"
      },
      "TRX": {
        "available": "0",
        "freeze": "0",
        "total": "0",
        "total_value": "0",
        "available_value": "0",
        "freeze_value": "0",
        "rate_usd": "0.34045182",
        "rate_pair": "1",
        "pair": "USD"
      },
      "MATIC": {
        "available": "0",
        "freeze": "0",
        "total": "0",
        "total_value": "0",
        "available_value": "0",
        "freeze_value": "0",
        "rate_usd": "0.23477916",
        "rate_pair": "1",
        "pair": "USD"
      },
      "LINK": {
        "available": "0",
        "freeze": "0",
        "total": "0",
        "total_value": "0",
        "available_value": "0",
        "freeze_value": "0",
        "rate_usd": "22.37655349",
        "rate_pair": "1",
        "pair": "USD"
      },
      "LTC": {
        "available": "0",
        "freeze": "0",
        "total": "0",
        "total_value": "0",
        "available_value": "0",
        "freeze_value": "0",
        "rate_usd": "111.19119246",
        "rate_pair": "1",
        "pair": "USD"
      }
    },
    "id": 15999507325220000,
    "uulid": "15999506189750004",
    "total_usd_equity": "0.00000000",
    "total_btc_equity": "0.00000000",
    "agent_id": "c5688e45-584f-4d54-8fbe-b07179034917"
  },
  "success": true,
  "code": 0
}