kraken: parse: order: add ordering

This commit is contained in:
Bruno BELANYI 2022-03-12 02:15:14 +01:00
parent f0ffc652d5
commit 0157c7b193
1 changed files with 7 additions and 1 deletions

View File

@ -49,6 +49,8 @@ struct TradeOrder {
Side side;
/// User/order id.
UserOrderId id;
auto operator<=>(TradeOrder const&) const = default;
};
struct CancelOrder {
@ -56,9 +58,13 @@ struct CancelOrder {
User user;
/// User/order id to cancel.
UserOrderId id;
auto operator<=>(CancelOrder const&) const = default;
};
struct FlushOrder {};
struct FlushOrder {
auto operator<=>(FlushOrder const&) const = default;
};
using Order = std::variant<TradeOrder, CancelOrder, FlushOrder>;