IB TWS has many fields or attributes for orders. Many of them do not apply to EFS-AT because not all order types are supported from EFS.
There is an Order Ref field on TWS which typically starts with "{ORTH}". Is there a way EFS can set this field to some other value, which varies depending on the situation or the source script submitting the order? I would like to use this field to convey information to another external program. However, the Order Ref field could also be useful when multiple scripts trade the same ticker but implement different strategies.
My inquiry can be extrapolated to any order attribute. I checked Order.getFieldNames for a list of fields which can be read, and there are many fields which I do not know how to set from EFS (if the need existed). Is there a way to modify other order attributes from EFS (even a complicated approach)? For example, Order.setFieldValue( FieldName, OrderID ) would probably be the function I am seeking. There may be some dangers with such functionality, but used in a responsible manner setting order field values need not introduce new risks.
There is an Order Ref field on TWS which typically starts with "{ORTH}". Is there a way EFS can set this field to some other value, which varies depending on the situation or the source script submitting the order? I would like to use this field to convey information to another external program. However, the Order Ref field could also be useful when multiple scripts trade the same ticker but implement different strategies.
My inquiry can be extrapolated to any order attribute. I checked Order.getFieldNames for a list of fields which can be read, and there are many fields which I do not know how to set from EFS (if the need existed). Is there a way to modify other order attributes from EFS (even a complicated approach)? For example, Order.setFieldValue( FieldName, OrderID ) would probably be the function I am seeking. There may be some dangers with such functionality, but used in a responsible manner setting order field values need not introduce new risks.
Comment