Git Product home page Git Product logo

Comments (5)

veox avatar veox commented on May 14, 2024

Note: I've edited the report formatting somewhat.

from python3-krakenex.

veox avatar veox commented on May 14, 2024

Kraken's docs for Ticker suggest that the only thing you can specify for it is pair.

For your use case, what you want is OHLC. Take a look at examples/log-ohlc.py.

Note that since might be tricky, as discussed in #44.

The example doesn't change the default interval, which is touched on in the comments. For a weekly, you'd want 10080 (60247).


Finally,

ticker_1 = k.query_public('Ticker', {'pair': 'XXBTZUSD'},req(start_date, end_date, 1) )

... doesn't work, because the third positional parameter is a krakenex.Connection - see docs.

from python3-krakenex.

veox avatar veox commented on May 14, 2024

Somewhat OT: Take a look at the Reddit thread that spawned the example (also linked from therein).

Depending on your final final use of the retrieved dataframe, you might be disapponted, since the data could change ever so slightly.

At the time of that Reddit discussion, the previous statement used to be true. I've decided not to implement a monitoring bot that would keep checking if the fact has changed, seeing how Kraken's API is already overloaded.

If your application does not require strict historic data consistency, and you decide to go ahead with it, be sure to save responses. krakenex does not provide such facilities.

from python3-krakenex.

veox avatar veox commented on May 14, 2024

OK to close?..

from python3-krakenex.

Metaphor31 avatar Metaphor31 commented on May 14, 2024

from python3-krakenex.

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.