Get account balance
balance_getRetrieves the current account balance in rubles, including an exact integer string for calculations and a formatted value for display.
Instructions
Current balance of the Hubris account the API key belongs to, in rubles.
Worth checking before a long or expensive run: requests are refused once the balance is spent. The balance can go slightly negative — one operation is allowed to overdraw it, and the next one is refused.
Two representations of the same number come back. Use balanceKopecks for arithmetic and comparisons — it is an exact integer string. Use balanceRub for display.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| balanceRub | Yes | Balance in rubles as a decimal string, e.g. "1240.55". Negative when the account is overdrawn. | |
| balanceKopecks | Yes | The same balance in kopecks as an integer string. Use this one for arithmetic: it is exact, while the ruble string is for display. |