Main Content

Workflows for Trading Technologies X_TRADER

You can use X_TRADER® to monitor market price information and submit orders.

To monitor market price information:

  1. Connect to Trading Technologies® X_TRADER using xtrdr.

  2. Create an event notifier using createNotifier.

  3. Create an instrument and attach it to the notifier using createInstrument. Optionally, use getData to return information on the instrument that you have created.

  4. Close the Trading Technologies X_TRADER connection using close.

To submit orders to X_TRADER:

  1. Connect to Trading Technologies X_TRADER using xtrdr.

  2. Create an event notifier using createNotifier.

  3. Create an instrument and attach it to the notifier using createInstrument. Optionally, use getData to return information on the instrument that you have created.

  4. Create an order set using createOrderSet to define the level of the order status events and event handlers for orders that will be submitted to X_TRADER.

  5. Define the order using createOrderProfile. An order profile contains the settings that define an individual order to be submitted.

  6. Route the order for execution using the OrderSet object created by createOrderSet in step 4.

  7. Close the Trading Technologies X_TRADER connection using close.

To monitor market price information and respond to market changes by automatically submitting orders to X_TRADER:

  1. Connect to Trading Technologies X_TRADER using xtrdr.

  2. Create an event notifier using createNotifier.

  3. Create an instrument and attach it to the notifier using createInstrument. Use getData to return information on the instrument that you have created.

  4. Define events by assigning callbacks for validating or invalidating an instrument and performing calculations based on the event. Based on some predefined condition reached when changes in the incoming data satisfy the condition, event callbacks execute the functions in steps 5, 6, and 7.

  5. Create an order set using createOrderSet to define the level of the order status events and event handlers for orders that will be submitted to X_TRADER.

  6. Define the order using createOrderProfile. An order profile contains the settings that define an individual order to be submitted.

  7. Route the order for execution using the OrderSet object created by createOrderSet in step 5.

  8. Close the Trading Technologies X_TRADER connection using close.

Related Topics