Financial Statements

פרמיום
על ידי alphawave | מְעוּדכָּן vor 23 Tagen | Finance
פּוֹפּוּלָרִיוּת

0.3 / 10

חֶבִיוֹן

1,124ms

רמת שירות

3%

Health Check

N/A

עוקבים: 10
אֶמְצָעִי:
אתר מוצר
יוצר API:
Rapid account: Alphawave
alphawave
alphawave
היכנס כדי לדרג את ה- API
דירוג: 3 - הצבעות: 1

תקרא אותי

AlphaWave Data Financial Statements API

Jupyter Notebook Example
Github Example
Medium

First, we import the necessary Python libraries.

import json
import requests
import pandas as pd

Using the AlphaWave Data Financial Statements API, we can get the Cash Flow Statement, Income Statement, and Balance Sheet Statement for a given stock symbol. To call this API with Python, you can choose one of the supported Python code snippets provided in the API console. Here is an example of how to invoke the API with Python Requests.

url = "https://financial-statements.p.rapidapi.com/api/v1/resources/balance-sheet"

querystring = {"ticker":"AAPL"}

headers = {
    'x-rapidapi-host': "YOUR_X-RAPIDAPI-HOST_WILL_COPY_DIRECTLY_FROM_RAPIDAPI_PYTHON_CODE_SNIPPETS",
    'x-rapidapi-key': "YOUR_X-RAPIDAPI-KEY_WILL_COPY_DIRECTLY_FROM_RAPIDAPI_PYTHON_CODE_SNIPPETS"
    }

balance_sheet_response = requests.request("GET", url, headers=headers, params=querystring)

# Create Balance Sheet DataFrame
balance_sheet_df = pd.DataFrame.from_dict(balance_sheet_response.json())
balance_sheet_df

That’s it!

Now you have the Balance Sheet Statement in a pandas DataFrame for a given stock symbol (AAPL in this example).

Changing the url will enable you to get:
Income Statement (“https://financial-statements.p.rapidapi.com/api/v1/resources/income-statement”)
Cash Flow Statement (“https://financial-statements.p.rapidapi.com/api/v1/resources/balance-sheet”)