# quote-stake (/docs/query/quote-stake)

Use this to compute a safe `limit_price_rao` for the `add_stake_limit` intent.

**Category:** Prices & swaps

## Parameters [#parameters]

| Parameter    | Type    | Description                      |
| ------------ | ------- | -------------------------------- |
| `netuid`     | integer | Subnet to simulate staking into. |
| `amount_tao` | number  | TAO amount to simulate staking.  |

## CLI [#cli]

```bash
btcli query quote-stake --netuid <integer> --amount-tao <number> --json
```

## Python [#python]

Namespace method (autocomplete, signature help):

```python
import bittensor as bt

sub = bt.Subtensor()
result = sub.prices.quote_stake(netuid=1, amount_tao=1.0)
```

Or dispatch by name, as an agent would:

```python
result = sub.read("quote_stake", netuid=1, amount_tao=1.0)
```

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

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

* Runtime API [`SwapRuntimeApi.sim_swap_tao_for_alpha`](/code/runtime/src/lib.rs#L2437-L2465)

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