---
title: "trade.alert.triggered@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/trade.alert.triggered"
updated: null
---

# trade.alert.triggered@1 · OpenVibe.Services

HTML: [trade.alert.triggered@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/trade.alert.triggered)

# TradeAlertTriggeredPayload `trade.alert.triggered@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: trade
- Visibility: first-party
- Status: active
- Compatibility: backward
- Decision: [ADR-020](/docs/adr/ADR-020)
- Schema: [`https://openvibe.network/contracts/events/payloads/trade.alert.triggered.v1.json`](/docs/contracts/trade.alert.triggered.json)

trade.alert.triggered v1 (OpenVibe.Trade server/domain/alerts.js deliver). One delivery of one private alert rule: a threshold crossed by a new observation (trigger kind observation), or a newly seen document of the instrument (filing\_type / new\_document rules, trigger kind document). Written in the transaction that recorded the observation or document; at most one per (rule, trigger). Envelope: subject { type: user, id: <rule owner usr\_…> }, visibility subject, priority important, actor service:trade. Data only, never rendered notification text (ADR-020): OpenVibe.Network renders a TRADE\_ALERT notification (server/notifications/events-consumer.js). Information only, not investment advice.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `delivery_id` | string | yes |  | - `pattern ^ald_[0-9A-HJKMNP-TV-Z]{26}$` |
| `rule` | object | yes |  | - `no other fields` |
| `rule.id` | string | yes |  | - `pattern ^alr_[0-9A-HJKMNP-TV-Z]{26}$` |
| `rule.kind` | enum | yes |  | - `one of "threshold", "filing_type", "new_document"` |
| `rule.status` | enum | yes |  | - `one of "active", "deleted"` |
| `rule.instrument` | object | yes |  | - `no other fields` |
| `rule.instrument.id` | string | yes |  | - `pattern ^ins_[0-9A-HJKMNP-TV-Z]{26}$` |
| `rule.instrument.symbol` | string |  |  |  |
| `rule.instrument.name` | string |  |  |  |
| `rule.metric` | string \| null | yes | Threshold rules: e.g. price.close, volume, us-gaap:Revenues. | - `maxLength 80` |
| `rule.operator` | enum | yes |  | - `one of "above", "below", null` |
| `rule.threshold` | string \| null | yes | Decimal text as entered. | - `maxLength 64` |
| `rule.unit` | string \| null | yes |  | - `maxLength 20` |
| `rule.currency` | string \| null | yes |  | - `pattern ^[A-Z]{3}$` |
| `rule.form_types` | array \| null | yes | filing\_type rules: the 1–10 form types that trigger it (10-K, 8-K…). |  |
| `rule.armed` | boolean \| null | yes | Threshold rules: armed before this delivery (always true when it fired); null for document rules. |  |
| `rule.created_at` | string | yes |  | - `format date-time` |
| `rule.updated_at` | string | yes |  | - `format date-time` |
| `instrument` | object | yes |  | - `no other fields` |
| `instrument.id` | string | yes |  | - `pattern ^ins_[0-9A-HJKMNP-TV-Z]{26}$` |
| `instrument.symbol` | string | yes |  | - `minLength 1`<br>- `maxLength 32` |
| `instrument.name` | string | yes |  | - `minLength 1`<br>- `maxLength 300` |
| `instrument.url` | string | yes | Instrument page on Trade. | - `pattern ^https?://`<br>- `format uri`<br>- `maxLength 2048` |
| `trigger` | one of | yes |  |  |
| `disclaimer` | string | yes | Currently "Information only — not investment advice; no trading here." | - `minLength 1`<br>- `maxLength 200` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: filing

~~~~
{
  "delivery_id": "ald_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "rule": {
    "id": "alr_01JAB2C3D4E5F6G7H8J9K0MNPR",
    "kind": "filing_type",
    "status": "active",
    "instrument": {
      "id": "ins_01JAB2C3D4E5F6G7H8J9K0MNPS",
      "symbol": "AAPL",
      "name": "Apple Inc."
    },
    "metric": null,
    "operator": null,
    "threshold": null,
    "unit": null,
    "currency": null,
    "form_types": [
      "10-K",
      "8-K"
    ],
    "armed": null,
    "created_at": "2026-09-20T10:00:00.000Z",
    "updated_at": "2026-09-20T10:00:00.000Z"
  },
  "instrument": {
    "id": "ins_01JAB2C3D4E5F6G7H8J9K0MNPS",
    "symbol": "AAPL",
    "name": "Apple Inc.",
    "url": "https://openvibe.trade/i/AAPL"
  },
  "trigger": {
    "kind": "document",
    "id": "doc_01JAB2C3D4E5F6G7H8J9K0MNPT",
    "form_type": "8-K",
    "title": "Current report",
    "url": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000001/0000320193-26-000001-index.htm",
    "published_at": "2026-09-22T12:00:00.000Z",
    "retrieved_at": "2026-09-22T12:10:00.000Z",
    "source_key": "sec-edgar-filings"
  },
  "disclaimer": "Information only — not investment advice; no trading here."
}
~~~~

