-
Notifications
You must be signed in to change notification settings - Fork 3.9k
error live trading #2392
Comments
Can be caused by a number of reasons. To debug you need to tell us more:
|
i use Binance with USDT/BTC and it happens every strartup with live trade. 2018-07-25 11:02:44 (INFO): Setting up Gekko in realtime mode 2018-07-25 11:02:44 (INFO): Setting up: 2018-07-25 11:02:44 (DEBUG): Available local data: /Users/macbookpro/gekko/exchange/portfolioManager.js:72 |
This is the live-config.js file: // Everything is explained here: var config = {}; // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.debug = true; // for additional logging / debugging // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.watch = { // see https://gekko.wizb.it/docs/introduction/supported_exchanges.html // You can set your own tickrate (refresh rate). // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.tradingAdvisor = { // Exponential Moving Averages settings: // MACD settings: // PPO settings: // Uses one of the momentum indicators but adjusts the thresholds when PPO is bullish or bearish // RSI settings: // TSI settings: // Ultimate Oscillator Settings // CCI Settings // StochRSI settings // RSI Bull Bear ADX settings // custom settings: config['talib-macd'] = { // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // do you want Gekko to simulate the profit of the strategy's own advice? config.performanceAnalyzer = { // Want Gekko to perform real trades on buy or sell advice? config.eventLogger = { config.pushover = { // want Gekko to send a mail on buy or sell advice? email: '', // Your Gmail address // You don't have to set your password here, if you leave it blank we will ask it password: '', // Your Gmail Password - if not supplied Gekko will prompt on startup. tag: '[GEKKO] ', // Prefix all email subject lines with this
server: 'smtp.gmail.com', // The name of YOUR outbound (SMTP) mail server. config.pushbullet = { config.kodi = { config.ircbot = { config.telegrambot = { config.twitter = { config.xmppbot = { config.campfire = { config.redisBeacon = { config.slack = { config.ifttt = { config.candleWriter = { config.adviceWriter = { config.backtestResultExporter = { // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.adapter = 'sqlite'; config.sqlite = { dataDirectory: 'history', journalMode: require('./web/isWindows.js') ? 'DELETE' : 'WAL', dependencies: [] // Postgres adapter example config (please note: requires postgres >= 9.5): // Mongodb adapter, requires mongodb >= 3.3 (no version earlier tested) // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Note that these settings are only used in backtesting mode, see here: config.backtest = { // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.importer = { // set this to true if you understand that Gekko will module.exports = config; |
Most likely a problem with your API keys. I will update Gekko to provide
more logging about the exact reason. Meanwhile please generate new ones and
try these.
PS. Please put your logs and configs in code blocks or gists.
…On Wed, Aug 1, 2018 at 4:40 PM, Kwings ***@***.***> wrote:
i use Binance with USDT/BTC and it happens every strartup with live trade.
2018-07-25 11:02:44 (INFO): Setting up Gekko in realtime mode
2018-07-25 11:02:44 (INFO):
2018-07-25 11:02:44 (INFO): Setting up:
2018-07-25 11:02:44 (INFO): Candle writer
2018-07-25 11:02:44 (INFO): Store candles in a database
2018-07-25 11:02:44 (INFO):
2018-07-25 11:02:44 (INFO): Setting up:
2018-07-25 11:02:44 (INFO): Trading Advisor
2018-07-25 11:02:44 (INFO): Calculate trading advice
2018-07-25 11:02:44 (INFO): Using the strategy: RSI_BULL_BEAR_ADX
2018-07-25 11:02:44 (INFO): ====================================
2018-07-25 11:02:44 (INFO): Running RSI Bull and Bear + ADX
2018-07-25 11:02:44 (INFO): ====================================
2018-07-25 11:02:44 (INFO): Make sure your warmup period matches SMA_long
and that Gekko downloads data if needed
2018-07-25 11:02:44 (INFO): The trading method requests 60000 minutes of
historic data. Checking availablity..
2018-07-25 11:02:44 (INFO):
2018-07-25 11:02:44 (DEBUG): Available local data:
2018-07-25 11:02:44 (DEBUG): from: 60000 minutes ago
2018-07-25 11:02:44 (DEBUG): to: 9 minutes ago
2018-07-25 11:02:44 (INFO): Usable local data available, trying to match
with exchange data..
2018-07-25 11:02:44 (DEBUG): Fetching exchange data since 24 minutes ago
2018-07-25 11:02:45 (DEBUG): Available exchange data:
2018-07-25 11:02:45 (DEBUG): from: 24 minutes ago
2018-07-25 11:02:45 (DEBUG): to: 0 minutes ago
2018-07-25 11:02:45 (DEBUG): Stitching datasets
2018-07-25 11:02:45 (INFO): Full history locally available. Seeding the
trading method with all required historical candles.
2018-07-25 11:02:45 (DEBUG): Seeding with:
2018-07-25 11:02:45 (DEBUG): from: 60000 minutes ago
2018-07-25 11:02:45 (DEBUG): to: 25 minutes ago
2018-07-25 11:02:47 (INFO): Setting up:
2018-07-25 11:02:47 (INFO): Trader
2018-07-25 11:02:47 (INFO): Follows the advice and create real orders.
2018-07-25 11:02:47 (DEBUG): syncing private data
2018-07-25 11:02:47 (INFO):
/Users/macbookpro/gekko/exchange/portfolioManager.js:72
throw new errors.ExchangeError(err);
^
Error
at Object. (/Users/macbookpro/gekko/exchange/exchangeErrors.js:9:27)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/Users/macbookpro/gekko/exchange/exchangeChecker.js:4:16)
at Module._compile (module.js:652:30)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2392 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA7MD8HEFR6Jp4kKRv5nZd8mr00Aiwx8ks5uMWmVgaJpZM4VqBIx>
.
--
PGP key at keybase.io/mikevanrossum
<https://keybase.io/mikevanrossum/key.asc>
|
Ok i try to generte new API, Thank You |
It looks like new API fixed the problem. i allso added login info, but dont know if that was necessary or not. |
👍 |
Hi.
What causes this error?
/Users/macbookpro/gekko/exchange/portfolioManager.js:72
throw new errors.ExchangeError(err);
^
Error
at Object. (/Users/macbookpro/gekko/exchange/exchangeErrors.js:9:27)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/Users/macbookpro/gekko/exchange/exchangeChecker.js:4:16)
at Module._compile (module.js:652:30)
The text was updated successfully, but these errors were encountered: