Skip to main content
GET
/
public
/
v1
/
balances
Get Balances
curl --request GET \
  --url https://api.pro.daya.co/public/v1/balances \
  --header 'X-Api-Key: <x-api-key>'
{
  "success": true,
  "message": "Balances retrieved successfully",
  "data": {
    "balances": [
      {
        "currency": "USD",
        "total_balance": "1500.00",
        "available_balance": "1000.00",
        "held_balance": "500.00",
        "used_credit": "0.00",
        "held_credit": "0.00",
        "available_credit": "0.00",
        "credit_limit": "0.00",
        "usd_rate": "1.00"
      },
      {
        "currency": "NGN",
        "total_balance": "1545000.00",
        "available_balance": "1545000.00",
        "held_balance": "0.00",
        "used_credit": "0.00",
        "held_credit": "0.00",
        "available_credit": "0.00",
        "credit_limit": "0.00",
        "usd_rate": "0.00065"
      }
    ]
  },
  "timestamp": "2024-01-15T10:30:00Z"
}

Overview

Get the current balance for all currencies in your Pro account. This endpoint requires authentication with an API key that has Read scope.
Unified Balance: USDT, USDC, and USD are all mapped to a single unified USD balance. When you trade with any of these symbols (USDT-NGN, USDC-NGN, or USD-NGN), they all use the same USD balance.

Authentication

X-Api-Key
string
required
Your API key with Read scope
X-Api-Key: daya_sk_YOUR_API_KEY

Request Examples

curl --request GET \
  --url https://api.pro.daya.co/public/v1/balances \
  --header 'X-Api-Key: daya_sk_YOUR_API_KEY'

Response

success
boolean
required
Indicates if the request was successful
message
string
required
Human-readable response message
data
object
required
Balances wrapper object
timestamp
string
ISO 8601 timestamp of the response

Success Response

{
  "success": true,
  "message": "Balances retrieved successfully",
  "data": {
    "balances": [
      {
        "currency": "USD",
        "total_balance": "1500.00",
        "available_balance": "1000.00",
        "held_balance": "500.00",
        "used_credit": "0.00",
        "held_credit": "0.00",
        "available_credit": "0.00",
        "credit_limit": "0.00",
        "usd_rate": "1.00"
      },
      {
        "currency": "NGN",
        "total_balance": "1545000.00",
        "available_balance": "1545000.00",
        "held_balance": "0.00",
        "used_credit": "0.00",
        "held_credit": "0.00",
        "available_credit": "0.00",
        "credit_limit": "0.00",
        "usd_rate": "0.00065"
      }
    ]
  },
  "timestamp": "2024-01-15T10:30:00Z"
}

Error Responses

401 Unauthorized

{
  "success": false,
  "message": "Unauthorized",
  "error": {
    "code": "API_KEY_INVALID",
    "message": "Invalid or missing API key"
  },
  "timestamp": "2024-01-15T10:30:00Z"
}
Common causes:
  • Missing X-Api-Key header
  • Invalid API key format
  • API key has been revoked

403 Forbidden

{
  "success": false,
  "message": "Forbidden",
  "error": {
    "code": "API_KEY_INVALID_SCOPE",
    "message": "Insufficient scope for this operation"
  },
  "timestamp": "2024-01-15T10:30:00Z"
}
Common causes:
  • API key does not have Read scope
  • User account is suspended

Rate Limits

  • 100 requests per minute per API key
  • Requires Read scope

Next Steps

Place Order

Use your balance to place trades

List Orders

View your open and historical orders