Some newbie questions..
#1
Hey people, happy to have jumped into Gekko after watching a few of Crypto49ers videos on Youtube. I was aware of Gekko over a year ago but only in the last few days have i jumped into the world of Gekko backtesting. 

After doing lots of reading & exploring, I want to say a massive big thank you to askmike & the other developers for sharing & developing a great thing! Im already looking forward to the new UI and watching closely at the exciting Gekkoplus project! 
So far i'm playing with cheap shit alt coins  Big Grin so i'm happy to have a little punt at live trading here & there over the quiet xmas period... 

I initially installed on OSX and did some backtesting with some data, all went along fine but I did have some problems with npm & dependancies. They got solved easily with crypto49ers great videos and the info on here & the web. Then i used my Poloniex API key...  again all running fine on OSX. 

Then I installed on Pi  - so far only have run the --ui version. 
But i think my first mistake was using the same API key as my backtesting OSX - on my live Pi - i got fairly regular "nonce supplied" errors. A quick search on here and learn there is a 8 per second limit, so I generated a new API key, so one for live Pi & one for backtesting on mac. - But i'm still getting fairly regular nonce errors. on some occasions i get a whole html dump of a cloudflare page (504 error) in my terminal. 

So my 1st question: Are the nonce errors because my live bot is using 1 minute candles? Am i hammering the API too much? is there any easy solution?

2nd question: My pi is using 6gb card, my strat runner is pulling 1 min candles. Is this a ticking time-bomb?  my instinct tells me im going to run out of space in sqlite soon. Any ideas how much GB of disc space a month of 1 minute candles will be. Should i look at a cron script to clean up or is that a bad idea & required for the bot to work? 

3rd question: I sometimes get
Code:
'[ws] stale websocket client, terminating..'
error. So far im not finding much info on that.. Any help or pointers please.  Pi is running the --ui with ethernet connection. Is this because im running the UI? i plan to run the CLi in the future, but i find the UI helpful for now. 

Thanks again Gekko :Smile
  Reply
#2
Quote:After doing lots of reading & exploring, I want to say a massive big thank you to askmike & the other developers for sharing & developing a great thing! Im already looking forward to the new UI and watching closely at the exciting Gekkoplus project!

You are very welcome Smile

Quote:Then I installed on Pi - so far only have run the --ui version.
But i think my first mistake was using the same API key as my backtesting OSX - on my live Pi - i got fairly regular "nonce supplied" errors. A quick search on here and learn there is a 8 per second limit, so I generated a new API key, so one for live Pi & one for backtesting on mac. - But i'm still getting fairly regular nonce errors. on some occasions i get a whole html dump of a cloudflare page (504 error) in my terminal.

Note that if you are only backtesting & importing Gekko doesn't use any API key! The API keys are only used when you start a live trading bot. I am actually in the process of improving the integration specifically with Poloniex, I am noticing these cloudflare outputs to and will be working to stabalize poloniex usage.

Poloniex API is a bit unstable: if Gekko does a request changes are quite big that something goes wrong somewhere and Gekko needs to figure out whether the request (for example an API call to buy) actually went through or not. It's a bit better than the API from Kraken but not by much..

Quote:So my 1st question: Are the nonce errors because my live bot is using 1 minute candles? Am i hammering the API too much? is there any easy solution?

No! Gekko doesn't fetch candles at all, but it fetches trades (and convert those into candles), it will only do this once every few seconds so that shouldn't cause that many problems.

Note that poloniex has limitations on API keys as well as on your IP address. The reasons why you might be experiencing API limits:

- You are importing from poloniex at the same time (from the same IP)
- You are running multiple live Gekkos (tradebot or paper trade) on poloniex (from the same IP or with the same API keys)
- You are using other software that uses the same API keys

Another note: what generally makes it hard for Gekko is if you have slow located or are located far away from the exchange. Poloniex is hosted in US east so if you are in Asia all requests might take some time. The first step is making sure that you have stable internet yourself.

Quote:2nd question: My pi is using 6gb card, my strat runner is pulling 1 min candles. Is this a ticking time-bomb? my instinct tells me im going to run out of space in sqlite soon. Any ideas how much GB of disc space a month of 1 minute candles will be. Should i look at a cron script to clean up or is that a bad idea & required for the bot to work?

