Usage
balance = client.get_balance()
Response
Total USDC balance in your account.
Balance available for trading (not reserved for open orders).
Balance reserved for open orders.
Currency code. Always "USDC".
Example
from polyhush import PolyhushClient
client = PolyhushClient(api_key="your-api-key")
balance = client.get_balance()
print(f"Total Balance: ${balance['balance']:.2f}")
print(f"Available: ${balance['available_balance']:.2f}")
print(f"Reserved: ${balance['reserved_balance']:.2f}")
Response
{
"balance": 1000.00,
"available_balance": 850.00,
"reserved_balance": 150.00,
"currency": "USDC"
}
The reserved_balance represents funds locked in open limit orders. When orders are cancelled or filled, the reserved amount is released or converted to positions.