Method OrderModifyAsync
- Namespace
- ViiSync.AccountApi
- Assembly
- ViiSync.AccountApi.dll
OrderModifyAsync(long, string, double, double, OrderType, double, double, long, double, Expiration?, string?, CancellationToken)
Async OrderModify(long, string, double, double, OrderType, double, double, long, double, Expiration?, string?) (MT5 OrderModifyAsyncTask).
public Task OrderModifyAsync(long ticket, string symbol, double lots, double price, OrderType type, double sl, double tp, long expertID = 0, double stoplimit = 0, Expiration? expiration = null, string? comment = null, CancellationToken cancellation = default)
Parameters
ticketlongsymbolstringlotsdoublepricedoubletypeOrderTypesldoubletpdoubleexpertIDlongstoplimitdoubleexpirationExpirationcommentstringcancellationCancellationToken
Returns
Remarks
MT5 equivalent
MT5API.OrderModifyAsyncTask(long ticket, string symbol, double lots, double price, OrderType type, double sl, double tp, long expertID = 0, double stoplimit = 0, Expiration expiration = null, string comment = null)— fullMT5API.OrderModifyAsync(int requestId, long ticket, string symbol, double lots, double price, OrderType type, double sl, double tp, long expertID = 0, double stoplimit = 0, Expiration expiration = null, string comment = null)— full (different shape): MT5 void(requestId, …) variant → Task-returning OrderXxxAsync; progress on OnOrderProgress