Skip to main content

dxf_add_order_source

Function dxf_add_order_source 

Source
pub unsafe extern "C" fn dxf_add_order_source(
    subscription: dxf_subscription_t,
    source: *const c_char,
) -> ERRORCODE
Expand description

@ingroup c-api-orders

@brief Add a new source to subscription

@details

@warning You must configure order source before {@link dxf_add_symbols}/{@link dxf_add_symbol} call

@param[in] subscription A handle of the subscription where source will be changed @param[in] source Source of order event to add, 4 symbols maximum length

@return {@link DXF_SUCCESS} if order has been successfully added or {@link DXF_FAILURE} on error; {@link dxf_get_last_error} can be used to retrieve the error code and description in case of failure;