Skip to main content

Scenario

Your sales team targets multiple verticals but can’t pursue all equally. Alpha Vantage’s SECTOR function returns real-time and historical performance by sector. This job maps sector momentum to marketing effort — invest messaging resources in growing sectors, adopt defensive positioning in declining ones, and generate vertical-specific campaign copy for the top priorities. Flow: Alpha Vantage GET ?function=SECTOR → Rank by performance → Mavera POST /mave/chat + POST /generations → Vertical priority matrix + copy

Code

Example Output

Error Handling

Alpha Vantage uses SEC sector names (e.g., “Information Technology” not “Tech”). Map to your internal vertical names before generating copy.
The SECTOR function returns all timeframes in one call — only 1 of your 25 daily free calls. Cache the response for the full day.
Sectors with negative returns need defensive messaging, not growth messaging. The Mave prompt handles this via the “stability narrative” strategy option.