Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
154 changes: 148 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ rustls = { version = "0.23", default-features = false, features = ["ring"] }
serde_json = "1"
futures = "0.3"
serde = { version = "1", features = ["derive"] }
simulator-api = "0.15.0"
simulator-client = "0.15.0"
simulator-api = { git = "https://github.com/nitro-svm/nitro-stream", rev = "d157f1b9" }
simulator-client = { git = "https://github.com/nitro-svm/nitro-stream", rev = "d157f1b9" }
solana-account = "4.1.0"
solana-account-decoder = "4.1.0"
solana-address = "2.6.0"
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ These examples address real use cases and feature requests, but the protocols us

## [Counterfactual Flow](./src/bin/counterfactual_flow)

When developing a quoting strategy, it's difficult to determine a taker's theoretical size and response to a parameter change. This example reroutes all historical order flow through Jupiter Metis to determine the realized fills that a venue would've captured under various parameter choices, like fees, spread, and oracle bounds.
When developing a quoting strategy, it's difficult to determine a taker's theoretical size and response to a parameter change. This example rewrites the venue's own oracle, curve, or fee account on a shifted schedule — visible only to the router, never to the replayed chain — and reroutes all historical order flow through Jupiter Metis to determine the realized fills the venue would've captured under that change.

## [Measuring Spread and Depth](./src/bin/amm_liquidity)

Expand All @@ -36,6 +36,7 @@ This helps applications gauge the router with the most stable routes, and for ro
Devnet doesn't reveal what a program upgrade does to real users. This example replays historical
mainnet slots with custom program logic, runs the real transactions from those blocks against it, and reports every failure, log line, and token balance change--a regression suite whose inputs are real mainnet traffic.


## Notes
Please see the [documentation](https://docs.termina.technology/documentation) for a comprehensive overview of the API interface and client libraries.

Expand Down
Loading