v2: sortby in market order
Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
parent
4973dbc901
commit
ea32c4623e
@ -122,6 +122,18 @@ message NewMarketReq {
|
|||||||
optional bool accepted_contract = 10;
|
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 {
|
message OrderListFilter {
|
||||||
optional auth.v1.InternalIAM iam = 1;
|
optional auth.v1.InternalIAM iam = 1;
|
||||||
base.v1.BaseQueryParam base = 2;
|
base.v1.BaseQueryParam base = 2;
|
||||||
@ -140,5 +152,5 @@ message OrderListFilter {
|
|||||||
optional uint64 source_order_id = 15;
|
optional uint64 source_order_id = 15;
|
||||||
optional string from_date = 16;
|
optional string from_date = 16;
|
||||||
optional string to_date = 17;
|
optional string to_date = 17;
|
||||||
optional string min_available_amount = 18;
|
optional MarketOrdersSortBy sort_by = 18;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user