Commit 96a9cb5a authored by linj's avatar linj

fix set price

parent ad27dfca
...@@ -112,7 +112,7 @@ func (t *trade) GetOnesOrder(isSell bool, addrTokens *pty.ReqAddrAssets) (types. ...@@ -112,7 +112,7 @@ func (t *trade) GetOnesOrder(isSell bool, addrTokens *pty.ReqAddrAssets) (types.
var replys pty.ReplyTradeOrders var replys pty.ReplyTradeOrders
for _, token := range addrTokens.Token { for _, token := range addrTokens.Token {
t.setQueryAsset(&order, 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 { if err != nil && err != types.ErrNotFound {
return nil, err return nil, err
} }
...@@ -176,5 +176,5 @@ func (t *trade) setQueryAsset(order *pty.LocalOrder, tokenSymbol string) { ...@@ -176,5 +176,5 @@ func (t *trade) setQueryAsset(order *pty.LocalOrder, tokenSymbol string) {
order.AssetSymbol = tokenSymbol order.AssetSymbol = tokenSymbol
order.AssetExec = defaultAssetExec order.AssetExec = defaultAssetExec
order.PriceSymbol = t.GetAPI().GetConfig().GetCoinSymbol() order.PriceSymbol = t.GetAPI().GetConfig().GetCoinSymbol()
order.PriceExec = defaultAssetExec order.PriceExec = defaultPriceExec
} }
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