Commit 257b054b authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent 352d5379
...@@ -64,7 +64,7 @@ async function createNewOrderNew(token, pair, side, positionSize, signalId) { ...@@ -64,7 +64,7 @@ async function createNewOrderNew(token, pair, side, positionSize, signalId) {
qs.signalId = signalId qs.signalId = signalId
qs.type = 'entry' qs.type = 'entry'
qs.orderType = constant.market qs.orderType = constant.market
console.log('try create order for ',pair,side)
return doRequest(token, qs) return doRequest(token, qs)
...@@ -90,7 +90,7 @@ async function doRequest(token, body) { ...@@ -90,7 +90,7 @@ async function doRequest(token, body) {
}; };
console.log(options) // console.log(options)
//bot.sendMessage('-1001310060634', JSON.stringify(options, null, 2)) //bot.sendMessage('-1001310060634', JSON.stringify(options, null, 2))
...@@ -98,7 +98,7 @@ async function doRequest(token, body) { ...@@ -98,7 +98,7 @@ async function doRequest(token, body) {
request(options, function (error, response, body) { request(options, function (error, response, body) {
if (error) { if (error) {
console.log(error) // console.log(error)
reject('Problem With Request Dynu') reject('Problem With Request Dynu')
} }
resolve(true) resolve(true)
......
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