<reponame>ignasrum/finmodelprep
from finmodelprep.api.api import BASE_URL, download


### FINANCIAL REPORTS DATES

### ANNUAL FINANCIAL REPORTS

### QUARTERLY FINANCIAL REPORTS

def stock_peers(ticker, api_key):
    URL = f"{BASE_URL}/v4/stock_peers?symbol={ticker}&apikey={api_key}"
    return download(URL)

def sectors_pe_ratio(exchange, date, api_key):
    URL = f"{BASE_URL}/v4/sector_price_earning_ratio?date={date}&exchange={exchange}&apikey={api_key}"
    return download(URL)

def industries_pe_ratio(exchange, date, api_key):
    URL = f"{BASE_URL}/v4/industry_price_earning_ratio?date={date}&exchange={exchange}&apikey={api_key}"
    return download(URL)

def share_float(ticker, api_key):
    URL = f"{BASE_URL}/v4/shares_float?symbol={ticker}&apikey={api_key}"
    return download(URL)

from finmodelprep.api.api import BASE_URL, download


### FINANCIAL REPORTS DATES

### ANNUAL FINANCIAL REPORTS

### QUARTERLY FINANCIAL REPORTS

def stock_peers(ticker, api_key):
    URL = f"{BASE_URL}/v4/stock_peers?symbol={ticker}&apikey={api_key}"
    return download(URL)

def sectors_pe_ratio(exchange, date, api_key):
    URL = f"{BASE_URL}/v4/sector_price_earning_ratio?date={date}&exchange={exchange}&apikey={api_key}"
    return download(URL)

def industries_pe_ratio(exchange, date, api_key):
    URL = f"{BASE_URL}/v4/industry_price_earning_ratio?date={date}&exchange={exchange}&apikey={api_key}"
    return download(URL)

def share_float(ticker, api_key):
    URL = f"{BASE_URL}/v4/shares_float?symbol={ticker}&apikey={api_key}"
    return download(URL)
### FINANCIAL REPORTS DATES ### ANNUAL FINANCIAL REPORTS ### QUARTERLY FINANCIAL REPORTS