Overview
This node integrates with the StockAlert.pro API to manage stock alerts and webhooks. Specifically, for the Alert - Get operation, it retrieves detailed information about a single alert by its unique ID. This is useful when you want to fetch the current status or configuration of a specific stock alert previously created.
Practical scenarios include:
- Checking the details of an alert before updating or deleting it.
- Retrieving alert data to use in subsequent workflow steps, such as sending notifications or logging.
- Verifying alert existence and status programmatically.
Properties
| Name | Meaning |
|---|---|
| Alert ID | The unique identifier of the alert to retrieve. It is required to specify which alert to get. |
Output
The output is a JSON object representing the alert's data as returned by the StockAlert.pro API. This typically includes fields such as the alert's symbol, condition type, notification method, threshold values, status, creation date, and any parameters related to the alert condition.
Example structure (fields may vary):
{
"id": "string",
"symbol": "AAPL",
"condition": "price_above",
"notification": "email",
"threshold": 150,
"status": "active",
"created_at": "2023-01-01T00:00:00Z",
"parameters": {
"period": 50,
"direction": "above"
}
}
No binary data is output by this operation.
Dependencies
- Requires an API key credential for authenticating with the StockAlert.pro API.
- The node uses HTTP requests to communicate with the StockAlert.pro service endpoints.
- Proper network connectivity to the StockAlert.pro API is necessary.
Troubleshooting
Common issues:
- Providing an invalid or non-existent Alert ID will likely result in an error from the API indicating the alert was not found.
- Network or authentication failures can cause request errors.
Error messages:
"Alert not found": Verify that the Alert ID is correct and that the alert exists.- Authentication errors: Ensure the API key credential is correctly configured and has proper permissions.
- Timeout or connection errors: Check network connectivity and API availability.
To resolve errors, confirm input parameters, credentials, and network status.
Links and References
- StockAlert.pro API Documentation (hypothetical link)
- n8n documentation on Creating Custom Nodes