Market Contract proto changes #27
@ -34,18 +34,16 @@ message CalcMarketReq {
|
||||
int64 counter_asset_id = 3;
|
||||
double amount = 4;
|
||||
double unit_price = 5;
|
||||
MarketParticipantType type = 6;
|
||||
wallet.v1.BuyAssetSide req_side =
|
||||
7; // For Calculation : can be from asset or irt
|
||||
MarketParticipantType participant_type = 6;
|
||||
wallet.v1.BuyAssetSide req_side = 7; // For Calculation : can be from asset or irt
|
||||
}
|
||||
|
||||
message CalcMarketRes {
|
||||
double calculated_irt_amount = 1;
|
||||
double calculated_asset_amount = 2;
|
||||
wallet.v1.EffectiveCommission commission = 3;
|
||||
MarketParticipantType type = 4;
|
||||
wallet.v1.BuyAssetSide req_side =
|
||||
5; // For Calculation : can be from asset or irt
|
||||
MarketParticipantType participant_type = 4;
|
||||
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;
|
||||
}
|
||||
@ -95,8 +92,7 @@ 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
|
||||
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;
|
||||
}
|
||||
@ -123,12 +119,11 @@ message NewMarketReq {
|
||||
double amount = 4;
|
||||
double unit_price = 5;
|
||||
// TODO: Change name
|
||||
MarketParticipantType type = 6;
|
||||
MarketParticipantType participant_type = 6;
|
||||
// For Calculation : can be from asset or irt
|
||||
wallet.v1.BuyAssetSide req_side = 7;
|
||||
MarketOrderSide side = 8;
|
||||
// TODO: maker market order as optional
|
||||
|
||||
}
|
||||
|
||||
enum MarketOrdersSortBy {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user