| Crates.io | paracas-instruments |
| lib.rs | paracas-instruments |
| version | 0.3.1 |
| created_at | 2025-12-29 19:29:30.387338+00 |
| updated_at | 2025-12-29 23:04:28.275273+00 |
| description | Instrument registry for paracas tick data downloader |
| homepage | https://github.com/factordynamics/paracas |
| repository | https://github.com/factordynamics/paracas |
| max_upload_size | |
| id | 2011166 |
| size | 27,811 |
Instrument registry for the paracas tick data downloader.
use paracas_instruments::InstrumentRegistry;
let registry = InstrumentRegistry::global();
// Lookup by ID
if let Some(instrument) = registry.get("eurusd") {
println!("{}: decimal_factor = {}", instrument.name(), instrument.decimal_factor());
}
// Filter by category
for instrument in registry.forex() {
println!("{}", instrument.id());
}
// Search
for instrument in registry.search("btc") {
println!("{}", instrument.name());
}
MIT License - see LICENSE for details.