linoxoidunix / cryptobot

bot for algo trading on crypto exchange
GNU General Public License v3.0
1 stars 0 forks source link

Rewrite NewOrder #3

Closed linoxoidunix closed 1 month ago

linoxoidunix commented 1 month ago

auto NewOrder(TickerS ticker_id, PriceD price, Side side, QtyD qty, uint8_t price_prec, uint8_t qty_prec) noexcept -> void;

to

auto NewOrder(const TickerS& ticker_id, PriceD price, Side side, QtyD qty) noexcept -> void;

also need rewrite CancelOrder(TickerS ticker_id, Side side)

linoxoidunix commented 1 month ago

now use such declaration of this function auto Trading::OrderManager::NewOrder(common::ExchangeId exchange_id, const common::TradingPair trading_pair, common::Price price, Side side, common::Qty qty) noexcept -> void

auto Trading::OrderManager::CancelOrder(common::ExchangeId exchange_id, common::TradingPair trading_pair, Side side)