tycho-simulation 0.370.2

Provides tools for interacting with protocol states, calculating spot prices, and quoting token swaps.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Price Printer

This example allows you to list all pools over a certain tvl threshold and explore
quotes from each pool.

## How to run

```bash
export RPC_URL=<your-node-rpc-url>
cargo run --release --example price_printer -- --tvl-threshold 1000 --chain <ethereum | base | unichain | arbitrum | bsc | polygon | robinhood>
```

The TVL threshold is denominated in the chain's native token. Omit `--tvl-threshold` to use a
chain-appropriate default targeting ~$200K USD equivalent.

Both the token loader and the protocol stream default to TLS (`https`/`wss`). Pass `--no-tls`
(or set `TYCHO_NO_TLS=true`) when pointing at a local dev instance served over plain HTTP
(e.g. `TYCHO_URL=localhost:4242`).