Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

Gekko trader bot GDAX - QUERY_DELAY not defined #1727

Closed
blastbeng opened this issue Jan 19, 2018 · 1 comment · Fixed by #1759
Closed

Gekko trader bot GDAX - QUERY_DELAY not defined #1727

blastbeng opened this issue Jan 19, 2018 · 1 comment · Fixed by #1759

Comments

@blastbeng
Copy link

Hello,
i think gdax trader has an undefined variable

i solved that by adding

const QUERY_DELAY = 350;

at line 9

gekko/exchanges/gdax.js:256
}, QUERY_DELAY);
^

ReferenceError: QUERY_DELAY is not defined
at Trader.process (/gekko/exchanges/gdax.js:256:14)
at bound (/gekko/node_modules/lodash/dist/lodash.js:729:21)
at /gekko/core/util.js:28:7
at /gekko/exchanges/gdax.js:92:12
at Request._callback (/gekko/node_modules/gdax/lib/clients/public.js:45:7)
at Request.self.callback (/gekko/node_modules/gdax/node_modules/request/request.js:187:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request. (/gekko/node_modules/gdax/node_modules/request/request.js:1044:10)
at emitOne (events.js:116:13)

@cmroche
Copy link
Contributor

cmroche commented Jan 22, 2018

@blast1987 Thanks, looks like a bad merge.. had another similar issue recently. I'll send a PR with a fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants