This endpoint is used to check USDT balance on your subaccount.
https://api.exchangecopter.com/getCryptoBalance
GET
const axios = require('axios');
// Replace with the actual document ID provided during onboarding
const documentId = 'YOUR_DOCUMENT_ID_HERE';
// Replace with your actual bearer token
const token = 'YOUR_TOKEN_HERE';
const config = {
method: 'get',
url: 'https://api.exchangecopter.com/getCryptoBalance',
params: {
documentId: documentId
},
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
maxBodyLength: Infinity
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data, null, 2));
})
.catch((error) => {
console.error('Error fetching crypto balance:', error.message);
});
200 Response
{
"usdt": 0
}