MT5Translation

sealed interface MT5Translation

Result of translating a single qkt OrderRequest to the MT5 wire shape.

Most shapes produce a Single wire request. Composite shapes — only StandaloneOCO today — produce two requests that the broker submits as a group. The Composite.groupId is the qkt-side identifier; both legs carry it in their MT5OrderRequest.comment so the cancel-on-fill path can correlate sibling tickets without relying on a server-side "group" concept (MT5 has none — each ticket is independent).

Inheritors

Types

Link copied to clipboard
data class Composite(val requests: List<MT5OrderRequest>, val groupId: String) : MT5Translation
Link copied to clipboard
data class Single(val request: MT5OrderRequest) : MT5Translation