fhqvst / avanza

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

New Feature: Add price alert for a stock #68

Open asifma opened 2 years ago

asifma commented 2 years ago

addPriceAlert

Add an price alert.

Parameters

asifma commented 2 years ago

I just haven't had time to look at it yet.

But in order to remove alerts, you need to (per my understanding).

  1. Get alerts for an underlying stock.
  2. If alert(s) exist
  3. Delete alert by alertID that you received in step 2.

So yes, we should probably introduce getPriceAlert & removePriceAlert