GithubHelp home page GithubHelp logo

ayalaramjee / fmpsdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from daxm/fmpsdk

0.0 0.0 0.0 152 KB

SDK for Financial Modeling Prep's (FMP) API

License: BSD 3-Clause "New" or "Revised" License

Shell 0.61% Python 99.39%

fmpsdk's Introduction

FMP SDK

The idea behind this project is to provide a 'one-stop-shop' to the API endpoints provided by Financial Model Prep website.

Note: fmpsdk should be synced with FMP's API changelog as of 20210220. Changes thereafter are not yet included.

How to Use

  1. Install the package: pip install fmpsdk
  2. Create a .env file and put your apikey in it. Inside .env: apikey='blah'
  3. Use fmpsdk.<some function>(apikey=apikey, <possibly more variables>) to query the API for that "some function".
  4. The return from that function call is almost always a List of Dictionaries. It is up to you to parse it.

Example code

Here is a "quick start" script example. A larger, more detailed example is in the file fmpsdk-example.py.

#!/usr/bin/env python3

import os
from dotenv import load_dotenv
import typing
import fmpsdk

# Actual API key is stored in a .env file.  Not good to store API key directly in script.
load_dotenv()
apikey = os.environ.get("apikey")

# Company Valuation Methods
symbol: str = "AAPL"
print(f"Company Profile: {fmpsdk.company_profile(apikey=apikey, symbol=symbol)}")

Attribution

Special thanks to the following people who have pitched in on this project! Open source works thanks to people who jump in and help! These are this project's stars. Thank you.

fmpsdk's People

Contributors

daxm avatar ipl31 avatar kosmitive avatar yueda27 avatar mzaganczyk avatar enricodetoma avatar adamcataldo avatar xantin avatar petertjmills avatar

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.