Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot fetch instrument data #83

Open
ludvigbolin opened this issue Dec 8, 2022 · 4 comments
Open

Cannot fetch instrument data #83

ludvigbolin opened this issue Dec 8, 2022 · 4 comments

Comments

@ludvigbolin
Copy link

Similarly to how placeOrder stopped working after 221125, getting data with avanza.getInstrument() also stopped working. @dichai1983 solved placeOrder, perhaps a similar fix can be applied to getInstrument, changing constants in constant.js?

@dichai1983
Copy link

Sorry, will test it when I have time...

INSTRUMENT_PATH = '/_api/market-guide/{}/{}'

@fhqvst
Copy link
Owner

fhqvst commented Dec 14, 2022

I'm working on v4 of this package with a fresh set of paths, plus a mechanism for reading a .har file and generating paths + TypeScript types from it. Hopefully I'll be able to spend some time on this during the holidays.

@dichai1983
Copy link

I'm working on v4 of this package with a fresh set of paths, plus a mechanism for reading a .har file and generating paths + TypeScript types from it. Hopefully I'll be able to spend some time on this during the holidays.

Tack så mycket! God jul!

@ludvigbolin
Copy link
Author

ludvigbolin commented Dec 15, 2022

Thanks for the help! It seems that getInstrument() now fetches different information than before. Most importantly in our case, OrderDepthLevel is not found. Any clue where we can find that now instead? Maybe getOrderbook() still have that information, in that case how would I go about changing the ORDERBOOK_PATH to the correct path?

God Jul @dichai1983 & @fhqvst !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants