FXCM

Execute FXCM trading operations

Overview

This node integrates with the FXCM trading platform to execute various trading operations programmatically. Specifically, the "Place Limit Order" operation allows users to place a limit order on a specified trading instrument. A limit order is an order to buy or sell a security at a specified price or better, which helps traders control entry prices and manage risk.

Common scenarios for using this node include:

  • Automating trading strategies that require placing limit orders at predefined price levels.
  • Managing forex or CFD trades by setting precise entry points.
  • Integrating trading actions into broader workflows, such as alert-based order placement or portfolio rebalancing.

For example, a trader might use this node to place a buy limit order for EUR/USD at a specific price, with optional stop loss and take profit levels to manage risk and potential gains automatically.

Properties

Name Meaning
Instrument Trading instrument/symbol (e.g., "EUR/USD") on which the limit order will be placed.
Order Type Whether to buy or sell. Options: "Buy", "Sell".
Amount Trading amount in the base currency to be bought or sold.
Price The limit price at which the order should be executed.
Stop Loss Optional stop loss price level to limit potential losses.
Take Profit Optional take profit price level to secure profits when reached.

Output

The node outputs JSON data representing the result of the limit order placement. This typically includes details about the created order such as order ID, status, instrument, amount, price, and any other metadata returned by the FXCM API.

No binary data output is produced by this operation.

Example output structure (simplified):

{
  "orderId": "123456",
  "instrument": "EUR/USD",
  "amount": 1000,
  "price": 1.1200,
  "orderType": "buy",
  "status": "placed",
  "stopLoss": 1.1150,
  "takeProfit": 1.1300
}

Dependencies

  • Requires an active FXCM API connection configured via an API key credential.
  • The node depends on the FxcmClient class internally to communicate with the FXCM API.
  • Proper network connectivity to FXCM's trading servers is necessary.
  • No additional environment variables are explicitly required beyond the API credentials.

Troubleshooting

  • Common issues:

    • Invalid or missing API credentials will cause authentication failures.
    • Incorrect instrument symbols may lead to errors or rejected orders.
    • Placing orders outside market hours or with invalid price levels can cause rejection.
    • Network connectivity problems may interrupt communication with FXCM servers.
  • Error messages:

    • Authentication errors: Verify that the API key credential is correctly set up and has necessary permissions.
    • Validation errors (e.g., invalid price or amount): Check input values for correctness and compliance with FXCM requirements.
    • Rate limiting or server errors: Retry after some time or check FXCM service status.
  • The node supports continuing on failure if enabled, allowing workflows to handle errors gracefully.

Links and References

Discussion