2 releases
0.1.2 | Feb 5, 2021 |
---|---|
0.1.1 |
|
0.1.0-alpha | Jan 27, 2021 |
#351 in Finance
15KB
236 lines
finnhub-rs
Rust client for the Finnhub API. Finnhub is a new Stock API which provides endless data for stocks, currencies, and crypto.
Minimal Example:
// Use finnhub-rs client.
use finnhub_rs::client::Client;
fn main() {
// Create a new finnhub client.
let client = Client::new("MY FINNHUB API KEY".to_string());
// Get a list of supported stocks given the exchange.
let res = client.stock_symbol("US".to_string()).await.unwrap();
// Print out the results.
println!("{:#?}", res);
}
lib.rs
:
Finnhub-rs is a client for the Finnhub API implemented in Rust.
Minimal Example:
// Use finnhub-rs client.
use finnhub_rs::client::Client;
fn main() {
// Create a new finnhub client.
let client = Client::new("MY FINNHUB API KEY".to_string());
// Get a list of supported stocks given the exchange.
let res = client.stock_symbol("US".to_string()).await.unwrap();
// Print out the results.
println!("{:#?}", res);
}
Dependencies
~10–22MB
~309K SLoC