Posted By: Dalla
Possible bug getting data from AV - 05/28/18 18:15
Given a simple script like this
and an asset file with this content
I'm seeing an error, and a history.csv file with the follwoing error
If I change the asset name and remove the symbol, and update the script to use my updated asset name, it works
I guess this is an OK work around, but I cannot see why my first example shoudln't work?
Code:
function run() { assetList("AssetsOmx30.csv"); assetHistory("ASSA-B", FROM_AV); }
and an asset file with this content
Code:
Name,Price,Spread,RollLong,RollShort,PIP,PIPCost,MarginCost,Leverage,LotAmount,Commission,Symbol,Type ASSA-B,50,0.1,0,0,0.01,0.01,0,2,1,0.02,ASSA-B.ST
I'm seeing an error, and a history.csv file with the follwoing error
Code:
{ "Error Message": "Invalid API call. Please retry or visit the documentation (https://www.alphavantage.co/documentation/) for TIME_SERIES_DAILY_ADJUSTED." }
If I change the asset name and remove the symbol, and update the script to use my updated asset name, it works
Code:
Name,Price,Spread,RollLong,RollShort,PIP,PIPCost,MarginCost,Leverage,LotAmount,Commission,Symbol,Type ASSA-B.ST,50,0.1,0,0,0.01,0.01,0,2,1,0.02,
I guess this is an OK work around, but I cannot see why my first example shoudln't work?