Commit eef91d84 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

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