From ef2747a0213c6b99463c987f9790130fdb56bf61 Mon Sep 17 00:00:00 2001 From: nfel Date: Tue, 3 Jun 2025 14:33:44 +0330 Subject: [PATCH] v2: purchase reponse changed to reflect post commission calculations Signed-off-by: nfel --- market/v1/msg.proto | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/market/v1/msg.proto b/market/v1/msg.proto index a0719f1..41b9510 100644 --- a/market/v1/msg.proto +++ b/market/v1/msg.proto @@ -88,16 +88,17 @@ 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 optional bool accepted_contract = 4; optional auth.v1.TFA tfa = 5; } + message PurchaseRes { uint64 order_id = 1; - optional uint64 trx_id = 2; - double req_amount = 3; - double commission_amount = 4; - double calculated_amount = 5; - MarketOrderStatus status = 6; + double calculated_irt_amount = 2; + double calculated_asset_amount = 3; + wallet.v1.EffectiveCommission commission = 4; + MarketOrderStatus status = 5; } message MarketOrderList {