Skip to main content
GET
/
api
/
v1
/
trading
/
summary
Get Account Summary
curl --request GET \
  --url https://api.example.com/api/v1/trading/summary
{
  "balance": 123,
  "available_balance": 123,
  "reserved_balance": 123,
  "total_position_value": 123,
  "total_value": 123,
  "open_orders_count": 123,
  "positions_count": 123
}

Usage

summary = client.get_account_summary()

Response

balance
number
Total USDC balance.
available_balance
number
Balance available for trading.
reserved_balance
number
Balance reserved for open orders.
total_position_value
number
Current market value of all positions.
total_value
number
Total account value (balance + position value).
open_orders_count
integer
Number of open orders.
positions_count
integer
Number of active positions.

Example

from polyhush import PolyhushClient

client = PolyhushClient(api_key="your-api-key")

summary = client.get_account_summary()

print(f"Total Value: ${summary['total_value']:.2f}")
print(f"  Cash: ${summary['balance']:.2f}")
print(f"  Positions: ${summary['total_position_value']:.2f}")
print(f"\nOpen Orders: {summary['open_orders_count']}")
print(f"Positions: {summary['positions_count']}")

Response

{
  "balance": 1000.00,
  "available_balance": 850.00,
  "reserved_balance": 150.00,
  "total_position_value": 500.00,
  "total_value": 1500.00,
  "open_orders_count": 3,
  "positions_count": 5
}
Use get_account_summary() for dashboard displays where you need a complete overview of the account state in a single API call.