diff --git a/market/v1/msg.proto b/market/v1/msg.proto index 9dd42cb..cced1d1 100644 --- a/market/v1/msg.proto +++ b/market/v1/msg.proto @@ -122,6 +122,18 @@ message NewMarketReq { optional bool accepted_contract = 10; } +enum MarketOrdersSortBy { + MO_UNKONWN = 0; + MO_CREATED_AT_ASC = 1; + MO_CREATED_AT_DESC = 2; + MO_UNIT_PRICE_ASC = 3; + MO_UNIT_PRICE_DESC = 4; + MO_TOTAL_PRICE_ASC = 5; + MO_TOTAL_PRICE_DESC = 6; + MO_AVAILABLE_AMOUNT_ASC = 7; + MO_AVAILABLE_AMOUNT_DESC = 8; +} + message OrderListFilter { optional auth.v1.InternalIAM iam = 1; base.v1.BaseQueryParam base = 2; @@ -140,5 +152,5 @@ message OrderListFilter { optional uint64 source_order_id = 15; optional string from_date = 16; optional string to_date = 17; - optional string min_available_amount = 18; + optional MarketOrdersSortBy sort_by = 18; }