Simple implementation of live function?

I’ve been trying for weeks - I don’t even know if it’s possible anymore. In case the POST query asks about recent trades, I just want GPT to fetch data from:

api.gateio.ws/api/v4/spot/trades?currency_pair=BTC_USDT&limit=30

& generate the reply based on that. I’ve tried looking at all the examples of get_weather, get_stock_price, etc., but nothing explicitly explains how data is being retrieved in a live manner (i.e., endpoint for the weather).

Is it possible? Is there any simple JS implementation of any live endpoint?

Any help would be extremely appreciated!