This commit is contained in:
Elijah McMorris 2023-11-23 18:24:23 +00:00
parent 6343159387
commit 4e3dedf7ab
Signed by: NexVeridian
SSH key fingerprint: SHA256:bsA1SKZxuEcEVHAy3gY1HUeM5ykRJl0U0kQHQn0hMg8
14 changed files with 15 additions and 10 deletions

View file

@ -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)
}),
)

View file

@ -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,