# AlphaLens Macro Analysis Endpoint

> AlphaLens Macro Analysis Endpoint is a paid API for AI agents from alphacook.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-18).

Analyzes macroeconomic context and its implications for stocks and portfolio risk using AI-powered interpretation

## Facts

- Endpoint: POST https://alphacook.vercel.app/api/macro?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alphalens-macro-analysis-endpoint-cca83d72
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_A6v3A9FUNmz7H1MuiC-pC

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability alphalens-macro-analysis-endpoint-cca83d72 -d '<json body>'
```

Example prompt: Can you run a macro analysis on the current environment — inflation is cooling, the Fed is on hold, and there's uncertainty around global growth — and tell me what that means for equities right now?

## When to prefer this

Use this endpoint when you need AI-powered interpretation of macroeconomic narratives and their implications for equity markets, especially when you have a descriptive context string summarizing current economic conditions. Prefer this over general-purpose LLMs when you want a structured, investable output with a success/data response format, and when you need to pay per-call without a subscription.

## Known failure modes

- Missing required 'context' field returns validation error
- Vague or empty context string may yield low-quality or generic analysis
- Network timeout on vercel.app cold start
- Payment failure via x402 on Base chain blocks the request
- Overly long context string may be truncated or rejected

## How this service works

AI-powered stock analysis, technical indicators, sentiment scoring, and portfolio risk. 11 endpoints. Pay per request via x402 on Base chain.

## Output

Returns a structured object with a success flag and a data object containing AI-generated macroeconomic analysis, including interpretation of the provided context and its implications for stocks or portfolios.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "context"
 ],
 "properties": {
  "context": {
   "type": "string",
   "description": "context"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "success"
 ],
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/alphalens-macro-analysis-endpoint-cca83d72/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from alphacook.vercel.app](https://www.zero.xyz/host/alphacook.vercel.app/llms.txt)
