kraken: engine: non-const 'output' on listener

This commit is contained in:
Bruno BELANYI 2022-03-24 17:17:44 +01:00
parent 8474ed0c69
commit d159cfb877
2 changed files with 5 additions and 0 deletions

View file

@ -10,6 +10,10 @@ csv::csv_type const& CsvEngineListener::output() const {
return output_;
}
csv::csv_type& CsvEngineListener::output() {
return output_;
}
void CsvEngineListener::on_acknowledgement(User user, UserOrderId id) {
output_.emplace_back(csv::csv_line_type{
"A",

View file

@ -14,6 +14,7 @@ struct CsvEngineListener : EngineListener {
virtual ~CsvEngineListener();
csv::csv_type const& output() const;
csv::csv_type& output();
/// Called when a new trade or cancel order has been acknowledged.
void on_acknowledgement(User user, UserOrderId id) override;