Compare commits

..

3 Commits

Author SHA1 Message Date
VQIVS c61d390d38 --wip-- [skip ci] 2025-08-05 14:56:42 +03:30
nfel dc7e4d244b v2: errors ( MARKET_ORDER_UNSUPPORTED_PARTICIPANT_TYPE )
Signed-off-by: nfel <nfilsaraee@gmail.com>
2025-08-05 14:29:32 +03:30
nfel e5886d2e86 v2: fix
Signed-off-by: nfel <nfilsaraee@gmail.com>
2025-08-05 12:46:46 +03:30
2 changed files with 8 additions and 1 deletions
+1
View File
@@ -83,6 +83,7 @@ enum ErrCode {
MARKET_ORDER_CANCELED = 7023;
MARKET_ORDER_FAILED = 7024;
MARKET_ORDER_UNKNOWN = 7025;
MARKET_ORDER_UNSUPPORTED_PARTICIPANT_TYPE = 7045;
ASSET_CAN_NOT_BUY = 7026;
ASSET_BUY_PRICE_IS_ZERO = 7019;
MARKET_ORDER_MATCHING_ERR_REFUND = 7128;
+7 -1
View File
@@ -35,7 +35,7 @@ message CalcMarketReq {
double amount = 4;
double unit_price = 5;
MarketParticipantType participant_type = 6;
market.v1.MarketOrderSide 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 {
@@ -71,6 +71,7 @@ message MarketOrder {
repeated string tags = 20;
repeated string comment = 21;
optional MarketOrder source = 22; // purchase is done via this field
optional uint64 maker_order_id = 23;
// repeated string attachments = 14; // possible files included by
// seller/buyer
}
@@ -112,6 +113,11 @@ message MarketOrderList {
uint32 total_count = 4;
}
/*
* participant_type: IS Maker/Taker
* side: IS Buying/Selling
* req_side: IS input (amount) in irt/asset
* */
message NewMarketReq {
auth.v1.InternalIAM iam = 1;
int64 asset_id = 2;