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>" } }
API key needed to access the endpoints. Example: 'demo-api-key'
Get exchange balance
The response is of type object.
object
Was this page helpful?