Links

Get cashflow statement

Tags: #alphavantage #trading #market_data #investors #snippet #dataframe
Author: Florent Ravenel​

Input

Import libraries

import requests
import pandas as pd

Variables

API_KEY = "demo"
COMPANY = "IBM"

Model

Get cashflow statement

response = requests.get(f'https://www.alphavantage.co/query?function=CASH_FLOW&symbol={COMPANY}&apikey={API_KEY}')
data = response.json()
df = pd.DataFrame(data.get("annualReports"))

Output

Display result

df