Gunbot Shop › Gunbot Forum › Technical Support › Binance Futures
Hello, I want to use binance futures, but the bot keeps giving an error. Can anyone use binance futures among you?
Hi, are you running latest stable version?
https://gunbot.shop/category/downloads/
Did you activate futures trading? Are you sure your pair exists? What error are you getting?
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
Hi, first error seems to be caused by an order that is smaller than the minimum allowed by the exchange for that pair.
Regarding TradingView error: it can be caused by a bad formated alert (not written with CAPS, unexisting pair…). It can also appear if you don’t have any pair added in “Pairs” tab.
Thanks for your answer. 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: https:// localhost:5000
TradingView alerts must be written in CAPS.
I did what you said to try and set this alarm. LONG_BINANCEFUTURES_USDT-LIT_100
and I got this error
Gunbot HFT says: RSI is not good…waiting to buy ************************************************************************************************ emailParsed { timestamp: 1623457109951, type: ‘long’, exchange: ‘binanceFutures’, pair: ‘USDT-LIT’, tl: ‘100’, 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: https:// localhost:5000 Your Gunthy token balance is: 2500 in wallet: 0x3d
Do you have at least 1 pair added to the tab “pairs” for that exchange?