public IActionResult Update([NotNull][FromBody] AssetPairInputModel model)
 {
     if (model == null)
     {
         throw new ArgumentNullException(nameof(model));
     }
     _assetPairSourceTypeService.UpdateAssetPairQuotesSource(model.AssetPairId, Convert(model.SourceType));
     return(Ok(new { success = true }));
 }
Exemple #2
0
        public async Task <IActionResult> SetManualPrice([NotNull] string assetPairId, decimal bid, decimal ask)
        {
            if (assetPairId == null)
            {
                throw new ArgumentNullException(nameof(assetPairId));
            }
            _assetPairSourceTypeService.UpdateAssetPairQuotesSource(assetPairId,
                                                                    AssetPairQuotesSourceTypeDomainEnum.Manual);
            await _marketMakerService.ProcessNewManualQuotes(assetPairId, bid, ask);

            return(Ok(new { success = true }));
        }