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

# trade.alert-rule-request@1 · OpenVibe.Services

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

# TradeAlertRuleRequest `trade.alert-rule-request@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
- Schema: [`https://openvibe.network/contracts/trade/alert-rule-request.v1.json`](/docs/contracts/trade.alert-rule-request.json)

trade.alert-rule-request@1: the body of POST /api/v1/alerts on OpenVibe.Trade (trade.alert.create; the acting person): an active instrument by symbol and the rule kind. threshold needs metric, operator (above or below), threshold (a finite decimal) and unit, and may name a currency; filing\_type needs 1-10 form\_types (a list or comma-separated, e.g. 10-K, 8-K); new\_document needs nothing more. There is a per-person limit (429 alert.limit).

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `symbol` | string | yes |  |  |
| `kind` | enum | yes |  | - `one of "threshold", "filing_type", "new_document"` |
| `metric` | string |  |  | - `maxLength 80` |
| `operator` | enum |  |  | - `one of "above", "below"` |
| `threshold` | string \| number |  |  |  |
| `unit` | string |  |  | - `maxLength 20` |
| `currency` | string \| null |  | ISO 4217. | - `pattern ^\s*[A-Za-z]{3}\s*$\|^$` |
| `form_types` | array \| string |  |  |  |

## Examples

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

 Valid: filings

~~~~
{
  "symbol": "ACME",
  "kind": "filing_type",
  "form_types": "10-K, 10-Q, 8-K"
}
~~~~

Rejected: threshold-incomplete

~~~~
{
  "symbol": "ACME",
  "kind": "threshold",
  "metric": "close"
}
~~~~

## Validate

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