Adding Sentiment Data

Hello, this is my first time using alpaca and I’m trying to migrate a market sentiment algorithm I made on Quantopian. Does anyone know how I could successfully migrate it into the Alpaca API(there’s nothing about these sentiment libraries in the migration guide)?
Here’s my code: