Table of Contents

Method OrderModifyAsync

Namespace
ViiSync.AccountApi
Assembly
ViiSync.AccountApi.dll

OrderModifyAsync(long, string, double, double, OrderType, double, double, long, double, Expiration?, string?, CancellationToken)

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

ticket long
symbol string
lots double
price double
type OrderType
sl double
tp double
expertID long
stoplimit double
expiration Expiration
comment string
cancellation CancellationToken

Returns

Task

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) — full
  • MT5API.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