From 952014f88fafbd4ee4cfcb65938c253de95940c1 Mon Sep 17 00:00:00 2001 From: NexVeridian Date: Sat, 8 Jun 2024 02:20:00 -0700 Subject: [PATCH] more get url changes --- src/util.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index 54667e4..1fcd8c0 100644 --- a/src/util.rs +++ b/src/util.rs @@ -347,6 +347,7 @@ impl Ark { ]) .collect()?; } + Ok(df.into()) } @@ -666,7 +667,12 @@ impl Ark { "https://arkfunds.io/api/v2/etf/holdings?symbol={}&date_from={}", tic, last_day ), - (tic, None, Some(Source::ArkFundsIoFull)) => format!( + (tic, None, Some(Source::ArkFundsIoIncremental)) => format!( + "https://arkfunds.io/api/v2/etf/holdings?symbol={}&date_from={}", + tic, default_start_day + ), + + (tic, _, Some(Source::ArkFundsIoFull)) => format!( "https://arkfunds.io/api/v2/etf/holdings?symbol={}&date_from={}", tic, default_start_day ),