# AlphaLens Macro Analysis Endpoint

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

Analyzes macroeconomic context and market conditions using AI to deliver macro-level stock intelligence insights

## Facts

- Endpoint: POST https://alphencook.vercel.app/api/macro
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alphalens-macro-analysis-endpoint-bf13b7fe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2QJLMGGofJ65ROnZRfg0B

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-bf13b7fe -d '<json body>'
```

Example prompt: Give me a macro analysis of the current market environment, focusing on how rising interest rates and inflation are affecting equity valuations and sector performance.

## When to prefer this

Choose this endpoint when you need AI-synthesized macroeconomic analysis specifically framed for stock market intelligence — particularly useful when you want to contextualize portfolio decisions against macro conditions like interest rates, inflation, or GDP trends. Prefer this over generic LLM queries when you want structured, pay-per-use financial macro analysis with consistent output schemas.

## Known failure modes

- Empty or vague context string may produce generic or low-quality analysis
- Missing required 'context' field returns a validation error
- Ambiguous context may result in off-target macro interpretation
- Network timeout if the AI analysis takes too long
- Payment failure on Base chain prevents the request from being processed

## 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 JSON object with a success boolean and a data object containing AI-generated macroeconomic analysis relevant to stock market conditions, including interpretation of macro indicators and their potential impact on equities.

## 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-bf13b7fe/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from alphencook.vercel.app](https://www.zero.xyz/host/alphencook.vercel.app/llms.txt)
