Commit eef91d84 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 132280e8
......@@ -246,14 +246,14 @@ async function syncAllCloser(acc, sig, lastToken) {
if (sig.includes('Buy')) {
try {
d = await acc.exchange.createMarketOrder('BTCUSDT', 'Sell', qty, 0, {
reduceOnly: true,
order_link_id: lastToken
reduceOnly: true
})
} catch (e) {
try {
d = await acc.exchange.createMarketOrder('BTCUSDT', 'Sell', qty, 0, {
reduceOnly: true,
order_link_id: lastToken
})
} catch (e) {
console.error(e)
......@@ -263,14 +263,12 @@ async function syncAllCloser(acc, sig, lastToken) {
} else {
try {
d = await acc.exchange.createMarketOrder('BTCUSDT', 'Buy', qty, 0, {
reduceOnly: true,
order_link_id: lastToken
reduceOnly: true
})
} catch (e) {
try {
d = await acc.exchange.createMarketOrder('BTCUSDT', 'Buy', qty, 0, {
reduceOnly: true,
order_link_id: lastToken
reduceOnly: true
})
} catch (e) {
console.error(e)
......
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