POST
/
exchange
/
balance
cURL
curl --request POST \
  --url https://openapiv1.coinstats.app/exchange/balance \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "connectionFields": {
    "apiKey": "api_key_from_exchange",
    "apiSecret": "api_secret_from_exchange"
  },
  "connectionId": "binance"
}'
{
  "balances": [
    {
      "coinId": "<string>",
      "amount": 123,
      "price": 123,
      "priceBtc": 123
    }
  ],
  "portfolio": {
    "id": "<string>",
    "status": "<string>",
    "connectionId": "<string>"
  }
}
10 credits per request
Get your cryptocurrency exchange balances:
  • Real-time balance information
  • All coins and tokens in your account
  • Current value in USD and BTC
  • Available and locked amounts
Required:
  • connectionId: Exchange identifier (e.g., “binance”, “coinbase”)
  • connectionFields: Exchange API credentials
    • apiKey: Your exchange API key
    • apiSecret: Your exchange API secret
Security Note:
  • Use read-only API keys when possible
  • Keep your API credentials secure
  • Enable IP restrictions on exchange side

Authorizations

X-API-KEY
string
header
required

API key needed to access the endpoints. Example: 'demo-api-key'

Body

application/json

Response

200
application/json

Get exchange balance

The response is of type object.