Coder Social home page Coder Social logo

Comments (2)

amicks avatar amicks commented on June 9, 2024

I'll look into it. If there is no close then it should use the most current price. I wasn't aware that Poloniex API didn't return a close for every date.

from speculator.

amicks avatar amicks commented on June 9, 2024

This was expected behavior. By default, the partition size is 14. Poloniex returned only 7 objects (dates with stats) where each did have a 'close' attribute. You can't make partitions of 14 with size 7.

You can change the partition with the '-pn PARTITION_SIZE' program argument. Additionally, another way to get around this is by changing the number of objects per unit with the '-count COUNT' program argument. Sometimes, despite changing the count argument, Poloniex API does not return enough objects to do a ML model on. This is a constraint on Poloniex and offers a more compelling reason to integrate another crypto market API.

I added an exception to make this more clear if you come across it. I also added assertions and fixed an error when the partitions were too low for the response.

If you feel this issue was resolved, please close it. If not, or you have any other related feedback, feel free to reply. Thanks!

from speculator.

Related Issues (7)

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.