Exemple #1
0
 public Task <TTTrade> ModifyTradeAsync(TTTradeModify request)
 {
     return(PrivateHttpPutAsync <TTTrade, TTTradeModify>("api/v1/trade", request));
 }
Exemple #2
0
 /// <summary>
 /// Modify existing trade
 /// </summary>
 /// <remarks>
 /// Modify trade request is described by the filling following fields:
 /// - **Id** (required) - Trade Id
 /// - **Price** (optional) - New price of the `Limit` / `Stop` trades (price of `Market` trades cannot be changed)
 /// - **StopLoss** (optional) - Stop loss price
 /// - **TakeProfit** (optional) - Take profit price
 /// - **ExpiredTimestamp** (optional) - Expiration date and time for pending trades (`Limit`, `Stop`)
 /// - **Comment** (optional) - Client comment
 /// </remarks>
 /// <param name="request">Modify trade request</param>
 /// <returns>Modified trade</returns>
 public TTTrade ModifyTrade(TTTradeModify request)
 {
     return(ConvertToSync(() => ModifyTradeAsync(request).Result));
 }