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

# Running the Crank

> Push your price on-chain 24/7: about five commands, roughly $10/day, or we run it for you

## What the crank does

The crank is a small service that reads your price source and pushes a mid-price update to your pool:
a tiny transaction, thousands of times cheaper than a swap. Your pool quotes around whatever the
crank last pushed, and stops quoting automatically if updates stop arriving (the `delta_staleness`
kill switch; see [Security & controls](/issuers/security-and-controls)).

At one update every 3 seconds with base fees, expect roughly **\$10/day** in transaction costs. Teams
with slower-moving assets can update far less often.

## Run it yourself

The [hadron-cli](https://github.com/Hadron-Fi/hadron-cli) repo is the crank template: point it at your
pool and price source, run it locally to verify, then deploy it to AWS ECS for 24/7 operation.

<Steps>
  <Step title="Clone and install">
    <CodeGroup>
      ```bash Run locally theme={null}
      git clone https://github.com/Hadron-Fi/hadron-cli && cd hadron-cli
      npm install
      npx hadron crank --pool <YOUR_POOL_ADDRESS>
      ```

      ```bash Deploy to AWS (24/7) theme={null}
      npx hadron build
      npx hadron deploy --pool <YOUR_POOL_ADDRESS>
      ```
    </CodeGroup>

    The local run streams your price source and pushes updates from your machine. Use it to verify
    the feed end to end. `build` + `deploy` package the same configuration into a container and stand
    it up on ECS. See the repo README for configuration details and supported price sources.
  </Step>

  <Step title="Configure your price source">
    The CLI ships adapters for common feeds (Pyth, Switchboard, CEX websockets, HTTP polling for a
    NAV endpoint). Your pool profile also sets the update cadence, spread behaviour, and safety
    thresholds.
  </Step>

  <Step title="Verify and walk away">
    The [pool wizard](https://dashboard.hadron.fi/create) and dashboard both show whether your
    midprice is updating. Once it is, daily involvement drops to reading notifications; see
    [Quoting & inventory](/issuers/quoting-and-inventory).
  </Step>
</Steps>

<Note>
  **Don't want to run infrastructure?** We'll run the crank for you against your price feed. Reach
  out on Telegram (@adamgpeters, @srhhadron) and we'll set it up together.
</Note>

## Under the hood

The crank uses the same SDK surface documented in [Oracle Management](/sdk/oracle-management)
(`updateMidprice`, `updateMidpriceAndBaseSpread`, `updateDeltaStaleness`). If you already operate
trading infrastructure, you can skip the CLI entirely and push updates from your own systems; see
[Crank](/sdk/crank-ts).
