4.7.5.3 Trading Functionality. TradingProfiles: Difference between revisions
From MultiCharts
4.7.5.3 Trading Functionality. TradingProfiles (view source)
Revision as of 13:07, 27 October 2023
, 27 October 2023no edit summary
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
* {{color|blue|int[] PlaceOCOOrders(MTPA_OCOGroupType oco_type, params OrderParams[] orders);}} - submission of several orders within OCO group. This returns a list of successfully submitted order identifiers (IDs). The OCO group can be of two types: | * {{color|blue|int[] PlaceOCOOrders(MTPA_OCOGroupType oco_type, params OrderParams[] orders);}} - submission of several orders within OCO group. This returns a list of successfully submitted order identifiers (IDs). The OCO group can be of two types: | ||
# One Cancel Others means that the cancellation or execution of one order cancels all other orders. | # One Cancel Others means that the cancellation or execution of one order cancels all other orders. | ||
# Reduce Size means that when Order#1 is filled for X contracts the | # Reduce Size means that when Order#1 is filled for X contracts the number of the contracts of the other orders in the group is reduced by X number of contracts. | ||
* {{color|blue|int PlaceOrder(OrderParams order);}} - submission of one order. If submission is successful the identifier (ID) of the order will be returned. Otherwise, an exception like “System.Runtime.InteropServices.COMException.” will be generated. | * {{color|blue|int PlaceOrder(OrderParams order);}} - submission of one order. If submission is successful the identifier (ID) of the order will be returned. Otherwise, an exception like “System.Runtime.InteropServices.COMException.” will be generated. |