-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: Use Eastern dates in pagination * feat: More endpoints and examples * doc: add more examples
- Loading branch information
Showing
17 changed files
with
569 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use polygon::rest::{client, GetStockDividends}; | ||
use std::env; | ||
|
||
#[tokio::main] | ||
async fn main() { | ||
env_logger::init(); | ||
let key = env::var("POLYGON_TOKEN").unwrap(); | ||
let client = client(&key); | ||
let req = GetStockDividends { | ||
stocks_ticker: "AAPL".to_string(), | ||
}; | ||
|
||
println!("{:#?}", client.send(&req).await); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use polygon::rest::{client, GetStockSplits}; | ||
use std::env; | ||
|
||
#[tokio::main] | ||
async fn main() { | ||
env_logger::init(); | ||
let key = env::var("POLYGON_TOKEN").unwrap(); | ||
let client = client(&key); | ||
let req = GetStockSplits { | ||
stocks_ticker: "AAPL".to_string(), | ||
}; | ||
|
||
println!("{:#?}", client.send(&req).await); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
extern crate chrono; | ||
extern crate chrono_tz; | ||
pub mod errors; | ||
#[cfg(feature = "rest")] | ||
pub mod rest; | ||
|
Oops, something went wrong.