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
96a9cb5a
Commit
96a9cb5a
authored
Jan 10, 2020
by
linj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix set price
parent
ad27dfca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
query_v1.go
plugin/dapp/trade/executor/query_v1.go
+2
-2
No files found.
plugin/dapp/trade/executor/query_v1.go
View file @
96a9cb5a
...
...
@@ -112,7 +112,7 @@ func (t *trade) GetOnesOrder(isSell bool, addrTokens *pty.ReqAddrAssets) (types.
var
replys
pty
.
ReplyTradeOrders
for
_
,
token
:=
range
addrTokens
.
Token
{
t
.
setQueryAsset
(
&
order
,
token
)
rows
,
err
:=
listV2
(
t
.
GetLocalDB
(),
"owner_isSell"
,
&
order
,
0
,
0
)
rows
,
err
:=
listV2
(
t
.
GetLocalDB
(),
"owner_
asset_
isSell"
,
&
order
,
0
,
0
)
if
err
!=
nil
&&
err
!=
types
.
ErrNotFound
{
return
nil
,
err
}
...
...
@@ -176,5 +176,5 @@ func (t *trade) setQueryAsset(order *pty.LocalOrder, tokenSymbol string) {
order
.
AssetSymbol
=
tokenSymbol
order
.
AssetExec
=
defaultAssetExec
order
.
PriceSymbol
=
t
.
GetAPI
()
.
GetConfig
()
.
GetCoinSymbol
()
order
.
PriceExec
=
default
Asset
Exec
order
.
PriceExec
=
default
Price
Exec
}
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