Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
bf912b3d
Commit
bf912b3d
authored
Sep 03, 2019
by
linj
Committed by
vipwzw
Sep 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
price: add price field in rpc to create tx
parent
844f7dc5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
jrpc.go
plugin/dapp/trade/rpc/jrpc.go
+4
-0
tx.go
plugin/dapp/trade/types/tx.go
+4
-0
No files found.
plugin/dapp/trade/rpc/jrpc.go
View file @
bf912b3d
...
...
@@ -28,6 +28,8 @@ func (jrpc *Jrpc) CreateRawTradeSellTx(in *ptypes.TradeSellTx, result *interface
Stoptime
:
0
,
Crowdfund
:
false
,
AssetExec
:
in
.
AssetExec
,
PriceExec
:
in
.
PriceExec
,
PriceSymbol
:
in
.
PriceSymbol
,
}
reply
,
err
:=
jrpc
.
cli
.
CreateRawTradeSellTx
(
context
.
Background
(),
param
)
...
...
@@ -85,6 +87,8 @@ func (jrpc *Jrpc) CreateRawTradeBuyLimitTx(in *ptypes.TradeBuyLimitTx, result *i
PricePerBoardlot
:
in
.
PricePerBoardlot
,
TotalBoardlot
:
in
.
TotalBoardlot
,
AssetExec
:
in
.
AssetExec
,
PriceExec
:
in
.
PriceExec
,
PriceSymbol
:
in
.
PriceSymbol
,
}
reply
,
err
:=
jrpc
.
cli
.
CreateRawTradeBuyLimitTx
(
context
.
Background
(),
param
)
...
...
plugin/dapp/trade/types/tx.go
View file @
bf912b3d
...
...
@@ -13,6 +13,8 @@ type TradeSellTx struct {
TotalBoardlot
int64
`json:"totalBoardlot"`
Fee
int64
`json:"fee"`
AssetExec
string
`json:"assetExec"`
PriceExec
string
`json:"priceExec"`
PriceSymbol
string
`json:"priceSymbol"`
}
//TradeBuyTx :info for buy order to speficied order
...
...
@@ -37,6 +39,8 @@ type TradeBuyLimitTx struct {
TotalBoardlot
int64
`json:"totalBoardlot"`
Fee
int64
`json:"fee"`
AssetExec
string
`json:"assetExec"`
PriceExec
string
`json:"priceExec"`
PriceSymbol
string
`json:"priceSymbol"`
}
//TradeSellMarketTx :用于向指定买单出售token的信息
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment