示例#1
0
        /// <summary>
        /// calculate price for an order being placed
        /// </summary>
        private void CalculateOrderPrice(Ticker ticker, OrderRequest req)
        {
            var marketPrice = priceMaker.GetFairPrice(ticker.Id, req.OrderSide, settings.PricingSets);

            req.Price = ticker.RoundAndScalePrice(marketPrice);
        }