Code Monkey home page Code Monkey logo

Comments (8)

JerBouma avatar JerBouma commented on May 25, 2024

Could you share some more information about your FMP plan, what code you are running etc? For example, I've built in a wait timer when you hit the API limit per minute. Trying to understand what could be the issue here as it works fine for me.

from financetoolkit.

PavelRechkalov avatar PavelRechkalov commented on May 25, 2024

Sure thing sir:

  • It's starter plan
  • Code snippet:
    `
    companies = Toolkit(
    assets_list
    , quarterly = True
    , api_key = fmp_api_key
    , start_date="2005-01-01"
    ,sleep_timer = False)

companies_profile = companies.get_profile()
`

I use Jupyter extension for VSCode

from financetoolkit.

JerBouma avatar JerBouma commented on May 25, 2024

Could you provide me with the ticker list as well? I'll look into it somewhere this weekend!

from financetoolkit.

PavelRechkalov avatar PavelRechkalov commented on May 25, 2024

Here it goes:

assets_list = [

'BRK-B', 'TMUS', 'SONY', 'DBSDY', 'IDXX', 'FTNT', 'VEEV'

,'LRCX', 'NXPI', 'WMT', 'PEP', 'GE', 'ORCL', 'NKE', 'MRK'
,'TSM','HLNE', 'DHR', 'CSCO', 'EME', 'TMO', 'ACN', 'ADP', 'HPQ'

,'PG', 'DLB', 'ABT', 'FTAI', 'CL', 'DE', 'COF', 'CAT'

,'AVGO', 'LMT', 'HD', 'MCD', 'V', 'LHX', 'JNJ', 'TGT'
,'RTX', 'KO', 'TGLS', 'PH', 'VOYA', 'IBP', 'IBKR', 'SPGI'
,'MCO', 'WM'

,'TSLA', 'AMD', 'AMZN', 'GOOGL', 'META', 'ON', 'TTD', 'ANET'
,'CRWD', 'MDB', 'EXAS', 'CDNS', 'RPD', 'NOW', 'QLYS', 'MELI'
,'REGN', 'TDG', 'AAPL', 'NVDA', 'MSFT', 'EG'

,'JPM', 'DLR', 'DTE', 'ARE', 'BBY'

,'BX', 'MS', 'MED', 'VZ', 'ARLP', 'BLX', 'CCOI', 'HTGC'

,'BLK', 'IBM', 'MMM', 'GILD', 'PFE', 'SPOK', 'F', 'BTI'

,'ISRG', 'ANSS', 'PYPL', 'MNST', 'DIS', 'NFLX', 'BMY', 'NVO'
,'ADBE', 'BAC'

,'UNA.AS', 'PRY.MI', 'SAF.PA', 'MC.PA', 'ASML.AS', 'RACE.MI', 'OR.PA'
,'CDI.PA', 'ADYEN.AS'

]

from financetoolkit.

PavelRechkalov avatar PavelRechkalov commented on May 25, 2024

Sir, the issue was with my API permissions (behind the scene every API call was returning the error 403). I had to approach FMP's support and the issue was resolved.

Nevertheless, it seems that if a user's permissions become limited or removed, "companies.get_profile()" never gets resolved, i.e it's stuck in infinite execution.

My deepest apologies for taking your time.

from financetoolkit.

JerBouma avatar JerBouma commented on May 25, 2024

Sir, the issue was with my API permissions (behind the scene every API call was returning the error 403). I had to approach FMP's support and the issue was resolved.

Nevertheless, it seems that if a user's permissions become limited or removed, "companies.get_profile()" never gets resolved, i.e it's stuck in infinite execution.

My deepest apologies for taking your time.

Hi! No worries, do you have the exact error for me? Then I can add it into the Toolkit so that the next time someone has this issue it returns a message!

from financetoolkit.

PavelRechkalov avatar PavelRechkalov commented on May 25, 2024

There's no error per se. What was happening is the following:

  • I run "companies_profile = companies.get_profile()"
  • The progress bar reaches 100% in about 30sec
  • Nevertheless, given the API permission issues I had, the "companies_profile = companies.get_profile()" code line continued running for infinite amount of time (I waited for 30 min and it never stopped)

I think the best way for you to reproduce this error is to use an API w/ suspended permission. In my case my permissions were suspended by FMP by an error.

Once again, that's a very niche case

from financetoolkit.

JerBouma avatar JerBouma commented on May 25, 2024

Got it, I'll note this down so that if it ever happens again to someone else I know where to point!

from financetoolkit.

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.