¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

What is AlgoId for?


 

¿ªÔÆÌåÓý

Does anyone know what the Order.AlgoId attribute is for?

?

It¡¯s a String value that you can set on an order before you place the order. It is sent to TWS with the rest of the order attributes, but it¡¯s never sent back again, so the OpenOrder() callback, for example, doesn¡¯t return it.

?

The documentation just says ¡°Identifies orders generated by algorithmic trading.¡±, which is pretty much meaningless.

?

I could understand if it were a useful tag for API clients to document the algorithm that generated an order, but that would only be useful if it were returned in OpenOrder() and ExecutionData() callbacks.

?

Any insights appreciated!

?

Richard


 

If I had to guess you can read it via flex query... much like . That said, I couldn't see an "algo id" field in the flex query builder so my next guess is they kindly obfuscated the name.

It was mentioned, briefly, in the .

A more authoritative answer is certainly welcome.


 

¿ªÔÆÌåÓý

You could be right re flex queries.

?

Or it might just be one of those fields that ¡°if you have to ask what it is, then you don¡¯t need to know¡±¡­

?

Nice one IBKR!


 

On Thu, Oct 19, 2023 at 04:17 PM, Richard L King wrote:

Nice one IBKR!

The strike me as pretty funny too ?