Fix AlphaVantage to handle adjusted endpoint being premium.
This commit is contained in:
parent
947eaacd29
commit
2787c212d2
6 changed files with 149 additions and 48 deletions
|
@ -47,11 +47,11 @@ name="Alpha Vantage stocks"
|
|||
cmd="pricehist fetch alphavantage TSLA -s 2021-01-04 -e 2021-01-08"
|
||||
read -r -d '' expected <<END
|
||||
date,base,quote,amount,source,type
|
||||
2021-01-04,TSLA,USD,729.77,alphavantage,close
|
||||
2021-01-05,TSLA,USD,735.11,alphavantage,close
|
||||
2021-01-06,TSLA,USD,755.98,alphavantage,close
|
||||
2021-01-07,TSLA,USD,816.04,alphavantage,close
|
||||
2021-01-08,TSLA,USD,880.02,alphavantage,close
|
||||
2021-01-04,TSLA,USD,729.7700,alphavantage,close
|
||||
2021-01-05,TSLA,USD,735.1100,alphavantage,close
|
||||
2021-01-06,TSLA,USD,755.9800,alphavantage,close
|
||||
2021-01-07,TSLA,USD,816.0400,alphavantage,close
|
||||
2021-01-08,TSLA,USD,880.0200,alphavantage,close
|
||||
END
|
||||
run_test "$name" "$cmd" "$expected"
|
||||
|
||||
|
@ -64,7 +64,7 @@ date,base,quote,amount,source,type
|
|||
2021-01-05,AUD,EUR,0.63086,alphavantage,close
|
||||
2021-01-06,AUD,EUR,0.63306,alphavantage,close
|
||||
2021-01-07,AUD,EUR,0.63284,alphavantage,close
|
||||
2021-01-08,AUD,EUR,0.63360,alphavantage,close
|
||||
2021-01-08,AUD,EUR,0.63530,alphavantage,close
|
||||
END
|
||||
run_test "$name" "$cmd" "$expected"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue