v2: purchase reponse changed to reflect post commission calculations
Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
parent
132e5d787b
commit
ef2747a021
@ -88,16 +88,17 @@ message PurchaseReq {
|
|||||||
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 = 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 PurchaseRes {
|
||||||
uint64 order_id = 1;
|
uint64 order_id = 1;
|
||||||
optional uint64 trx_id = 2;
|
double calculated_irt_amount = 2;
|
||||||
double req_amount = 3;
|
double calculated_asset_amount = 3;
|
||||||
double commission_amount = 4;
|
wallet.v1.EffectiveCommission commission = 4;
|
||||||
double calculated_amount = 5;
|
MarketOrderStatus status = 5;
|
||||||
MarketOrderStatus status = 6;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message MarketOrderList {
|
message MarketOrderList {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user