Getting trending and most active stocks for trading.
When monitoring live stock market and it's KPIs you most probably also need to know what other traders do at the same time, so information on trending and most active stocks at the moment is reaaly handy. In our case we will use Python to access trading statistics from Mboum Finance Official API which provides stocks trending and active stocks data.
Python Knowledge Base: Make coding great again.
- Updated:
2024-12-20 by Andrey BRATUS, Senior Data Analyst.
Python code to get trending stocks:
Trading day trending stocks (shown partly):
Python code to get most active stocks:
Trading day most active stocks (shown partly):
To use necessary API you need to get "your-api-key" directly from Mboum Finance, or using rapidapi.com, the way I recommend. Output data is in JSON format which can be easily converted to any suitable form for further visualisation and analysis, stocks day trending and most active tickers data will surely help to catch common market trends and provide you with certain profitable trading decisions.
Trending stocks in today's market are the most watched tickers in the stock market at the moment.
import requests
url = "https://mboum-finance.p.rapidapi.com/tr/trending"
headers = {
"X-RapidAPI-Key": "your-api-key",
"X-RapidAPI-Host": "mboum-finance.p.rapidapi.com"
}
response = requests.request("GET", url, headers=headers)
print(response.text)
Most active stocks in today's market are stocks ordered in descending order by intraday trade volume.
import requests
url = "https://mboum-finance.p.rapidapi.com/co/collections/most_actives"
querystring = {"start":"0"}
headers = {
"X-RapidAPI-Key": "your-api-key",
"X-RapidAPI-Host": "mboum-finance.p.rapidapi.com"
}
response = requests.request("GET", url, headers=headers, params=querystring)
print(response.text)