Get available balances
Changed onReturns only the authenticated merchant's USDT, USDC, and USD Cash AVAILABLE_BALANCE values. Requires fund.withdraw permission. USD is returned as "0" when the USD Cash Account is not open.
Request
- Base URLhttps://openapi.infini.money/v2/funds
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
32-character Base58 credential ID returned after public-key registration.
Unix timestamp in seconds; tolerance is ±300 seconds.
16 cryptographically random bytes encoded as unpadded Base64URL; fresh on every attempt.
SHA-256= followed by standard padded Base64 of SHA-256 of exact request body bytes. Required even for an empty body; included in the signing string.
Use Ed25519 signature="BASE64_SIGNATURE", where BASE64_SIGNATURE is the standard padded Base64 signature. See /docs/en/4-authorization for the exact signing string.
Response
Standard response envelope
Example response
{
"data": {
"available_balance_usdt": "120.50",
"available_balance_usdc": "75.25",
"available_balance_usd": "1000.00"
}
}Changes
- breaking
added the new required
headerrequest parameterDigest - breaking
added the new required
headerrequest parameterX-API-Key-ID - breaking
added the new required
headerrequest parameterX-API-Nonce - breaking
added the new required
headerrequest parameterX-API-Timestamp - breaking
the
headerrequest parameterAuthorizationbecame required - breaking
removed the media type
application/jsonfor the response with the status - breaking
removed the media type
application/jsonfor the response with the status - warning
deleted the
headerrequest parameterDate
- breaking
- info
added the required property
//////to the response with the status
- info