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

0
.devcontainer/Dockerfile Normal file → Executable file
View file

4
.devcontainer/devcontainer.json Normal file → Executable file
View file

@ -63,7 +63,9 @@
"christian-kohler.path-intellisense",
"Gruntfuggly.todo-tree",
"ms-azuretools.vscode-docker",
"redhat.vscode-yaml"
"redhat.vscode-yaml",
"GitHub.copilot",
"GitHub.copilot-chat"
]
}
}

0
.dockerignore Normal file → Executable file
View file

0
.github/workflows/docker.yml vendored Normal file → Executable file
View file

0
.github/workflows/nextest.yml vendored Normal file → Executable file
View file

0
CONTRIBUTING.md Normal file → Executable file
View file

View file

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"
[dependencies]
polars = { version = "0.32", features = [
polars = { version = "0.35", features = [
"lazy",
"strings",
"parquet",
@ -16,7 +16,7 @@ axum = "0.6"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tokio = { version = "1.26", features = ["full"] }
aide = { version = "0.11", features = ["redoc", "axum"] }
aide = { version = "0.12", features = ["redoc", "axum"] }
schemars = { version = "0.8", features = ["chrono"] }
chrono = { version = "0.4", features = ["serde"] }
glob = { version = "0.3" }

0
Dockerfile Normal file → Executable file
View file

0
LICENSE-Apache Normal file → Executable file
View file

0
LICENSE-MIT Normal file → Executable file
View file

0
README.md Normal file → Executable file
View file

0
docker-compose.yml Normal file → Executable file
View file

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,