Xpersona
A

alva

CLAWHUB · Unverified

Use this skill when the user asks for financial data ("price of BTC", "P/E ratio of NVDA"), market analysis, stock or crypto research, quant strategies, back... Skill: alva Owner: jaxxjj Summary: Use this skill when the user asks for financial data ("price of BTC", "P/E ratio of NVDA"), market analysis, stock or crypto research, quant strategies, back... Tags: latest:1.7.1 Version history: v1.7.1 | 2026-04-29T12:51:21.053Z | user **Alva Skill v1.7.1 Changelog** - Added extensive new templates: ai-digest, screener, thesis, and what-if (with examples and Markdown docs). - Intr

62
Rank
84
Safety
1.3k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s1714hb513crtz7zwq7vwy60vd83qjva:alva
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-jaxxjj-alva/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

153,297 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: alva
description: >-
  Use this skill when the user asks for financial data ("price of BTC",
  "P/E ratio of NVDA"), market analysis, stock or crypto research, quant
  strategies, backtesting ("backtest a momentum strategy"), tracking assets
  or portfolios, or help turning investing ideas into live playbooks,
  dashboards, and analytics on Alva.
  Powered by 250+ financial data sources across crypto, equities, macro,
  on-chain, and social data, along with cloud-side analytics and backtesting.
  Also use when the user asks about Alva platform capabilities.
metadata:
  author: alva
  version: v1.7.0
---

# Alva

## What is Alva

Alva is an agentic finance platform. It provides unified access to 250+
financial data sources spanning crypto, equities, ETFs, macroeconomic
indicators, on-chain analytics, and social sentiment -- including spot and
futures OHLCV, funding rates, company fundamentals, price targets, insider and
senator trades, earnings estimates, CPI, GDP, Treasury rates, exchange flows,
DeFi metrics, news feeds, social media and more!

## What Alva Skills Enables

The Alva skill connects any AI agent or IDE to the full Alva platform. With it
you can:

- **Access financial data** -- query any of Alva's 250+ data SDKs
  programmatically, or bring your own data via HTTP API or direct upload.
- **Run cloud-side analytics** -- write JavaScript that executes on Alva Cloud
  in a secure runtime. No local compute, no dependencies, no infrastructure to
  manage.
- **Build agentic playbooks** -- create data pipelines, trading strategies, and
  scheduled automations that run continuously on Alva Cloud.
- **Deploy trading strategies** -- backtest with the Altra trading engine and
  run continuous live paper trading.
- **Release and share** -- turn your work into a hosted playbook web app at
  `https://alva.ai/u/<username>/playbooks/<playbook_name>`, and share it with
  the world.
- **Remix existing playbooks** -- take any published playbook as a template,
  read its feed scripts and HTML source, customize parameters/logic/UI, and
  deploy as your own new playbook.

In short: turn your ideas into a forever-running finance agent that gets things
done for you.

## Pre-flight

**Run these checks on first use each session** before doing anything else.

### 1. Version Check

```bash
bash "<this skill's directory>/scripts/version_check.sh"
```

- No output → up to date, proceed.
- Output present → display to user, apply the update, then proceed.

### 2. Alva CLI Setup

The `alva` CLI (`@alva-ai/toolkit`) is the required way to interact with the
Alva platform. It manages authentication, provides self-documenting help for
every command, and eliminates the need for manual curl/header management.

Check whether the CLI is already installed by running `alva --help`.

- **If not installed**, install it:

  ```bash
  npm install -g @alva-ai/toolkit
  ```

- **If already installed**, upgrade to the latest version to ensure access to
  the newest commands

_meta.json

{
  "ownerId": "kn70mww0vvf2net4x2knf0768n82vptj",
  "slug": "alva",
  "version": "1.7.1",
  "publishedAt": 1777467081053
}

references/adk.md

# @alva/adk — Agent Development Kit

A SDK for building LLM-powered agents with tool calling to enable agentic features.

> **If your ADK call produces user-facing prose** (TLDR, digest, why-it-matters,
> delta body, push line, etc.), include the voice block from
> [narrative-voice.md](narrative-voice.md) verbatim in `system`.

## Quick Start

