Example #1
0
 public async Task CloseAsync([FromBody] ClosePositionOperationModel model, string userId)
 {
     try
     {
         await _hedgeService.ClosePositionAsync(model.AssetId, model.Exchange, userId);
     }
     catch (InvalidOperationException exception)
     {
         throw new ValidationApiException(exception.Message);
     }
 }