Workflows forTrading TechnologiesX_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 usingxtrdr.

  2. 创建一个事件通知使用createNotifier.

  3. Create an instrument and attach it to the notifier usingcreateInstrument. Optionally, usegetDatato return information on the instrument that you have created.

  4. Close the Trading Technologies X_TRADER connection usingclose.

To submit orders to X_TRADER:

  1. Connect to Trading Technologies X_TRADER usingxtrdr.

  2. 创建一个事件通知使用createNotifier.

  3. Create an instrument and attach it to the notifier usingcreateInstrument. Optionally, usegetDatato return information on the instrument that you have created.

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

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

  6. Route the order for execution using theOrderSetobject created bycreateOrderSetin step 4.

  7. Close the Trading Technologies X_TRADER connection usingclose.

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

  1. Connect to Trading Technologies X_TRADER usingxtrdr.

  2. 创建一个事件通知使用createNotifier.

  3. Create an instrument and attach it to the notifier usingcreateInstrument. UsegetDatato 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 usingcreateOrderSetto define the level of the order status events and event handlers for orders that will be submitted to X_TRADER.

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

  7. Route the order for execution using theOrderSetobject created bycreateOrderSetin step 5.

  8. Close the Trading Technologies X_TRADER connection usingclose.

Related Topics