kraken: parse: order: add ordering

This commit is contained in:
Bruno BELANYI 2022-03-12 02:15:14 +01:00
parent f0ffc652d5
commit 0157c7b193

View file

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