sqlite is very compact and 1 minute candles don't store that much on disk. 6GB is more than plenty for years of data over a number of markets. However Gekko also generates log files if you are using the UI, they are stored in the `gekko/logs` folder. If they grow big you can always manually delete them (even when Gekko is running). That said 6GB is a lot of space for Gekko Smile
  Reply
#3
Awesome! thanks for taking the time to answer my questions Mike.
Since posting i have stopped backtesting at the same time and removed my API key from my mac, and my Pi is doing okay now. only about 1 nonce error in 24 hours. (im happy with that) - however, I'm also really looking forward to your improvements on the Poloniex API Smile

I totally hear you about getting close to the US east coast, maybe one day in the future.. For now im experimenting with very low trading volume & low value coin. So perhaps it seems a bit overkill to move to a VPS. Im also only using the basic 'out of the box' RSI - like i said before im happy to dip my toes in for now Smile before looking at introducing more indicators into a strategy.

The candles, yes thanks for the info, A 6GB card is more than enough! Smile
  Reply
#4
Quote:only about 1 nonce error in 24 hours.

Awesome, note that Gekko only logs when this happens but will retry the same request. So it shouldn't be a problem unless you see it a lot.

Quote:For now im experimenting with very low trading volume & low value coin

It might be a bit counter intuitive but generally speaking it's a lot harder to make a profit in these kind of markets due to extra costs involved in trading (spread & slippage). If you are interested check out this video where I explain that: https://www.youtube.com/watch?v=r0yc1sonYvo
  Reply
#5
(12-18-2018, 01:35 PM)askmike Wrote:
Quote:After doing lots of reading & exploring, I want to say a massive big thank you to askmike & the other developers for sharing & developing a great thing! Im already looking forward to the new UI and watching closely at the exciting Gekkoplus project!

You are very welcome Smile

Quote:Then I installed on Pi  - so far only have run the --ui version.
But i think my first mistake was using the same API key as my backtesting OSX - on my live Pi - i got fairly regular "nonce supplied" errors. A quick search on here and learn there is a 8 per second limit, so I generated a new API key, so one for live Pi & one for backtesting on mac. - But i'm still getting fairly regular nonce errors. on some occasions i get a whole html dump of a cloudflare page (504 error) in my terminal.

Note that if you are only backtesting & importing Gekko doesn't use any API key! The API keys are only used when you start a live trading bot. I am actually in the process of improving the integration specifically with Poloniex, I am noticing these cloudflare outputs to and will be working to stabalize poloniex usage.

Poloniex API is a bit unstable: if Gekko does a request changes are quite big that something goes wrong somewhere and Gekko needs to figure out whether the request (for example an API call to buy) actually went through or not. It's a bit better than the API from Kraken but not by much..

Quote:So my 1st question: Are the nonce errors because my live bot is using 1 minute candles? Am i hammering the API too much? is there any easy solution?

No! Gekko doesn't fetch candles at all, but it fetches trades (and convert those into candles), it will only do this once every few seconds so that shouldn't cause that many problems.

Note that poloniex has limitations on API keys as well as on your IP address. The reasons why you might be experiencing API limits:

- You are importing from poloniex at the same time (from the same IP)
- You are running multiple live Gekkos (tradebot or paper trade) on poloniex (from the same IP or with the same API keys)
- You are using other software that uses the same API keys

Another note: what generally makes it hard for Gekko is if you have slow located or are located far away from the exchange. Poloniex is hosted in US east so if you are in Asia all requests might take some time. The first step is making sure that you have stable internet yourself.

Quote:2nd question: My pi is using 6gb card, my strat runner is pulling 1 min candles. Is this a ticking time-bomb?  my instinct tells me im going to run out of space in sqlite soon. Any ideas how much GB of disc space a month of 1 minute candles will be. Should i look at a cron script to clean up or is that a bad idea & required for the bot to work?

sqlite is very compact and 1 minute candles don't store that much on disk. 6GB is more than plenty for years of data over a number of markets. However Gekko also generates log files if you are using the UI, they are stored in the `gekko/logs` folder. If they grow big you can always manually delete them (even when Gekko is running). That said 6GB is a lot of space for Gekko Smile

 Hi mike first big thanks and congratulations for nice job (gekko) and my same problem carlo 3nd questions

3rd question:
Code:
Code:
'[ws] stale websocket client, terminating..'
[Image: 9.jpg]

 have a nice day


Attached Files
.jpg   9.jpg (Size: 87.81 KB / Downloads: 4)
  Reply


Forum Jump:


Users browsing this thread: