mirror of
https://github.com/NexVeridian/ark-invest-api-rust-data.git
synced 2025-09-02 09:59:12 +00:00
21shares
This commit is contained in:
parent
acf6858c6c
commit
925760b614
4 changed files with 53 additions and 17 deletions
|
@ -67,7 +67,7 @@ async fn spawn_ark_plan(ticker: Ticker) -> Result<(), Error> {
|
|||
|
||||
async fn ark_etf() {
|
||||
let futures = Ticker::iter()
|
||||
.filter(|&x| x != Ticker::ARKVC)
|
||||
.filter(|&x| x != Ticker::ARKVX)
|
||||
.map(spawn_ark_plan)
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
|
@ -99,7 +99,7 @@ async fn main() {
|
|||
scheduler
|
||||
.every(5.day())
|
||||
.at("11:30 pm")
|
||||
.run(|| async { if spawn_ark_plan(Ticker::ARKVC).await.is_ok() {} });
|
||||
.run(|| async { if spawn_ark_plan(Ticker::ARKVX).await.is_ok() {} });
|
||||
|
||||
loop {
|
||||
scheduler.run_pending().await;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue