Topics

Forum Topics not found

Replies

monica46cole
06 Mar 2025, 11:24 ( Updated at: 10 Mar 2025, 09:13 )

Hello,
Sometimes, limit orders can convert to market orders when triggered, depending on the API or platform you're using. To fix this, ensure that you explicitly specify the order types in your script and check the API documentation for any nuances related to order execution.

Regarding the orderId, it should remain the same throughout the order's lifecycle. However, discrepancies like receiving an Executionevent with orderId 0 or positionId 0 might indicate issues with how the API handles execution events or how your script processes these events. Proper logging and handling of these events can help resolve these discrepancies.


@monica46cole