Skip to main content
GET
/
api
/
v1
/
trading
/
balance
Get Balance
curl --request GET \
  --url https://api.example.com/api/v1/trading/balance
{
  "balance": 123,
  "available_balance": 123,
  "reserved_balance": 123,
  "currency": "<string>"
}

Usage

balance = client.get_balance()

Response

balance
number
Total USDC balance in your account.
available_balance
number
Balance available for trading (not reserved for open orders).
reserved_balance
number
Balance reserved for open orders.
currency
string
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.