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

price: add price field in rpc to create tx

parent 844f7dc5
...@@ -28,6 +28,8 @@ func (jrpc *Jrpc) CreateRawTradeSellTx(in *ptypes.TradeSellTx, result *interface ...@@ -28,6 +28,8 @@ func (jrpc *Jrpc) CreateRawTradeSellTx(in *ptypes.TradeSellTx, result *interface
Stoptime: 0, Stoptime: 0,
Crowdfund: false, Crowdfund: false,
AssetExec: in.AssetExec, AssetExec: in.AssetExec,
PriceExec: in.PriceExec,
PriceSymbol: in.PriceSymbol,
} }
reply, err := jrpc.cli.CreateRawTradeSellTx(context.Background(), param) reply, err := jrpc.cli.CreateRawTradeSellTx(context.Background(), param)
...@@ -85,6 +87,8 @@ func (jrpc *Jrpc) CreateRawTradeBuyLimitTx(in *ptypes.TradeBuyLimitTx, result *i ...@@ -85,6 +87,8 @@ func (jrpc *Jrpc) CreateRawTradeBuyLimitTx(in *ptypes.TradeBuyLimitTx, result *i
PricePerBoardlot: in.PricePerBoardlot, PricePerBoardlot: in.PricePerBoardlot,
TotalBoardlot: in.TotalBoardlot, TotalBoardlot: in.TotalBoardlot,
AssetExec: in.AssetExec, AssetExec: in.AssetExec,
PriceExec: in.PriceExec,
PriceSymbol: in.PriceSymbol,
} }
reply, err := jrpc.cli.CreateRawTradeBuyLimitTx(context.Background(), param) reply, err := jrpc.cli.CreateRawTradeBuyLimitTx(context.Background(), param)
......
...@@ -13,6 +13,8 @@ type TradeSellTx struct { ...@@ -13,6 +13,8 @@ type TradeSellTx struct {
TotalBoardlot int64 `json:"totalBoardlot"` TotalBoardlot int64 `json:"totalBoardlot"`
Fee int64 `json:"fee"` Fee int64 `json:"fee"`
AssetExec string `json:"assetExec"` AssetExec string `json:"assetExec"`
PriceExec string `json:"priceExec"`
PriceSymbol string `json:"priceSymbol"`
} }
//TradeBuyTx :info for buy order to speficied order //TradeBuyTx :info for buy order to speficied order
...@@ -37,6 +39,8 @@ type TradeBuyLimitTx struct { ...@@ -37,6 +39,8 @@ type TradeBuyLimitTx struct {
TotalBoardlot int64 `json:"totalBoardlot"` TotalBoardlot int64 `json:"totalBoardlot"`
Fee int64 `json:"fee"` Fee int64 `json:"fee"`
AssetExec string `json:"assetExec"` AssetExec string `json:"assetExec"`
PriceExec string `json:"priceExec"`
PriceSymbol string `json:"priceSymbol"`
} }
//TradeSellMarketTx :用于向指定买单出售token的信息 //TradeSellMarketTx :用于向指定买单出售token的信息
......
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