OP
Senior Member
Joined: Feb 2017
Posts: 369
|
Given a simple script like this
function run()
{
assetList("AssetsOmx30.csv");
assetHistory("ASSA-B", FROM_AV);
}
and an asset file with this content
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
{
"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
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?
|