Username: Password:

Author Topic: Binance Futures  (Read 11469 times)

Offline ibrahimksm

  • Rookie
  • *
  • Posts: 10
    • View Profile
Binance Futures
« on: May 28, 2021, 03:35:46 PM »
Hello, I want to use binance futures, but the bot keeps giving an error. Can anyone use binance futures among you?


Offline Aitor

  • Administrator
  • *****
  • Posts: 570
  • Telegram: @AitorRuiz Gunbot.shop
    • View Profile
    • Gunbot
Re: Binance Futures
« Reply #1 on: May 29, 2021, 04:09:14 AM »
Hello, I want to use binance futures, but the bot keeps giving an error. Can anyone use binance futures among you?

Hi, are you using v22? What error are you getting?

Offline ibrahimksm

  • Rookie
  • *
  • Posts: 10
    • View Profile
Re: Binance Futures
« Reply #2 on: May 29, 2021, 07:43:11 AM »
Here's an example error when running a standard strategy. It gives a different error for Tradingview. I am using v22.



Current futuresGrid direction: LONG
case: open new position immediately
FuturesGrid round finished
[
  precision: { base: 8, quote: 8, amount: 0, price: 5 },
  minSize: undefined
]
Original price: 0.09311
Original volume: 53.69992482010525
ExchangeError: binance {"code":-4164,"msg":"Order's notional must be no smaller than 5.0 (unless you choose reduce only)"}
    at binance.handleErrors (C:\snapshot\enricoranucci\Desktop\STABLE\node_modules\ccxt.binanceQ\node_modules\ccxt\js\binance.js:2625:19)
    at C:\snapshot\enricoranucci\Desktop\STABLE\node_modules\ccxt.binanceQ\node_modules\ccxt\js\base\Exchange.js:600:18
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async timeout (C:\snapshot\enricoranucci\Desktop\STABLE\node_modules\ccxt.binanceQ\node_modules\ccxt\js\base\functions\time.js)
    at async binance.request (C:\snapshot\enricoranucci\Desktop\STABLE\node_modules\ccxt.binanceQ\node_modules\ccxt\js\binance.js:2633:26)
    at async binance.createOrder (C:\snapshot\enricoranucci\Desktop\STABLE\node_modules\ccxt.binanceQ\node_modules\ccxt\js\binance.js:1739:26) {
  constructor: [Function: ExchangeError]
}
Issue creating buyTV order:{"name":"ExchangeError"}
Error
    at errorHandler (C:\snapshot\enricoranucci\Desktop\STABLE\ctx\js\binanceFutures.js)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

 Error: {}
    at errorHandler (C:\snapshot\enricoranucci\Desktop\STABLE\ctx-wrapper.js)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
Waiting for alerts...



error for Tradingview.


************************************************************************************************
Waiting for alerts...
Waiting for alerts...
emailParsed {
  timestamp: 1622270552293,
  type: 'long',
  exchange: 'binancefutures',
  pair: 'USDT-ADA',
  tl: undefined,
  price: undefined
}
TypeError: Cannot read property 'needLock' of undefined
    at status (C:\snapshot\enricoranucci\Desktop\STABLE\bot.gunbot.js)
    at Timeout._onTimeout (C:\snapshot\enricoranucci\Desktop\STABLE\bot.gunbot.js)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) Uncaught Exception thrown





Offline ibrahimksm

  • Rookie
  • *
  • Posts: 10
    • View Profile
Re: Binance Futures
« Reply #3 on: June 05, 2021, 10:36:43 PM »
I'm experimenting to fix the problem. I bought 200 pieces of ONE for trial. When I set up SHORT_binanceFutures_USDT-ONE_200 alarm from Tradingview site to close it, I got the following error.

Waiting for alerts...
Waiting for alerts...
Waiting for alerts...
emailParsed {
timestamp: 1622927724267,
type: 'short',
exchange: 'binancefutures',
pair: 'USDT-ONE',
tl: '200',
price: undefined
}
emailParsed {
timestamp: 1622927724737,
type: 'short',
exchange: 'binancefutures',
pair: 'USDT-ONE',
tl: '200',
price: undefined
}
TypeError: Cannot read property 'needLock' of undefined
at status (C:\snapshot\enricoranucci\Desktop\STABLE\bot.gunbot.js)
at Timeout._onTimeout (C:\snapshot\enricoranucci\Desktop\STABLE\bot.gunbot.js)
at listOnTimeout (internal/timers.js:549:17)
at processTimers (internal/timers.js:492:7) Uncaught Exception thrown
Loading config...
GUI Server Deployed: http://localhost:5000