Compare commits

...

3 Commits

Author SHA1 Message Date
b133fd5fed Merge pull request 'fix: market order req side type' (#29) from ref/match_order into v2
Reviewed-on: #29
2025-08-05 08:51:23 +00:00
523093779a
maker order id as optional in newmarketorder + typo
Signed-off-by: nfel <nfilsaraee@gmail.com>
2025-08-05 12:20:53 +03:30
4f25639e98 fix: market order req side type 2025-08-05 12:05:48 +03:30
2 changed files with 5 additions and 4 deletions

View File

@ -35,7 +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 = 7; // For Calculation : can be from asset or irt market.v1.MarketOrderSide req_side = 7; // For Calculation : can be from asset or irt
} }
message CalcMarketRes { message CalcMarketRes {
@ -124,6 +124,7 @@ message NewMarketReq {
wallet.v1.BuyAssetSide req_side = 7; wallet.v1.BuyAssetSide req_side = 7;
MarketOrderSide side = 8; MarketOrderSide side = 8;
// TODO: maker market order as optional // TODO: maker market order as optional
optional uint64 maker_order_id = 9;
} }
enum MarketOrdersSortBy { enum MarketOrdersSortBy {

View File

@ -690,11 +690,11 @@ message BuyAssetRes {
/* Contract */ /* Contract */
enum ContractType { enum ContractType {
CONTRACT_TYPE_ICO = 0; CONTRACT_TYPE_ICO = 0;
CONTRACT_TYPE_MARKET = 1; CONTRACT_TYPE_MARKET = 1; //FIXME: Please remove this :)
CONTRACT_TYPE_BNPL = 2; CONTRACT_TYPE_BNPL = 2;
CONTRACT_TYPE_REDEEM = 3; CONTRACT_TYPE_REDEEM = 3;
CONTRACT_TYPE_MARKE_MAKER = 4; CONTRACT_TYPE_MARKET_MAKER = 4;
CONTRACT_TYPE_MARKE_TAKER = 5; CONTRACT_TYPE_MARKET_TAKER = 5;
} }
// agreement_id // agreement_id