avanza
avanza copied to clipboard
New Feature: Add price alert for a stock
addPriceAlert
Add an price alert.
Parameters
-
instrumentId
[String][52] The ID of the instrument to add. -
options
[Object][51] Alert options.-
options.price
[Number][54] The target price to receive an alert on. -
options.validUntil
[String][52] A date on the form YYYY-MM-DD. Cancels alert if this date is
-
I just haven't had time to look at it yet.
But in order to remove alerts, you need to (per my understanding).
- Get alerts for an underlying stock.
- If alert(s) exist
- Delete alert by alertID that you received in step 2.
So yes, we should probably introduce getPriceAlert & removePriceAlert