Member-only story

How ChatGPT allowed me to leverage Twitter API 10x faster

Didier Rodrigues Lopes
3 min readDec 11, 2022

--

For a while now, users have been asking for adding real-time financial news on OpenBB Terminal.

Since OpenBB Terminal is a command line interface for the world’s financial data, and there is no threading going on — there was never a very straightforward way to do this.

Until today.

After recalling this tweet from Elon earlier in November, I realized that I’ve been using Twitter for news substantially more than MSM.

https://twitter.com/elonmusk/status/1591121142961799168?s=20&t=j-cjTu-XA9SNcY8PBrbUnQ

So, my next train of thought was; What if I was able to somehow display the latest tweets from Twitter accounts that I trust. In particular, accounts that have up-to-date information and usually mention the words “JUST IN” or “BREAKING”. E.g. @WatcherGuru or @unusual_whales.

By doing this, I could then use the bottom of the OpenBB Terminal to highlight the news. An example of this is below:

The OpenBB Terminal with the working news example

Coding and ChatGPT

The next step for me was to implement the code!

First, I needed to understand how I could have access to the last tweet of a specific user account. I already had a Twitter…

--

--

Responses (1)