GithubHelp home page GithubHelp logo

Comments (9)

midasSSS avatar midasSSS commented on August 25, 2024

The issue is not related to this package; however, it was fixed on the API side.

from twelvedata-python.

SimonDamberg avatar SimonDamberg commented on August 25, 2024

@midasSSS Yes, sorry. However, is it still not fixed on the API side. Setting outputsize seems to lead to duplicate dates, see below.

https://api.twelvedata.com/time_series?apikey=INSERTAPIKEY&interval=1day&start_date=2020-02-01 00:00:00&end_date=2020-02-28 00:00:00&symbol=AMD&outputsize=200

https://api.twelvedata.com/time_series?apikey=INSERTAPIKEY&interval=1day&start_date=2020-02-01 00:00:00&end_date=2020-02-28 00:00:00&symbol=MSFT&outputsize=200

Even when outputsize is less than the specified range, duplicates are returned.

https://api.twelvedata.com/time_series?apikey=INSERTAPIKEY&interval=1day&start_date=2020-02-01 00:00:00&end_date=2020-02-28 00:00:00&symbol=AMD&outputsize=15

However, not setting outputsize leads to outputs that have dates not in the expected range. For example, the query below should start at 2020-02-01 but starts at 2020-01-07

https://api.twelvedata.com/time_series?apikey=INSERTAPIKEY&interval=1day&start_date=2020-01-01 00:00:00&end_date=2020-02-01 00:00:00&symbol=AMD

https://api.twelvedata.com/time_series?apikey=INSERTAPIKEY&interval=1day&start_date=2020-02-01 00:00:00&end_date=2020-02-28 00:00:00&symbol=MSFT

from twelvedata-python.

midasSSS avatar midasSSS commented on August 25, 2024

Thanks for the feedback. I believe that now it should be resolved.

from twelvedata-python.

SimonDamberg avatar SimonDamberg commented on August 25, 2024

@midasSSS No, still not fixed. I tried some other symbols and they all have duplicate data like the initial bug...

https://api.twelvedata.com/time_series?apikey=INSERTAPIKEY&interval=1day&start_date=2020-01-01 00:00:00&end_date=2020-02-01 00:00:00&symbol=AMC

https://api.twelvedata.com/time_series?apikey=INSERTAPIKEY&interval=1day&start_date=2020-01-01 00:00:00&end_date=2020-02-01 00:00:00&symbol=MMM

https://api.twelvedata.com/time_series?apikey=INSERTAPIKEY&interval=1day&start_date=2020-01-01 00:00:00&end_date=2020-02-01 00:00:00&symbol=IVACC&country=Sweden

from twelvedata-python.

midasSSS avatar midasSSS commented on August 25, 2024

Our team checked again, and there should be no duplicates now.

from twelvedata-python.

SimonDamberg avatar SimonDamberg commented on August 25, 2024

@midasSSS Still not fixed... Just to name a few examples:

https://api.twelvedata.com/time_series?apikey=INSERTAPIKEY&interval=1day&start_date=2020-01-01 00:00:00&end_date=2020-02-01 00:00:00&symbol=KESKOB

https://api.twelvedata.com/time_series?apikey=INSERTAPIKEY&interval=1day&start_date=2020-01-01 00:00:00&end_date=2020-02-01 00:00:00&symbol=CGCBV

https://api.twelvedata.com/time_series?apikey=INSERTAPIKEY&interval=1day&start_date=2020-01-01 00:00:00&end_date=2020-02-01 00:00:00&symbol=FORTUM

from twelvedata-python.

midasSSS avatar midasSSS commented on August 25, 2024

@SimonDamberg, this market should be correct now.

from twelvedata-python.

SimonDamberg avatar SimonDamberg commented on August 25, 2024

@midasSSS Not completely correct. The query below has duplicate dates for 2018-03-22, its first listed date on the market.

https://api.twelvedata.com/time_series?apikey=INSERTAPIKEY&interval=1day&start_date=2018-03-15 00:00:00&end_date=2020-03-31 00:00:00&symbol=HARVIA

from twelvedata-python.

SimonDamberg avatar SimonDamberg commented on August 25, 2024

@midasSSS Here are more examples for duplicates. Please check this issue on all your assets, I've had to ask five times now...

https://api.twelvedata.com/time_series?apikey=INSERTAPIKEY&interval=1day&start_date=2021-02-05 00:00:00&end_date=2021-02-06 00:00:00&symbol=EQNR&country=Norway

https://api.twelvedata.com/time_series?apikey=INSERTAPIKEY&interval=1day&start_date=2021-02-05 00:00:00&end_date=2021-02-06 00:00:00&symbol=AKAST&country=Norway

And on Copenhagen exchange

https://api.twelvedata.com/time_series?apikey=INSERTAPIKEY&interval=1day&start_date=2020-10-20 00:00:00&end_date=2020-10-21 00:00:00&symbol=VWS

https://api.twelvedata.com/time_series?apikey=INSERTAPIKEY&interval=1day&start_date=2020-10-20 00:00:00&end_date=2020-10-21 00:00:00&symbol=BAVA

https://api.twelvedata.com/time_series?apikey=INSERTAPIKEY&interval=1day&start_date=2020-10-20 00:00:00&end_date=2020-10-21 00:00:00&symbol=CHR&country=denmark

from twelvedata-python.

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.