fix api full

This commit is contained in:
Elijah McMorris 2024-06-07 22:08:05 -07:00
parent a9f5137fbf
commit d020e38baa
Signed by: NexVeridian
SSH key fingerprint: SHA256:bsA1SKZxuEcEVHAy3gY1HUeM5ykRJl0U0kQHQn0hMg8

View file

@ -610,14 +610,14 @@ impl Ark {
), ),
}, },
(self::Ticker::ARKVX, None) => { (self::Ticker::ARKVX, None) => {
"https://api.nexveridian.com/ark_holdings?ticker=ARKVX".to_owned() "https://api.nexveridian.com/ark_holdings?ticker=ARKVX&start=2000-01-01".to_owned()
} }
(tic, None) => match source { (tic, None) => match source {
Some(Source::ArkFundsIoFull) => { Some(Source::ArkFundsIoFull) => {
format!("https://arkfunds.io/api/v2/etf/holdings?symbol={}", tic) format!("https://arkfunds.io/api/v2/etf/holdings?symbol={}&date_from=2000-01-01", tic)
} }
_ => { _ => {
format!("https://api.nexveridian.com/ark_holdings?ticker={}", tic) format!("https://api.nexveridian.com/ark_holdings?ticker={}&start=2000-01-01", tic)
} }
}, },
}; };