stock. analyze
Analyze a stock, ETF, or cryptocurrency and outline short-, medium-, and long-term scenarios. For research purposes.
25 credits. Per analysis.
Example prompt
Send this to your AI app when Heelo is connected:
Analyze NVDA and give me a 1-year outlook
Input fields
| Field | Type | Description |
|---|---|---|
queryRequired | string | Natural-language stock request |
mode | string | One of: summary, predict, both |
terms | array of string | Any of: short, medium, long |
Output fields
The fields in data when status is success.
| Field | Type |
|---|---|
ticker | string |
asset_type | string |
summary | object |
forecasts | array of object |
as_of | string |
sources | array of string |
disclaimer | string |
answer | string |
Code
The call with the input fields that the tool needs. Set HEELO_API_KEY to your API key.
import os
import requests
response = requests.post(
"https://toolsprimitives.uk/v1/tools/stock.analyze/invoke",
headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
json={"input": {
"query": "Analyze NVDA and give me a 1-year outlook",
}},
timeout=120,
)
response.raise_for_status()
print(response.json())// Node.js 18 or newer, in an ES module.
const response = await fetch("https://toolsprimitives.uk/v1/tools/stock.analyze/invoke", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HEELO_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
input: {
"query": "Analyze NVDA and give me a 1-year outlook"
},
}),
signal: AbortSignal.timeout(120_000),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());