MT4Account.OnOpenedOrdersTicketsAsync method
Subscribes to updates of position and pending order ticket IDs.
public IAsyncEnumerable<OnOpenedOrdersTicketsData> OnOpenedOrdersTicketsAsync(
int intervalMs = 1000, CancellationToken cancellationToken = default)
| parameter | description |
|---|---|
| intervalMs | Polling interval in milliseconds. |
| cancellationToken | Optional cancellation token. |
Return Value
Async stream of ticket ID snapshots.
Exceptions
| exception | condition |
|---|---|
| ConnectExceptionMT4 | Thrown if the account is not connected. |
| RpcException | Thrown if the stream fails. |
| ApiExceptionMT4 | Thrown if the stream returns a known API error. |
See Also
- class OnOpenedOrdersTicketsData
- class MT4Account
- namespace mt4_term_api