Commit e55fd991 authored by linj's avatar linj Committed by vipwzw

local order add fields: priceExec priceSymbol

parent 4e5e8e65
......@@ -193,6 +193,8 @@ func (t *trade) genSellLimit(tx *types.Transaction, sell *pty.ReceiptSellBase,
IsSellOrder: true,
AssetExec: sellorder.AssetExec,
IsFinished: false,
PriceExec: sellorder.PriceExec,
PriceSymbol: sellorder.PriceSymbol,
}
return order
}
......@@ -290,7 +292,9 @@ func (t *trade) genSellMarket(tx *types.Transaction, sell *pty.ReceiptSellBase,
IsSellOrder: true,
AssetExec: sell.AssetExec,
IsFinished: true,
IsFinished: true,
PriceExec: sell.PriceExec,
PriceSymbol: sell.PriceSymbol,
}
return order
}
......@@ -316,6 +320,8 @@ func (t *trade) genBuyLimit(tx *types.Transaction, buy *pty.ReceiptBuyBase, txIn
IsSellOrder: false,
AssetExec: buy.AssetExec,
IsFinished: false,
PriceExec: buy.PriceExec,
PriceSymbol: buy.PriceSymbol,
}
return order
}
......@@ -389,6 +395,8 @@ func (t *trade) genBuyMarket(tx *types.Transaction, buy *pty.ReceiptBuyBase, txI
IsSellOrder: true,
AssetExec: buy.AssetExec,
IsFinished: true,
PriceExec: buy.PriceExec,
PriceSymbol: buy.PriceSymbol,
}
return order
}
......
......@@ -317,6 +317,8 @@ message LocalOrder {
string assetExec = 16;
string txIndex = 17;
bool isFinished = 18;
string priceExec = 19;
string priceSymbol = 20;
}
service trade {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment