> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Kalshi Get Balance

Get account balance and portfolio value from Kalshi. Returns the available balance and total portfolio value in both cents and dollars. Ideal for: portfolio monitoring, pre-trade balance checks, automated trading workflows, threshold alerts.

![Kalshi Get Balance logo](https://cdn.b3.fun/kalshi-logo.png)
Catalog action Utility kalshi

Get account balance and portfolio value from Kalshi. Returns the available balance and total portfolio value in both cents and dollars. Ideal for: portfolio monitoring, pre-trade balance checks, automated trading workflows, threshold alerts.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `kalshi-get-balance` |
| Category | Utility |
| Connector | `kalshi` |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `kalshi`, `prediction-market`, `balance`, `portfolio`, `read` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `subaccount` | `number` | No | Subaccount number \(0 = primary, 1-32 = subaccounts\) |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `balanceDollars` | `number` | Yes | Available account balance in USD |
| `balanceCents` | `number` | No | Available account balance in cents \(raw API value\) |
| `portfolioValueDollars` | `number` | Yes | Total portfolio value in USD |
| `portfolioValueCents` | `number` | No | Total portfolio value in cents \(raw API value\) |

## Examples

**Workflow node**

```json
{
  "type": "kalshi-get-balance",
  "payload": {
    "subaccount": 1
  },
  "children": [],
  "connector": {
    "type": "kalshi",
    "id": "conn_kalshi"
  }
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/kalshi-get-balance/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "subaccount": 1
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.