Skip to content

Commit

Permalink
This commit will be fixed up
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanel committed Mar 7, 2024
1 parent d7fda11 commit 5f5a8a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/trading/common/src/market-trader-engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 5f5a8a3

Please sign in to comment.