Skip to main content

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). 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 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.
1

Clone and install

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.
2

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.
3

Verify and walk away

The pool wizard and dashboard both show whether your midprice is updating. Once it is, daily involvement drops to reading notifications; see Quoting & inventory.
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.

Under the hood

The crank uses the same SDK surface documented in 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.