mirror of
https://github.com/NexVeridian/ark-invest-api-rust.git
synced 2025-09-01 17:39:10 +00:00
fix
This commit is contained in:
parent
6343159387
commit
4e3dedf7ab
14 changed files with 15 additions and 10 deletions
0
.devcontainer/Dockerfile
Normal file → Executable file
0
.devcontainer/Dockerfile
Normal file → Executable file
4
.devcontainer/devcontainer.json
Normal file → Executable file
4
.devcontainer/devcontainer.json
Normal file → Executable 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
0
.dockerignore
Normal file → Executable file
0
.github/workflows/docker.yml
vendored
Normal file → Executable file
0
.github/workflows/docker.yml
vendored
Normal file → Executable file
0
.github/workflows/nextest.yml
vendored
Normal file → Executable file
0
.github/workflows/nextest.yml
vendored
Normal file → Executable file
0
CONTRIBUTING.md
Normal file → Executable file
0
CONTRIBUTING.md
Normal file → Executable 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
0
Dockerfile
Normal file → Executable file
0
LICENSE-Apache
Normal file → Executable file
0
LICENSE-Apache
Normal file → Executable file
0
LICENSE-MIT
Normal file → Executable file
0
LICENSE-MIT
Normal file → Executable file
0
README.md
Normal file → Executable file
0
README.md
Normal file → Executable file
0
docker-compose.yml
Normal file → Executable file
0
docker-compose.yml
Normal file → Executable file
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