diff --git a/src/trading/common/src/market-trader-engine.cpp b/src/trading/common/src/market-trader-engine.cpp index d0179494..e7fe6c70 100644 --- a/src/trading/common/src/market-trader-engine.cpp +++ b/src/trading/common/src/market-trader-engine.cpp @@ -98,7 +98,7 @@ void MarketTraderEngine::buy(const MarketOrderBook &marketOrderBook, TraderComma break; } case PriceStrategy::kTaker: { - const auto [totalMatchedAmount, avgPrice] = marketOrderBook.avgPriceAndMatchedVolumeTaker(from); + const auto [totalMatchedAmount, avgPrice] = marketOrderBook.avgPriceAndMatchedAmountTaker(from); _marketTraderEngineContext.placeBuyTakerOrder(marketOrderBook.time(), avgPrice, totalMatchedAmount); break; @@ -125,7 +125,7 @@ void MarketTraderEngine::sell(const MarketOrderBook &marketOrderBook, TraderComm break; } case PriceStrategy::kTaker: { - const auto [totalMatchedAmount, avgPrice] = marketOrderBook.avgPriceAndMatchedVolumeTaker(volume); + const auto [totalMatchedAmount, avgPrice] = marketOrderBook.avgPriceAndMatchedAmountTaker(volume); _marketTraderEngineContext.placeSellTakerOrder(marketOrderBook.time(), avgPrice, totalMatchedAmount); break;