Hi there…
I’m trying to screen for stocks in a specific industry but I always get back an empty data frame.
I’ve tried “=” and “match”. I’ve also tried url encoding the industry… trying all upper case… all lower case… using a regex… and different escaping parameters.
I’m at a loss. Here’s the code that “should” work…
from eodhd import APIClient
import pandas as pd
import config as cfg
client = APIClient(cfg.API_KEY)
screener_extended = client.stock_market_screener (filters = [["industry","match","Semiconductor Memory"],["exchange","=","us"]], limit = "10", offset = "0")
screener_m = pd.DataFrame(screener_extended)
print(screener_m)
Here’s the output…
Empty DataFrame
Columns: [data]
Index: []
Process finished with exit code 0
Thank you in advance for any help…