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

Placing an alert #66

Open
ridulfo opened this issue Jul 14, 2021 · 8 comments
Open

Placing an alert #66

ridulfo opened this issue Jul 14, 2021 · 8 comments

Comments

@ridulfo
Copy link

ridulfo commented Jul 14, 2021

Hi!
First of, great repository

It would be very convenient if the library had a function for placing an alert on a stock at a specific price and expiration. I could not find this in the source code. The app supports it, which means that there must be an end-point for it(?).

@fhqvst
Copy link
Owner

fhqvst commented Jul 14, 2021

Yeah, that's a feature I've been wanting to have as well. Should definitely be possible to add - it's just a matter of setting up the proxy and seeing what API calls the app makes.

@ridulfo
Copy link
Author

ridulfo commented Jul 15, 2021

It would be very useful!
I have always wondered how you were able to get the end-points (not an app reverse-engineer myself 😄)!

@ridulfo
Copy link
Author

ridulfo commented Jul 16, 2021

I tried the proxy approach. Got pretty far, but got stuck with a certificate error after certificate error. Perhaps someone else has better luck.

@asifma
Copy link

asifma commented Aug 28, 2021

Hey, couldn't agree more! Very useful repo 👍
This would be very useful!! Anyone that wants to collaborate around this?

Is it possible to use the web-endpoints somehow? E.g.:
https://www.avanza.se/_cqbe/marketing/service/alert/<stock_id>
with payload:
{"price":"87","validUntil":"2022-08-30","notification":true}

@fhqvst
Copy link
Owner

fhqvst commented Aug 29, 2021

IIRC, there are also a couple other routes under /_cqbe that might be useful, such as fetching "inspiration lists" and more.

@asifma
Copy link

asifma commented Aug 29, 2021

@fhqvst : Vill du kika på det ihop med mig? Om du har tid och lust :)

@asifma
Copy link

asifma commented Aug 29, 2021

@fhqvst : Okey, I solved it. Will create a PR!

image

@asifma
Copy link

asifma commented Aug 29, 2021

PR Created, please review when you have time :) -> #68

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