Giter VIP home page Giter VIP logo

Comments (5)

dutu avatar dutu commented on June 3, 2024 1

It looks like Poloniex is fiddling with API call throttling. We've seen this before and things returned to normal after a while.
Nevertheless, here are steps you can follow when this specific error is seen:

  • Make sure you don't have other scripts running towards the same Poloniex account or any other linked accounts. Linked accounts share the API limit. Any API use will contribute to the limit, even if it's from a different IP address or using a different API key.

  • Update poloLender Pro config parameters maxApiCallsPerDuration and apiCallsDurationMS (default values are maxApiCallsPerDuration = 8 and apiCallsDurationMS = 1000, which means max 8 API calls every 1000 milliseconds). You can try decreasing maxApiCallsPerDuration (e.g. to a value between 7 and 4) and/or increasing apiCallsDurationMS (e.g. to a value between 1100 and 3000).

    Note: config parameters are stored in config.json file when running the bot locally or on mongodb database when running on Heroku (look for mlab add-on)

from pololender.

 avatar commented on June 3, 2024

So I still have the same issue even when dropping down the API Calls to 4:

 "maxApiCallsPerDuration": 4,
    "apiCallsDurationMS": 1500,
    "advancedSettings": {
      "parallelApiExecution": false,
      "nonceDelay": 500,
      "muteNonceErrors": false
    },

It starts off fine, but after the initial loan offer/ taken/canceled section on startup, it starts to send API limit errors.

I also am seeing consistent crashes every day or so while running the code on an AWS node:

Killed
npm ERR! code ELIFECYCLE
npm ERR! errno 137
npm ERR! [email protected] start: `node -r babel-register app.js`
npm ERR! Exit status 137
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /../../../_logs/2017-10-02T21_12_30_011Z-debug.log

from pololender.

dutu avatar dutu commented on June 3, 2024

Will look into adding some debug info to display the api call numbers.

The crashes seem to happen due to out of memory. When browser is open, output lines are being added to the logtrail and eventually the system runs out of memory.
I will implement discarding older logtrail messages in the next revision; in the meantime, as a workaround, keep your browser closed when not needed for longer periods or time.

from pololender.

 avatar commented on June 3, 2024

Both good revisions. I actually am running the deployment mostly headless on an ec2, and it is sending telegram messages via api, which might be the cause. I only have used the browser for initial setup on the newer version.

from pololender.

dutu avatar dutu commented on June 3, 2024

Please use v1.3.4 and set the environment variable DEBUG=pololender to get the API call debug log.
It indicates the time and number of API calls per second, which can help in troubleshooting and/or reporting the issue to Poloniex.

from pololender.

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.