Commit 1cddc9f8 authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent f784c04c
...@@ -313,7 +313,7 @@ async function adder(sig, qty, date) { ...@@ -313,7 +313,7 @@ async function adder(sig, qty, date) {
console.log('Suc Exchange id',d.id,sig) console.log('Suc Exchange id',d.id,sig)
const [add] = await client const [add] = await client
.multi() .multi()
.set(sig, JSON.stringify({qty: d.amount,price:d.price})) .set(sig, JSON.stringify({pair:d.info.symbol,qty: d.amount,price:d.price}))
.exec(); .exec();
} }
} else { } else {
...@@ -323,7 +323,7 @@ async function adder(sig, qty, date) { ...@@ -323,7 +323,7 @@ async function adder(sig, qty, date) {
console.log('Add Suc With id',d.id,sig) console.log('Add Suc With id',d.id,sig)
const [add] = await client const [add] = await client
.multi() .multi()
.set(sig, JSON.stringify({qty: d.amount,price:d.price})) .set(sig, JSON.stringify({pair:d.info.symbol,qty: d.amount,price:d.price}))
.exec(); .exec();
} }
} }
......
...@@ -34,7 +34,7 @@ async function test () { ...@@ -34,7 +34,7 @@ async function test () {
let d = await exchange.createMarketOrder('ETHUSDT', 'Sell', 0.01, 0) let d = await exchange.createMarketOrder('ETHUSDT', 'Sell', 0.01, 0)
// console.log('Add Suc With id',sig) // console.log('Add Suc With id',sig)
console.log(d) console.log(d.info.symbol)
// const [add] = await client // const [add] = await client
// .multi() // .multi()
// .set(sig, JSON.stringify({qty: d.,price:d.price})) // .set(sig, JSON.stringify({qty: d.,price:d.price}))
......
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