v2: format + orderlist filter ( from,to date + min avaiable amount )
Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
parent
8662183528
commit
4973dbc901
@ -36,7 +36,8 @@ message CalcMarketReq {
|
||||
double amount = 4;
|
||||
double unit_price = 5;
|
||||
MarketParticipantType type = 6;
|
||||
wallet.v1.BuyAssetSide req_side = 7; // For Calculation : can be from asset or irt
|
||||
wallet.v1.BuyAssetSide req_side =
|
||||
7; // For Calculation : can be from asset or irt
|
||||
}
|
||||
|
||||
message CalcMarketRes {
|
||||
@ -44,7 +45,8 @@ message CalcMarketRes {
|
||||
double calculated_asset_amount = 2;
|
||||
wallet.v1.EffectiveCommission commission = 3;
|
||||
MarketParticipantType type = 4;
|
||||
wallet.v1.BuyAssetSide req_side = 5; // For Calculation : can be from asset or irt
|
||||
wallet.v1.BuyAssetSide req_side =
|
||||
5; // For Calculation : can be from asset or irt
|
||||
}
|
||||
|
||||
message MPHistoryFilter {}
|
||||
@ -76,19 +78,19 @@ message MarketOrder {
|
||||
|
||||
message MarketAssetListReq {
|
||||
base.v1.BaseQueryParam base = 1;
|
||||
optional auth.v1.InternalIAM iam = 2; // If not set, will returns only public orders which are limited by a
|
||||
optional auth.v1.InternalIAM iam =
|
||||
2; // If not set, will returns only public orders which are limited by a
|
||||
// white list
|
||||
}
|
||||
|
||||
message MarketAssetList {
|
||||
repeated wallet.v1.Asset list = 1;
|
||||
}
|
||||
message MarketAssetList { repeated wallet.v1.Asset list = 1; }
|
||||
|
||||
message PurchaseReq {
|
||||
auth.v1.InternalIAM iam = 1;
|
||||
uint64 order_id = 2;
|
||||
double amount = 3;
|
||||
wallet.v1.BuyAssetSide req_side = 7; // For Calculation : can be from asset or irt
|
||||
wallet.v1.BuyAssetSide req_side =
|
||||
7; // For Calculation : can be from asset or irt
|
||||
optional bool accepted_contract = 4;
|
||||
optional auth.v1.TFA tfa = 5;
|
||||
}
|
||||
@ -113,7 +115,8 @@ message NewMarketReq {
|
||||
double amount = 4;
|
||||
double unit_price = 5;
|
||||
MarketParticipantType type = 6;
|
||||
wallet.v1.BuyAssetSide req_side = 7; // For Calculation : can be from asset or irt
|
||||
wallet.v1.BuyAssetSide req_side =
|
||||
7; // For Calculation : can be from asset or irt
|
||||
MarketOrderSide side = 8;
|
||||
optional auth.v1.TFA tfa = 9;
|
||||
optional bool accepted_contract = 10;
|
||||
@ -135,4 +138,7 @@ message OrderListFilter {
|
||||
optional bool is_public = 13;
|
||||
optional bool has_source = 14;
|
||||
optional uint64 source_order_id = 15;
|
||||
optional string from_date = 16;
|
||||
optional string to_date = 17;
|
||||
optional string min_available_amount = 18;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user