```javascript
const adk = require("@alva/adk");

const result = await adk.agent({
  system: "You are a helpful assistant.",
  prompt: "What is the price of AAPL?",
  tools: [{
    name: "getPrice",
    description: "Get current stock price",
    parameters: {
      type: "object",
      properties: { symbol: { type: "string" } },
      required: ["symbol"],
    },
    fn: async (args) => {
      const resp = await require("net/http").fetch(`https://api.example.com/price/${args.symbol}`);
      return resp.json();
    },
  }],
  maxTurns: 5,
});

log(result.content);    // Final text response
log(result.turns);      // Number of agent loop iterations
log(result.toolCalls);  // History of all tool calls made
```

## API

### `adk.agent(config): Promise<AgentResult>`

Single-function entry point. Runs a ReAct loop (reason → act → observe) until the LLM responds without tool calls or `maxTurns` is reached.

### AgentConfig

| Field      | Type     | Required | Default | Description                          |
| ---------- | -------- | -------- | ------- | ------------------------------------ |
| `prompt`   | string   | yes      |         | User prompt/query                    |
| `system`   | string   | no       |         | System prompt                        |
| `tools`    | Tool[]   | yes      |         | Tools the agent can use              |
| `maxTurns` | number   | no       | 10      | Max agent loop iterations            |

### Tool

| Field         | Type                                              | Description                        |
| ------------- | ------------------------------------------------- | ---------------------------------- |
| `name`        | string                                            | Tool identifier                    |
| `description` | string                                            | What the tool does (shown to LLM)  |
| `parameters`  | object                                            | JSON Schema for tool parameters    |
| `fn`          | `(args: Record<string, unknown>) => Promise<any>` | Tool implementation                |

### AgentResult

| Field       | Type             | Description                       |
| ----------- | ---------------- | --------------------------------- |
| `content`   | string           | Final text response from LLM      |
| `turns`     | number           | Number of agent loop iterations    |
| `toolCalls` | ToolCallRecord[] | History of all tool calls executed |

### ToolCallRecord

| Field       | Type   | Description                |
| ----------- | ------ | -------------------------- |
| `name`      | string | Tool that was called  

references/altra-trading.md

# Altra Trading Engine

Altra is an **event-driven backtesting engine** for quantitative trading
strategies. Strategies are triggered by data events (e.g. when a new OHLCV bar
closes) and execute with stateful context including portfolio, features, and
custom state.

A trading strategy IS a feed: all output data (targets, portfolio, orders,
equity, metrics) lives under a single feed's ALFS path.

**Key principle: All decisions are made at bar CLOSE, not bar OPEN.**

---

## Architecture

Altra consists of four processing stages:

1. **DataGraph** -- Registers OHLCV data, raw external data, and computed
   features (indicators)
2. **SignalEngine** -- Runs your strategy function on each trigger event,
   producing targets (buy/sell signals)
3. **SimEngine** -- Simulates order execution, portfolio management, and position
   tracking
4. **PerfEngine** -- Computes performance metrics (returns, Sharpe, drawdown,
   etc.)

All output is persisted under the feed's ALFS path via the Feed SDK context.

---

## Getting Started: Complete Example

A strategy is organized into modular files:

```
constants.js       # Shared constants (symbol, interval, tick)
raw_data.js        # Raw data sources (optional)
features.js        # Feature definitions (indicators)
strategy.js        # Strategy function (trading logic)
main.js            # Entry point (assembles everything)
```

### constants.js

```javascript
const { FeedAltraModule } = require("@alva/feed");
const { TIME } = FeedAltraModule;

const SYMBOL = "BINANCE_SPOT_BTC_USDT";
const STRATEGY_INTERVAL = "1d";
const TICK = TIME.DAY;

module.exports = { SYMBOL, STRATEGY_INTERVAL, TICK, TIME };
```

### features.js

```javascript
const {
  macd,
} = require("@alva/technical-indicators/moving-average-convergence-divergence-macd:v1.0.0");
const { FeedAltraModule, num } = require("@alva/feed");
const { SYMBOL, STRATEGY_INTERVAL, TICK } = require("./constants.js");

