Giter Club home page Giter Club logo

Comments (8)

askmike avatar askmike commented on May 25, 2024

Is it looping the bitcoincharts returned an error, retrying.. all the time and are you able to connect to bitcoincharts.com (on the machine you are running Gekko from)?

from gekko.

kiliankoe avatar kiliankoe commented on May 25, 2024

I am able to connect to bitcoincharts.com from my machine and it is looping the error.

from gekko.

ptigas avatar ptigas commented on May 25, 2024

just add this to your /etc/hosts
176.9.79.196 api.bitcoincharts.com

from gekko.

askmike avatar askmike commented on May 25, 2024

It appears the DNS for api.bitcoincharts.com is not working everyone, you can test it by clicking the link (if it shows 404 Not Found or similar it means that you are able to connect to the server, while This webpage is not available means that you can't) or by running this in a terminal

nslookup api.bitcoincharts.com

If this doesn't return an IP please use the solution by ptigas.

from gekko.

STRML avatar STRML commented on May 25, 2024

I'm seeing a similar issue, but it only seems to be when calculating the most recent candle. Perhaps it's possible that request is malformed. I'm looking into it. From my logs:

# .... calculating candles 98 -> 3....
2013-12-02 07:23:17 (DEBUG):    calculated candle: 2
2013-12-02 07:23:17 (DEBUG):    calced EMA properties for new candle:
2013-12-02 07:23:17 (DEBUG):         short ema 863.980
2013-12-02 07:23:17 (DEBUG):         long ema 919.874
2013-12-02 07:23:17 (DEBUG):         diff ema -6.267
2013-12-02 07:23:17 (DEBUG):    need new trades, refetching bitcoincharts
2013-12-02 07:23:22 (DEBUG):    calculated candle: 1
2013-12-02 07:23:22 (DEBUG):    calced EMA properties for new candle:
2013-12-02 07:23:22 (DEBUG):         short ema 862.138
2013-12-02 07:23:22 (DEBUG):         long ema 913.872
2013-12-02 07:23:22 (DEBUG):         diff ema -5.826
2013-12-02 07:23:22 (DEBUG):    fetching new trades for new bucket at bitcoincharts
2013-12-02 07:23:29 (DEBUG):    did not receive trades for most recent candle, retrying..
2013-12-02 07:23:39 (DEBUG):    fetching new trades for new bucket at bitcoincharts
2013-12-02 07:23:45 (DEBUG):    did not receive trades for most recent candle, retrying..
2013-12-02 07:23:55 (DEBUG):    fetching new trades for new bucket at bitcoincharts
2013-12-02 07:24:02 (DEBUG):    did not receive trades for most recent candle, retrying..
2013-12-02 07:24:12 (DEBUG):    fetching new trades for new bucket at bitcoincharts
2013-12-02 07:24:46 (DEBUG):    bitcoincharts returned an error, retrying..
2013-12-02 07:25:28 (DEBUG):    bitcoincharts returned an error, retrying..
2013-12-02 07:26:11 (DEBUG):    bitcoincharts returned an error, retrying..
2013-12-02 07:26:55 (DEBUG):    bitcoincharts returned an error, retrying..
2013-12-02 07:27:40 (DEBUG):    bitcoincharts returned an error, retrying..
2013-12-02 07:28:24 (DEBUG):    bitcoincharts returned an error, retrying..

The retries just continue on and on in the same pattern.

from gekko.

kiliankoe avatar kiliankoe commented on May 25, 2024

I didn't have an issue with the DNS for bitcoincharts, those always seemed to work fine. BTCe also seems to be working now, although I can't confirm at the moment as all it's generating right now are debug messages, no trade recommendations.

The error STRML (lol at your commit history btw :D) is describing is what I'm seeing when switching to Bitstamp. After a few of those however it throws an error:

TypeError: Cannot call method 'toFixed' of undefined
    at TradingMethod.advice (/home/kiliank/git/gekko/methods/exponential-moving-averages.js:143:42)
    at bound [as advice] (/home/kiliank/git/gekko/node_modules/lodash/dist/lodash.js:725:21)
    at TradingMethod.calculateEMAs (/home/kiliank/git/gekko/methods/exponential-moving-averages.js:98:10)
    at bound [as calculateEMAs] (/home/kiliank/git/gekko/node_modules/lodash/dist/lodash.js:725:21)
    at EventEmitter.emit (events.js:92:17)
    at bound [as emit] (/home/kiliank/git/gekko/node_modules/lodash/dist/lodash.js:725:21)
    at CandleCalculator.calculateCandle (/home/kiliank/git/gekko/methods/realtime-candle-fetcher.js:177:8)
    at bound [as calculateCandle] (/home/kiliank/git/gekko/node_modules/lodash/dist/lodash.js:725:21)
    at CandleCalculator.fillNewBucket (/home/kiliank/git/gekko/methods/realtime-candle-fetcher.js:163:8)
    at bound (/home/kiliank/git/gekko/node_modules/lodash/dist/lodash.js:725:21)

I probably should be opening a new issue for this...

from gekko.

STRML avatar STRML commented on May 25, 2024

Hey, I'm sorry - it looks like the issue goes away after merging in the last few commits from master. I think this is safe to close - is anyone else still having this issue?

from gekko.

askmike avatar askmike commented on May 25, 2024

I'll close it for now, if anyone runs into this issue again I'll reopen this.

from gekko.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.