🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Sectors Financial Agents

by @aidityasadhakim

Query financial market data from the Sectors API (api.sectors.app) for IDX (Indonesia Stock Exchange) and SGX (Singapore Exchange) markets. Use when the user...

βš™οΈ Configuration

1. Set the API key

The API key must be available as the SECTORS_API_KEY environment variable.

# Option A: Set in your current shell
export SECTORS_API_KEY="your-api-key-here"

Option B: Add to your shell profile (~/.bashrc, ~/.zshrc) for persistence

echo 'export SECTORS_API_KEY="your-api-key-here"' >> ~/.bashrc

Option C: Use a .env file in the project root (see .env.example)

For agent-specific configuration:

  • Claude Code: claude config set env SECTORS_API_KEY your-api-key-here
  • OpenCode: Set in ~/.config/opencode/config.json under env
  • Cursor: Settings > Features > Environment Variables
  • 2. Install the dependency

    pip install requests
    

    3. Verify setup (optional)

    python scripts/check_setup.py
    

    Making requests

    import os
    import requests

    API_KEY = os.environ["SECTORS_API_KEY"] BASE_URL = "https://api.sectors.app/v1"

    headers = {"Authorization": API_KEY} response = requests.get(f"{BASE_URL}/subsectors/", headers=headers) data = response.json()

    The Authorization header takes the raw API key. Do NOT prefix it with Bearer.

    πŸ”’ Constraints

  • ONLY make HTTP requests to https://api.sectors.app/v1. Never call any other domain, database, or external service.
  • All endpoints are GET requests returning JSON.
  • Never hardcode or guess an API key. Always read it from the SECTORS_API_KEY environment variable.
  • If SECTORS_API_KEY is not set, prompt the user to set it: export SECTORS_API_KEY="your-api-key-here" or run the setup check script at scripts/check_setup.py.
  • View on ClawHub
    TERMINAL
    clawhub install sectors-financial-agents

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’