Crates.io | quiverquant |
lib.rs | quiverquant |
version | 0.2.2 |
source | src |
created_at | 2021-02-02 06:09:03.911364 |
updated_at | 2021-02-02 07:20:34.941472 |
description | A crate for accessing the QuiverQuant API. |
homepage | |
repository | https://github.com/ajmwagar/quiverquant.rs |
max_upload_size | |
id | 349511 |
size | 47,309 |
quiverquant.rs
:An API Wrapper for the QuiverQuant Data API.
async
/.await
support (regardless of runtime)serde
support for all data-types.[dependencies]
quiverquant = "1"
tokio = { version = "1", features = ["macros"] } # Note: async-std may be used as well
use quiverquant::Client;
#[tokio::main]
async fn main() {
let client = Client::new("<api-key>");
let trades = client.congress_trades().await;
}
Get recent trades from Congressional members
use quiverquant::Client;
#[tokio::main]
async fn main() {
let client = Client::new("<api-key>");
let trades = client.congress_trades_by_ticker("TSLA").await;
}
Get recent TSLA trades from Congressional members
Want to run these examples in your terminal?
git clone git@github.com:ajmwagar/quiverquant.rs
cd quiverquant.rs
QQ_API_KEY=<api_key> cargo run --example congress
See the full example here.
Please refer to the full documentation for more details.
Run tests with: QQ_API_KEY=<api_key> cargo test
Both are accepted and appreciated. Much <3
.