# alpha-price (/docs/query/alpha-price)

**Category:** Prices & swaps

## Parameters [#parameters]

| Parameter | Type    | Description                       |
| --------- | ------- | --------------------------------- |
| `netuid`  | integer | Subnet whose alpha price to read. |

## CLI [#cli]

```bash
btcli query alpha-price --netuid <integer> --json
```

## Python [#python]

Namespace method (autocomplete, signature help):

```python
import bittensor as bt

sub = bt.Subtensor()
result = sub.prices.alpha_price(netuid=1)
```

Or dispatch by name, as an agent would:

```python
result = sub.read("alpha_price", netuid=1)
```

Async is the same surface awaited: `async with bt.Subtensor() as client:`.

## On-chain implementation [#on-chain-implementation]

* Runtime API [`SwapRuntimeApi.current_alpha_price`](/code/pallets/subtensor/src/staking/order_swap.rs#L99-L101)

Every file is browsable under [/code](/code) exactly as built into the runtime.
