StockAlert icon

StockAlert

Interact with StockAlert.pro API

Actions8

Overview

The node integrates with the StockAlert.pro API to manage stock alerts. Specifically, the Update Alert operation allows users to change the status of an existing alert, such as activating or pausing it. This is useful in scenarios where you want to temporarily disable an alert without deleting it or reactivate a paused alert based on changing market conditions.

Practical example:
A trader sets up alerts for certain stock price thresholds. When they want to pause notifications during off-market hours or holidays, they can use this node to update the alert status to "Paused". Later, they can reactivate it by updating the status back to "Active".

Properties

Name Meaning
Alert ID The unique identifier of the alert to update.
Status New status for the alert. Options: Active (alert is enabled), Paused (alert disabled).

Output

The output JSON contains the updated alert data returned from the API after the status change. It typically includes fields describing the alert's current configuration and its new status.

Example structure (simplified):

{
  "id": "string",
  "symbol": "string",
  "condition": "string",
  "status": "active" | "paused",
  "notification": "email" | "sms",
  "parameters": { /* optional parameters depending on alert type */ },
  "created_at": "timestamp",
  "updated_at": "timestamp"
}

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the StockAlert.pro API.
  • Needs an API authentication token configured in n8n credentials to authorize requests.
  • The node uses HTTP methods (PUT) to update alert status via the API endpoint /alerts/{alertId}.

Troubleshooting

  • Common issues:

    • Invalid or missing Alert ID: The API will reject requests if the alert ID does not exist or is malformed.
    • Unauthorized errors: Occur if the API key credential is missing, expired, or invalid.
    • Network connectivity problems may cause request failures.
  • Error messages and resolutions:

    • "Alert not found": Verify that the Alert ID is correct and the alert exists.
    • "Unauthorized" or "Invalid API key": Check that the API key credential is properly set up in n8n.
    • Timeout or network errors: Ensure stable internet connection and that the StockAlert.pro API is reachable.

Links and References

Discussion