6 registered members (TipmyPip, Niels, dBc, Ed_Love, 3run, 1 invisible),
17,577
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Possible bug getting data from AV
#472890
05/28/18 18:15
05/28/18 18:15
|
Joined: Feb 2017
Posts: 369
Dalla
OP
Senior Member
|
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?
|
|
|
Entire Thread
|
Possible bug getting data from AV
|
Dalla
|
05/28/18 18:15
|
|
|