feat: add orderID to agreement confirm req
This commit is contained in:
parent
a2adce3670
commit
5785aea771
@ -35,8 +35,7 @@ message CalcMarketReq {
|
|||||||
double amount = 4;
|
double amount = 4;
|
||||||
double unit_price = 5;
|
double unit_price = 5;
|
||||||
MarketParticipantType participant_type = 6;
|
MarketParticipantType participant_type = 6;
|
||||||
optional wallet.v1.BuyAssetSide req_side =
|
optional wallet.v1.BuyAssetSide req_side = 7; // For Calculation : can be from asset or irt
|
||||||
7; // For Calculation : can be from asset or irt
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message CalcMarketRes {
|
message CalcMarketRes {
|
||||||
@ -44,8 +43,7 @@ message CalcMarketRes {
|
|||||||
double calculated_asset_amount = 2;
|
double calculated_asset_amount = 2;
|
||||||
wallet.v1.EffectiveCommission commission = 3;
|
wallet.v1.EffectiveCommission commission = 3;
|
||||||
MarketParticipantType participant_type = 4;
|
MarketParticipantType participant_type = 4;
|
||||||
wallet.v1.BuyAssetSide req_side =
|
wallet.v1.BuyAssetSide req_side = 5; // For Calculation : can be from asset or irt
|
||||||
5; // For Calculation : can be from asset or irt
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message MPHistoryFilter {}
|
message MPHistoryFilter {}
|
||||||
@ -78,8 +76,7 @@ message MarketOrder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message MarketAssetListReq {
|
message MarketAssetListReq {
|
||||||
optional auth.v1.InternalIAM iam =
|
optional auth.v1.InternalIAM iam = 1; // If not set, will returns only public orders which are limited by a
|
||||||
1; // If not set, will returns only public orders which are limited by a
|
|
||||||
optional uint32 page_no = 2;
|
optional uint32 page_no = 2;
|
||||||
optional uint32 page_size = 3;
|
optional uint32 page_size = 3;
|
||||||
}
|
}
|
||||||
@ -91,17 +88,16 @@ message MarketAssetList {
|
|||||||
uint32 total_count = 4;
|
uint32 total_count = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message PurchaseReq {
|
message MatchOrderReq {
|
||||||
auth.v1.InternalIAM iam = 1;
|
auth.v1.InternalIAM iam = 1;
|
||||||
uint64 order_id = 2;
|
uint64 order_id = 2;
|
||||||
double amount = 3;
|
double amount = 3;
|
||||||
wallet.v1.BuyAssetSide req_side =
|
wallet.v1.BuyAssetSide req_side = 7; // For Calculation : can be from asset or irt
|
||||||
7; // For Calculation : can be from asset or irt
|
|
||||||
optional bool accepted_contract = 4;
|
optional bool accepted_contract = 4;
|
||||||
optional auth.v1.TFA tfa = 5;
|
optional auth.v1.TFA tfa = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
message PurchaseRes {
|
message MatchOrderRes {
|
||||||
uint64 order_id = 1;
|
uint64 order_id = 1;
|
||||||
double calculated_irt_amount = 2;
|
double calculated_irt_amount = 2;
|
||||||
double calculated_asset_amount = 3;
|
double calculated_asset_amount = 3;
|
||||||
@ -181,8 +177,9 @@ message DeclineMarketContractReq {
|
|||||||
|
|
||||||
message ConfirmMarketContractReq {
|
message ConfirmMarketContractReq {
|
||||||
auth.v1.InternalIAM iam = 1;
|
auth.v1.InternalIAM iam = 1;
|
||||||
uint64 agreement_id = 2;
|
uint64 order_id = 2;
|
||||||
optional auth.v1.TFA tfa = 3;
|
uint64 agreement_id = 3;
|
||||||
|
optional auth.v1.TFA tfa = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message MarketContractReq {
|
message MarketContractReq {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user