# simulator-api
Wire types for the Termina simulator's backtest API: requests and responses on the session control
channel, payloads on the session's RPC endpoint, and the bodies of the HTTP endpoints. No I/O.
Most users want [`simulator-client`](https://crates.io/crates/simulator-client) instead. It sends
these types for you, reconnects and reattaches, and re-exports this crate as
`simulator_client::simulator_api`, so the versions always match.
Depend on this crate directly only to speak the protocol over your own transport:
```toml
[dependencies]
simulator-api = "0.31.0"
```
If you depend on both, use the `simulator-api` version your `simulator-client` depends on.
## Docs
- Wire contract (envelope, session lifecycle, casing, encoded fields, compatibility):
<https://docs.rs/simulator-api>
- Guides: the [Termina docs](https://docs.termina.technology/documentation)