function inRange(t, fromExclusive, toInclusive) {
  return t > fromExclusive && t <= toInclusive;
}

function createMACDFeature() {
  const slowPeriod = 26;

  return {
    name: "macd",
    description: "MACD(12,26,9) on daily closes",
    inputConfig: {
      ohlcvs: [
        {
          id: { pair: SYMBOL, interval: STRATEGY_INTERVAL },
          lookback: { count: slowPeriod - 1 },
        },
      ],
    },
    fields: [num("macd_line", "MACD line"), num("signal_line", "Signal line")],
    fn: (data, { fromExclusive, toInclusive }) => {
      const bars = data.ohlcvs[SYMBOL]?.[STRATEGY_INTERVAL] || [];
      if (bars.length < slowPeriod) return [];

      const closes = bars.map((b) => b.close);
      const m = macd(closes, { fast: 12, slow: 26, signal: 9 });

      const out = [];
      for (let i = 0; i < bars.length; i++) {
        const t = bars[i].endTime ?? bars[i].date + TICK;
        if (!inRange(t, fromExclusive, toInclusive)) continue;
        out.push({
          date: t,
          macd_line: m.macdLine[i],
          signal_line: m.signa

references/api/deploy-cronjob.md

# Deploy Cron Job

Create and manage cron jobs for scheduled execution using the `alva deploy`
CLI commands.

See [deployment.md](../deployment.md) for a comprehensive workflow guide.

## Create Cronjob

```
alva deploy create --name NAME --path PATH --cron "EXPR" [--args 'JSON'] [--push-notify]
```

```bash
alva deploy create \
  --name btc-ema-update \
  --path '~/feeds/btc-ema/v1/src/index.js' \
  --cron "0 */4 * * *" \
  --args '{"symbol": "BTC"}' \
  --push-notify
```

| Flag          | Type   | Required | Description                                                                   |
| ------------- | ------ | -------- | ----------------------------------------------------------------------------- |
| --name        | string | yes      | Job name (1–63 lowercase alphanumeric or hyphens, no leading/trailing hyphen) |
| --path        | string | yes      | Path to entry script (home-relative or absolute)                              |
| --cron        | string | yes      | Standard cron expression (min interval: 1 minute)                             |
| --args        | JSON   | no       | JSON passed to `require("env").args` on each execution                        |
| --push-notify | flag   | no       | Enable push notifications for playbook followers                              |

When `--push-notify` is set, every successful execution reads the feed's
`/data/signal/targets/@last/1` and pushes it to playbook followers (Telegram).

Response:

```json
{
  "id": 42,
  "name": "btc-ema-update",
  "path": "/feeds/btc-ema/v1/src/index.js",
  "cron_expression": "0 */4 * * *",
  "status": "active",
  "args": { "symbol": "BTC" },
  "push_notify": true,
  "created_at": "2026-03-04T12:00:00Z",
  "updated_at": "2026-03-04T12:00:00Z"
}
```

## List Cronjobs

```
alva deploy list [--limit N] [--cursor CURSOR]
```

| Flag     | Type   | Required | Description                              |
| -------- | ------ | -------- | ---------------------------------------- |
| --limit  | int    | no       | Max results (default: 20)                |
| --cursor | string | no       | Pagination cursor from previous response |

```bash
alva deploy list
# → {"cronjobs":[...],"next_cursor":"..."}
```

## Get Cronjob

```
alva deploy get --id ID
```

```bash
alva deploy get --id 42
```

## Update Cronjob

```
alva deploy update --id ID [--cron "EXPR"] [--args 'JSON'] [--push-notify|--no-push-notify]
```

Partial update -- only include flags you want to change.

```bash
alva deploy update --id 42 --cron "0 */2 * * *"
```

| Flag              | Type   | Description                      |
| ----------------- | ------ | -------------------------------- |
| --cron            | string | Update schedule                  |
| --args            | JSON   | Update arguments                 |
| --push-notify     | flag   | Enable push notification         |
| --no-push-notify  | flag   | Disable push notification        |

## Delete Cronjob

```
alva deploy delete --id ID
```

```bash
a

Sponsored

Ads related to alva and adjacent AI workflows.