Skip to content

MT4Account.OnSymbolTickAsync method

Subscribes to real-time tick data for specified symbols.

public IAsyncEnumerable<OnSymbolTickData> OnSymbolTickAsync(IEnumerable<string> symbols, 
    CancellationToken cancellationToken = default)
parameter description
symbols The symbol names to subscribe to.
cancellationToken Optional cancellation token.

Return Value

Async stream of tick data responses.

Exceptions

exception condition
ConnectExceptionMT4 Thrown if the account is not connected.
RpcException If the stream fails.
ApiExceptionMT4 Thrown if an error is received from the stream.

See Also