kraken: engine: add 'CsvEngineListern.output'

Otherwise it would be difficult to actually get access to the output...
This commit is contained in:
Bruno BELANYI 2022-03-12 05:58:39 +01:00
parent 0817e7ac7e
commit 4515fc1c36
2 changed files with 6 additions and 0 deletions

View file

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

View file

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