fhqvst / avanza

A JavaScript client for the unofficial Avanza API
MIT License
229 stars 59 forks source link

OHLC Data for intraday #5

Closed hrudelius closed 7 years ago

hrudelius commented 7 years ago

Hi,

I was hoping to use the API for pulling intraday data. The documentation for getChartdata indicates the result is "an array of OHLC data", however when I try getting data for "TODAY" it only returns a single array (including "last trade price"?). Have I misunderstood something? Is there a way to get OHLC?

/hrudelius

fhqvst commented 7 years ago

No, you're correct, the documentation is faulty. As far as I know, there is no way of retrieving OHLC data.

hrudelius commented 7 years ago

Thanks, I know it's off topic but do you know if it's possible with the nordnet API? It (again) appears to be using "GET /next/2/tradables/intraday/{tradables}"?

fhqvst commented 7 years ago

I haven't used it myself, but it seems like it would work. If that doesn't do it, there are quite a few other resources which might have what you're looking for, such as Quandl, VA Finans or 4-traders.