v2: transaction + counter asset
Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
parent
066110edaa
commit
1bca5f3c0c
@ -51,9 +51,11 @@ message PurchaseReq {
|
|||||||
}
|
}
|
||||||
message PurchaseRes {
|
message PurchaseRes {
|
||||||
uint64 order_id = 1;
|
uint64 order_id = 1;
|
||||||
uint64 trx_id = 2;
|
optional uint64 trx_id = 2;
|
||||||
double calculated_amount = 3;
|
double req_amount = 3;
|
||||||
MarketOrderStatus status = 4;
|
double commission_amount = 4;
|
||||||
|
double calculated_amount = 5;
|
||||||
|
MarketOrderStatus status = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
message MarketOrderList {
|
message MarketOrderList {
|
||||||
@ -65,11 +67,12 @@ message NewMarketReq {
|
|||||||
auth.v1.InternalIAM iam = 1;
|
auth.v1.InternalIAM iam = 1;
|
||||||
// wallet.v1.Asset asset = 2;
|
// wallet.v1.Asset asset = 2;
|
||||||
int64 asset_id = 2;
|
int64 asset_id = 2;
|
||||||
double amount = 3;
|
int64 counter_asset_id = 3;
|
||||||
double unit_price = 4;
|
double amount = 4;
|
||||||
MarketOrderSide side = 5;
|
double unit_price = 5;
|
||||||
optional auth.v1.TFA tfa = 6;
|
MarketOrderSide side = 6;
|
||||||
optional bool accepted_contract = 7;
|
optional auth.v1.TFA tfa = 7;
|
||||||
|
optional bool accepted_contract = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum MarketOrderSide {
|
enum MarketOrderSide {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user