Small Caps, Big Opportunities: Python Trading Made Easy.

Getting small caps stocks data for trading.


Small-caps or shares of smaller companies is a special feild in investment, they are often attractive due to their lower relative valuations and potential to grow into big-cap stocks someday. Most investors stick only to big-caps and miss some potentially promising investment opportunities. According to Investopedia small-cap stocks generally have a market cap of $250 million to $2 billion.

Small caps.
Small caps Python Trading meme.

Python Knowledge Base: Make coding great again.
- Updated: 2024-07-26 by Andrey BRATUS, Senior Data Analyst.




    In our case we will use Python to access trading statistics from Mboum Finance Official API which provides small caps stocks data.

    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, small caps gainers data will surely help to catch market profits.



  1. Python code to get small caps gainers:


  2. Small caps gainers: small Caps with a 1 day price change of 5.0% or more.


    
    import requests
    
    url = "https://mboum-finance.p.rapidapi.com/co/collections/small_cap_gainers"
    
    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)
    

  3. Small caps gainers output (shown partly):


  4. small caps gainers.



  5. Python code to get aggressive small caps:


  6. Aggressive small caps gainers: small cap stocks with earnings growth rates better than 25%.


    
    import requests
    
    url = "https://mboum-finance.p.rapidapi.com/co/collections/aggressive_small_caps"
    
    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)
    

  7. Aggressive small caps output (shown partly):


  8. aggressive small caps.





See also related topics: