Crates.io | rost_app |
lib.rs | rost_app |
version | 0.2.0 |
source | src |
created_at | 2022-02-13 12:25:05.88446 |
updated_at | 2022-02-17 15:16:17.320258 |
description | Small library that lets you receive current asset prices. |
homepage | https://github.com/Plebo13/rost_app |
repository | https://github.com/Plebo13/rost_app |
max_upload_size | |
id | 531739 |
size | 12,412 |
Rost-APP (Rost-AssetPriceProvider) is a small Rust library that lets you receive current prices for ETFs, stocks or cryptocurrnecies in EUR.
To use SharePriceProvider simply import it into your python project. There are two main functions available:
Supported coins:
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.