↓ Skip to main content
All methods

stakepd.kalshi_data.KalshiClient.get_balance

API key → dict
Signature
client.get_balance()

Get your account balance.

Returns

dict
Your balance, with the keys below.
Keys
KeyTypeDescription
balancefloatCash available, in dollars
portfolio_valuefloatCurrent value of your open positions, in dollars
updated_tspandas.TimestampWhen the balance was last updated (UTC)

Raises

KalshiAuthError
If the client has no credentials. Raised before any request is sent.

See also

KalshiClient.get_positions
List your positions, one row per market.
KalshiClient.from_env
Create an authenticated client from environment variables.

Examples
#

from stakepd import kalshi_data as kd

client = kd.KalshiClient.from_env()   # portfolio data needs an API key

Example:

client.get_balance()
Output (illustrative values):
{'balance': 123.45, 'portfolio_value': 50.0, 'updated_ts': Timestamp('2026-11-27 10:00:00+0000', tz='UTC')}

This method is also covered, alongside the rest of the module, in the overview guide.