mirror of
https://github.com/NexVeridian/ark-invest-api-rust.git
synced 2025-09-02 09:59:11 +00:00
fix
This commit is contained in:
parent
6343159387
commit
4e3dedf7ab
14 changed files with 15 additions and 10 deletions
15
src/main.rs
15
src/main.rs
|
@ -89,12 +89,15 @@ async fn main() {
|
|||
.api_route(
|
||||
"/ark_holdings",
|
||||
get_with(routes::ark_holdings, |mut o| {
|
||||
// test description
|
||||
o = o.id("ARK* ETF Holdings").description(r"
|
||||
| date ┆ ticker ┆ cusip ┆ company ┆ market_value ┆ shares ┆ share_price ┆ weight │
|
||||
│ --- ┆ --- ┆ --- ┆ --- ┆ --- ┆ --- ┆ --- ┆ --- │
|
||||
│ date ┆ str ┆ str ┆ str ┆ i64 ┆ f64 ┆ f64 ┆ f64 │
|
||||
");
|
||||
o = o.id("ARK Holdings").description(
|
||||
r"
|
||||
| date | ticker | cusip | company | market_value | shares | share_price | weight |
|
||||
|------|--------|-------|---------|--------------|--------|-------------|--------|
|
||||
| date | str | str | str | i64 | f64 | f64 | f64 |
|
||||
|
||||
### Example
|
||||
`/ark_holdings?ticker=ARKK&start=2023-01-01&end=2023-03-01`",
|
||||
);
|
||||
description_date(o)
|
||||
}),
|
||||
)
|
||||
|
|
|
@ -56,7 +56,7 @@ pub async fn filter_date_range(
|
|||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, JsonSchema, strum_macros::Display)]
|
||||
pub enum Ticker {
|
||||
pub enum TypeTicker {
|
||||
ARKVX,
|
||||
ARKF,
|
||||
ARKG,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue