Actions15
- Calculation Actions
- MarketData Actions
- News Actions
- Symbol Actions
- Trade Actions
- Trading Actions
Overview
This node integrates with the XTB Trading API, allowing users to interact with various trading-related resources. Specifically, for the Symbol resource and the Get Symbol operation, it retrieves detailed information about a specified trading symbol. This is useful in scenarios where traders or automated workflows need to fetch real-time or static data about financial instruments before making trading decisions or performing analysis.
Practical examples include:
- Fetching symbol details such as name, type, or trading conditions before placing an order.
- Validating if a symbol exists or is available for trading on the XTB platform.
- Integrating symbol metadata into dashboards or reports.
Properties
| Name | Meaning |
|---|---|
| Symbol | The symbol to get (e.g., "EURUSD", "AAPL") |
Output
The node outputs a JSON array where each element corresponds to the retrieved symbol information for each input item processed. The json output field contains detailed data about the requested symbol, typically including attributes like symbol name, description, trading parameters, and other metadata provided by the XTB API.
If the node supports binary data output (not explicitly shown in the provided code), it would relate to any associated files or media linked to the symbol, but this is not indicated here.
Dependencies
- Requires an active connection to the XTB Trading API via a WebSocket manager.
- Needs valid API credentials (an API key or authentication token) configured in n8n to authenticate requests.
- Depends on the external
@sharplygroup/xtb-api-jslibrary for API operations. - Uses internal resource classes to handle specific resource-operation logic.
Troubleshooting
- Connection Issues: If the node fails to connect, verify that the API credentials are correct and that the XTB API service is reachable.
- Unknown Resource Error: Occurs if an unsupported resource name is used; ensure the resource parameter is set to "symbol" for this operation.
- Operation Errors: If the symbol does not exist or is invalid, the node may throw an error. Double-check the symbol string for correctness.
- Continue On Fail: If enabled, errors for individual items will be captured in the output instead of stopping execution.
Links and References
- XTB Trading API Documentation
- n8n Documentation on Creating Nodes
- @sharplygroup/xtb-api-js GitHub Repository (for API client details)