Thanks to visit codestin.com
Credit goes to lib.rs

#mocking #market-data #finance #borsa

borsa-mock

Mock Borsa connector with deterministic fixture data for tests and examples

4 releases

Uses new Rust 2024

0.2.0 Oct 23, 2025
0.1.2 Oct 20, 2025
0.1.1 Oct 19, 2025
0.1.0 Oct 18, 2025

#706 in Testing


Used in borsa

MIT license

85KB
1.5K SLoC

borsa-mock

A mock connector for the Borsa ecosystem used in tests and examples. It provides deterministic fixture data across capabilities (quotes, history, fundamentals, options, analysis, news, search, profile) to enable fast, reproducible scenarios without external network calls.

Usage

Add the crate as a dev-dependency and enable it in tests or examples:

[dev-dependencies]
borsa-mock = "0.2.0"

Then wire it as a provider when constructing borsa::Borsa in your tests.

License

MIT

Dependencies

~16MB
~224K SLoC