Account-related data and operations, such as checking balances.
Integral’s system connects to liquidity providers (LPs) and exchanges to retrieve balance data on behalf of brokers. This data is synchronized with Integral trading systems via active polling (every 15 seconds) or WebSockets for near real-time updates.
Get account balances in a specific asset or all assets.
Security
SSO_TOKEN
GET
const query = new URLSearchParams({
custodyOrg: 'string',
currency: 'string'
}).toString();
const resp = await fetch(
`https://docs.fxinside.net/_mock/openapi/integral-api-reference/rest/custody/v2/account/balances?${query}`,
{
method: 'GET',
headers: {
SSO_TOKEN: 'YOUR_API_KEY_HERE'
}
}
);
const data = await resp.text();
console.log(data);Successful operation. If there are no balances, an empty array is returned.
Response
- Response with one balance
- Response with multiple balances
{ "custodyOrg": "custodyOrgId", "customerOrg": "customerOrgId", "balances": [ { … } ] }