Valid: threshold

~~~~
{
  "delivery_id": "ald_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "rule": {
    "id": "alr_01JAB2C3D4E5F6G7H8J9K0MNPR",
    "kind": "threshold",
    "status": "active",
    "instrument": {
      "id": "ins_01JAB2C3D4E5F6G7H8J9K0MNPS",
      "symbol": "AAPL",
      "name": "Apple Inc."
    },
    "metric": "price.close",
    "operator": "above",
    "threshold": "250",
    "unit": "USD",
    "currency": "USD",
    "form_types": null,
    "armed": true,
    "created_at": "2026-09-20T10:00:00.000Z",
    "updated_at": "2026-09-22T21:00:00.000Z"
  },
  "instrument": {
    "id": "ins_01JAB2C3D4E5F6G7H8J9K0MNPS",
    "symbol": "AAPL",
    "name": "Apple Inc.",
    "url": "https://openvibe.trade/i/AAPL"
  },
  "trigger": {
    "kind": "observation",
    "id": "obs_01JAB2C3D4E5F6G7H8J9K0MNPT",
    "metric": "price.close",
    "value": "251.37",
    "unit": "USD",
    "currency": "USD",
    "observed_at": "2026-09-22T20:00:00.000Z",
    "retrieved_at": "2026-09-22T20:05:00.000Z",
    "source_key": "stooq-daily",
    "source_url": null
  },
  "disclaimer": "Information only — not investment advice; no trading here."
}
~~~~

Rejected: observation-without-value

~~~~
{
  "delivery_id": "ald_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "rule": {
    "id": "alr_01JAB2C3D4E5F6G7H8J9K0MNPR",
    "kind": "threshold",
    "status": "active",
    "instrument": {
      "id": "ins_01JAB2C3D4E5F6G7H8J9K0MNPS",
      "symbol": "AAPL",
      "name": "Apple Inc."
    },
    "metric": "price.close",
    "operator": "above",
    "threshold": "250",
    "unit": "USD",
    "currency": "USD",
    "form_types": null,
    "armed": true,
    "created_at": "2026-09-20T10:00:00.000Z",
    "updated_at": "2026-09-22T21:00:00.000Z"
  },
  "instrument": {
    "id": "ins_01JAB2C3D4E5F6G7H8J9K0MNPS",
    "symbol": "AAPL",
    "name": "Apple Inc.",
    "url": "https://openvibe.trade/i/AAPL"
  },
  "trigger": {
    "kind": "observation",
    "id": "obs_01JAB2C3D4E5F6G7H8J9K0MNPT",
    "metric": "price.close",
    "unit": "USD",
    "currency": "USD",
    "observed_at": "2026-09-22T20:00:00.000Z",
    "retrieved_at": "2026-09-22T20:05:00.000Z",
    "source_key": "stooq-daily",
    "source_url": null
  },
  "disclaimer": "Information only — not investment advice; no trading here."
}
~~~~

Rejected: rendered-text

~~~~
{
  "delivery_id": "ald_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "rule": {
    "id": "alr_01JAB2C3D4E5F6G7H8J9K0MNPR",
    "kind": "new_document",
    "status": "active",
    "instrument": {
      "id": "ins_01JAB2C3D4E5F6G7H8J9K0MNPS"
    },
    "metric": null,
    "operator": null,
    "threshold": null,
    "unit": null,
    "currency": null,
    "form_types": null,
    "armed": null,
    "created_at": "2026-09-20T10:00:00.000Z",
    "updated_at": "2026-09-20T10:00:00.000Z"
  },
  "instrument": {
    "id": "ins_01JAB2C3D4E5F6G7H8J9K0MNPS",
    "symbol": "AAPL",
    "name": "Apple Inc.",
    "url": "https://openvibe.trade/i/AAPL"
  },
  "trigger": {
    "kind": "document",
    "id": "doc_01JAB2C3D4E5F6G7H8J9K0MNPT",
    "form_type": null,
    "title": null,
    "url": null,
    "published_at": null,
    "retrieved_at": "2026-09-22T12:10:00.000Z",
    "source_key": "sec-edgar-filings"
  },
  "message": "AAPL filed a new document",
  "disclaimer": "Information only — not investment advice; no trading here."
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('trade.alert.triggered@1', value);   // { valid, errors: [{ path, message }] }
~~~~
