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

Kraken requires "my-secret" to be set in the config #342

Closed
Nophi opened this issue Jun 25, 2016 · 6 comments
Closed

Kraken requires "my-secret" to be set in the config #342

Nophi opened this issue Jun 25, 2016 · 6 comments

Comments

@Nophi
Copy link

Nophi commented Jun 25, 2016

Hi !
Thank you for this work
I have a problem when I activate the trader plugin
May be an option that I have not activated

Here's what Gekko return :

2016-06-25 11:27:53 (INFO): Gekko v0.2.2 started
2016-06-25 11:27:53 (INFO): I'm gonna make you rich, Bud Fox.

2016-06-25 11:27:53 (INFO): Setting up Gekko in realtime mode
2016-06-25 11:27:53 (INFO):
2016-06-25 11:27:53 (INFO): Setting up:
2016-06-25 11:27:53 (INFO): Candle writer
2016-06-25 11:27:53 (INFO): Store candles in a database
2016-06-25 11:27:53 (INFO):

2016-06-25 11:27:53 (INFO): Setting up:
2016-06-25 11:27:53 (INFO): Trading Advisor
2016-06-25 11:27:53 (INFO): Calculate trading advice
2016-06-25 11:27:54 (INFO):

2016-06-25 11:27:56 (DEBUG): Exchange has data spanning 93594 seconds, we need at least 90000 seconds.
2016-06-25 11:27:56 (DEBUG): Exchange returns more data than we need, shift required history to 25 .
2016-06-25 11:27:56 (INFO): Using the trading method: MACD
2016-06-25 11:27:56 (WARN): Warning, trading method has no name
2016-06-25 11:27:56 (INFO): Setting up:
2016-06-25 11:27:56 (INFO): Trader
2016-06-25 11:27:56 (INFO): Follows the advice and create real orders.

Gekko encountered an error and can't continue

Error:

Kraken requires "my-secret" to be set in the config

Meta debug info:

Gekko version: v0.2.2
Nodejs version: v4.2.6

Thanks for your help

@askmike
Copy link
Owner

askmike commented Jun 25, 2016

In the config, did you correctly set your API keys? They should be filled in here:

config.trader = {
  enabled: false,
  key: '',
  secret: '',
  username: '' // your username, only required for specific exchanges.
}

@askmike
Copy link
Owner

askmike commented Jun 25, 2016

Please read the documentation on how to enable a real trader here. I am closing this for now as I highly suspect it is a configuration error. If you have problems, just comment here and I'll help you out.

@askmike askmike closed this as completed Jun 25, 2016
@Nophi
Copy link
Author

Nophi commented Jun 25, 2016

Thank you for your answer,
The API is the same for the config file and exchange file.

config.trader = {
enabled: true,
key: 'same key as the exchange file',
secret: 'same secret as the exchange file',
username: '' // your username, only required for specific exchanges.
}

@askmike
Copy link
Owner

askmike commented Jun 25, 2016

What do you mean same key as the exchange file? You should not put any keys in the exchange file. You only need to put them in the config file.

So:

  1. create a config file
  2. configure config.watch to the exchange you want to watch
  3. configure your trading method with the parameters you think are good.
  4. enable config.trader and put the credentials in like so:

If your API key is 123 and your secret 456:

config.trader = {
  enabled: enabled,
  key: '123',
  secret: '456',
  username: '' // your username, only required for specific exchanges.
}

@Nophi
Copy link
Author

Nophi commented Jun 25, 2016

It's my fault, I replace 'key' and 'secret' in exchange file with my API.
it is resolved
Thank you

@askmike
Copy link
Owner

askmike commented Jun 25, 2016

awesome!

If you have more problems let me know.

On Sat, Jun 25, 2016 at 4:10 PM, Nophi [email protected] wrote:

It's my fault, I replace 'key' and 'secret' in exchange file with my API.
it is resolved
Thank you


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#342 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AA7MDz-eUzB-_fmFlPGZG5brkqCwar5Oks5qPTbHgaJpZM4I-TvR
.

PGP key at keybase.io/mikevanrossum
https://keybase.io/mikevanrossum/key.asc

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

No branches or pull requests

2 participants