Compare commits

...

4 Commits

Author SHA1 Message Date
a4648b945a feat: add orderID to agreement confirm req 2025-08-03 16:17:51 +03:30
9e3c4b9ff0
Reapply "Can Trade added to asset filter"
This reverts commit fe71cb20dd2fb1a5133a46d73027c65f92c6c0bf.
2025-08-03 15:56:50 +03:30
8c2305b8bd
Revert "market filter - source removed in favour of type and maker_order_id"
This reverts commit a2adce36705c89476ce76a60abe61d9134b77f16.
2025-08-03 14:48:44 +03:30
fe71cb20dd
Revert "Can Trade added to asset filter"
This reverts commit a3c15365f26bddb62104bb25a779c40778f36f6e.
2025-08-03 14:44:58 +03:30

View File

@ -35,8 +35,7 @@ message CalcMarketReq {
double amount = 4;
double unit_price = 5;
MarketParticipantType participant_type = 6;
optional wallet.v1.BuyAssetSide req_side =
7; // For Calculation : can be from asset or irt
optional wallet.v1.BuyAssetSide req_side = 7; // For Calculation : can be from asset or irt
}
message CalcMarketRes {
@ -44,8 +43,7 @@ message CalcMarketRes {
double calculated_asset_amount = 2;
wallet.v1.EffectiveCommission commission = 3;
MarketParticipantType participant_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 {}
@ -78,8 +76,7 @@ message MarketOrder {
}
message MarketAssetListReq {
optional auth.v1.InternalIAM iam =
1; // If not set, will returns only public orders which are limited by a
optional auth.v1.InternalIAM iam = 1; // If not set, will returns only public orders which are limited by a
optional uint32 page_no = 2;
optional uint32 page_size = 3;
}
@ -91,17 +88,16 @@ message MarketAssetList {
uint32 total_count = 4;
}
message PurchaseReq {
message MatchOrderReq {
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;
}
message PurchaseRes {
message MatchOrderRes {
uint64 order_id = 1;
double calculated_irt_amount = 2;
double calculated_asset_amount = 3;
@ -155,8 +151,8 @@ message OrderListFilter {
optional uint64 order_id = 11;
optional uint64 trx_id = 12;
optional bool is_public = 13;
optional MarketParticipantType participant_type = 14;
optional uint64 maker_order_id = 15;
optional bool has_source = 14;
optional uint64 source_order_id = 15;
optional string from_date = 16;
optional string to_date = 17;
optional MarketOrdersSortBy sort_by = 18;
@ -181,8 +177,9 @@ message DeclineMarketContractReq {
message ConfirmMarketContractReq {
auth.v1.InternalIAM iam = 1;
uint64 agreement_id = 2;
optional auth.v1.TFA tfa = 3;
uint64 order_id = 2;
uint64 agreement_id = 3;
optional auth.v1.TFA tfa = 4;
}
message MarketContractReq {