paracas-instruments

Crates.ioparacas-instruments
lib.rsparacas-instruments
version0.3.1
created_at2025-12-29 19:29:30.387338+00
updated_at2025-12-29 23:04:28.275273+00
descriptionInstrument registry for paracas tick data downloader
homepagehttps://github.com/factordynamics/paracas
repositoryhttps://github.com/factordynamics/paracas
max_upload_size
id2011166
size27,811
refcell (refcell)

documentation

https://docs.rs/paracas

README

paracas-instruments

Instrument registry for the paracas tick data downloader.

Features

  • Registry of 1000+ Dukascopy instruments
  • Lookup by ID (case-insensitive)
  • Filter by category (forex, crypto, stocks, etc.)
  • Search by name pattern

Usage

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());
}

License

MIT License - see LICENSE for details.

Commit count: 0

cargo fmt