rost_app 0.2.0

Small library that lets you receive current asset prices.
Documentation
  • Coverage
  • 26.67%
    4 out of 15 items documented3 out of 4 items with examples
  • Size
  • Source code size: 12.41 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 679.44 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 51s Average build duration of successful builds.
  • all releases: 51s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Plebo13

Rost-APP

Rost-APP (Rost-AssetPriceProvider) is a small Rust library that lets you receive current prices for ETFs, stocks or cryptocurrnecies in EUR.

Usage

To use SharePriceProvider simply import it into your python project. There are two main functions available:

  • get_etf_price: Returns the current price of an ETF
  • get_coin_price: Returns the current price of a cryptocurrency

Supported coins:

  • Bitcoin
  • Ethereum
  • Binance Coin
  • Tether
  • Solana
  • Cardano
  • Ripple
  • USD Coin
  • Polkadot
  • Dogecoin

Example

use rost_app::Coin;

let etf_price: f32 = rost_app::get_etf_price(&String::from("LU1781541179")).unwrap();
let coin_price: f32 = rost_app::get_coin_price(&Coin::Bitcoin).unwrap();

The above example prints the current prices of the Lyxor Core MSCI World ETF and the current price of Bitcoin.