RiskPilot API
RiskPilot customer API

Watchlist and alerts


Your alert rules

GET
/api/v1/customer/alerts

Your alert rules › Responses

OK

​AlertRule[] · required
limit
​integer

Rules your package allows.

alertsPerDay
​integer

Alerts per UTC day that may leave the inbox (email, push, chat) on your package.

classes
​string[]

Classes your package can alert on.


Add an alert rule

POST
/api/v1/customer/alerts

Add an alert rule › Request Body

classes
​string[] · required

Non-empty; only your package's classes.

Enum values:
ACTION
WATCH
name
​string | null · maxLength: 80
scope
​string · enum

Default watchlist. any takes no issuerId.

Enum values:
watchlist
any
issuerId
​string | null

A followed company (CIK), or null for every followed company.

families
​string[]
Enum values:
4
8-K
6-K
425
DEFA14A
13D
S-4
SC-TO
minImpact
​integer | null

1 to 5.

direction
​string · enum

Default any.

Enum values:
any
up
down
keywords
​string[]

At most 20.

sectors
​string[]

At most 20.

industries
​string[]

At most 20.

quietHours
​object | null
dailyCap
​integer | null

1 to 10000.

email
​boolean

Default true.

push
​boolean

Default false.

channelIds
​string[]

At most 10 of your channels.

enabled
​boolean

Default true.

Add an alert rule › Responses

Created.

id
​string · required
classes
​string[] · required
Enum values:
ACTION
WATCH
families
​string[] · required

Empty: every family.

Enum values:
4
8-K
6-K
425
DEFA14A
13D
S-4
SC-TO
email
​boolean · required
push
​boolean · required
enabled
​boolean · required
name
​string | null
scope
​string · enum

watchlist: followed companies; any: every company your package shows.

Enum values:
watchlist
any
issuerId
​string | null

Null: every followed company (watchlist) or every company (any).

ticker
​string | null
companyName
​string | null
minImpact
​integer | null

1 to 5: only signals of at least this impact. Null: any impact.

direction
​string · enum

A signal whose direction is unknown matches only any.

Enum values:
any
up
down
keywords
​string[]

Any-of words or phrases on the headline and summary (whole words, any case); -word excludes.

sectors
​string[]

Company sectors (exact, any case). Empty: any.

industries
​string[]

SIC description text, or a SIC code prefix such as 2834 or 28. Empty: any.

quietHours
​object | null

Nothing leaves the inbox in this window (a start after the end spans midnight).

dailyCap
​integer | null

Alerts this rule may fire per day (its quiet-hours zone, else UTC).

channelIds
​string[]

Chat channels (GET /api/v1/customer/channels) the rule also sends to.

createdAt
​string · date-time
updatedAt
​string · date-time

Backtest an alert rule on your past signals (not saved)

POST
/api/v1/customer/alerts/backtest

Validates a rule exactly as POST /api/v1/customer/alerts does, does not save it, and replays it with the live matcher over the signals your package showed in the last days days (default 90, capped by your history window and 1825), newest first, at most 20,000 signals (past that the window is shortened to the newest ones and window.truncated is true). Alerts per day are counted on the rule's own day (its quiet-hours zone, else UTC) over every calendar day of the window, zero days included: before is every match, after what would have left the inbox once the rule's daily cap, its quiet hours and your package's alerts-per-day cap (applied to this rule alone) are applied. The alert time is the SEC acceptance time. Hit rate: the share of matched signals whose realized market label is ACTION or WATCH (a move unusual for that stock against the market) among those with a final ACTION, WATCH or DROP label, with a Wilson 95% interval; labels still pending (the measurement window has not closed) or final without a class are counted apart and left out. baseRate is the same share over every signal of the window in your scope, classBaseRate over those of the rule's classes; lift = hit rate / base rate. Past results do not predict future ones. At most 10 backtests per account per hour (429 backtest_rate_limited with Retry-After).

Backtest an alert rule on your past signals (not saved) › Request Body

classes
​string[] · required

Non-empty; only your package's classes.

Enum values:
ACTION
WATCH
name
​string | null · maxLength: 80
scope
​string · enum

Default watchlist. any takes no issuerId.

Enum values:
watchlist
any
issuerId
​string | null

A followed company (CIK), or null for every followed company.

families
​string[]
Enum values:
4
8-K
6-K
425
DEFA14A
13D
S-4
SC-TO
minImpact
​integer | null

1 to 5.

direction
​string · enum

Default any.

Enum values:
any
up
down
keywords
​string[]

At most 20.

sectors
​string[]

At most 20.

industries
​string[]

At most 20.

quietHours
​object | null
dailyCap
​integer | null

1 to 10000.

email
​boolean

Default true.

push
​boolean

Default false.

channelIds
​string[]

At most 10 of your channels.

enabled
​boolean

Default true.

days
​integer · min: 1 · max: 1825

Days back to replay: 1 to 1825, default 90; capped by your package's history window.

Backtest an alert rule on your past signals (not saved) › Responses

OK

​AlertRuleInput · required
​object · required
matches
​integer · required

Signals the rule matches (before caps and quiet hours).

delivered
​integer · required

Alerts that would have left the inbox.

​object · required

Matches that would have stayed in the inbox, by reason.

​object · required
​object · required
​object[] · required

One entry per calendar day of the window.

​object · required

Over the matched signals.

​object · required

Over every signal of the window in your scope.

​object · required

Over the window's signals of the rule's classes.

lift
​number | null · required

hitRate.rate / baseRate.rate.

​object[] · required

The 10 newest matches.

notes
​string[] · required

Limits of the numbers, in words.

packageAlertsPerDay
​integer

Change an alert rule (fields not sent stay)

PATCH
/api/v1/customer/alerts/{id}

Change an alert rule (fields not sent stay) › path Parameters

id
​string · pattern: ^\d{1,18}$ · required

Rule id.

Change an alert rule (fields not sent stay) › Request Body

name
​string | null · maxLength: 80
scope
​string · enum

Default watchlist. any takes no issuerId.

Enum values:
watchlist
any
issuerId
​string | null

A followed company (CIK), or null for every followed company.

classes
​string[]

Non-empty; only your package's classes.

Enum values:
ACTION
WATCH
families
​string[]
Enum values:
4
8-K
6-K
425
DEFA14A
13D
S-4
SC-TO
minImpact
​integer | null

1 to 5.

direction
​string · enum

Default any.

Enum values:
any
up
down
keywords
​string[]

At most 20.

sectors
​string[]

At most 20.

industries
​string[]

At most 20.

quietHours
​object | null
dailyCap
​integer | null

1 to 10000.

email
​boolean

Default true.

push
​boolean

Default false.

channelIds
​string[]

At most 10 of your channels.

enabled
​boolean

Default true.

Change an alert rule (fields not sent stay) › Responses

OK

id
​string · required
classes
​string[] · required
Enum values:
ACTION
WATCH
families
​string[] · required

Empty: every family.

Enum values:
4
8-K
6-K
425
DEFA14A
13D
S-4
SC-TO
email
​boolean · required
push
​boolean · required
enabled
​boolean · required
name
​string | null
scope
​string · enum

watchlist: followed companies; any: every company your package shows.

Enum values:
watchlist
any
issuerId
​string | null

Null: every followed company (watchlist) or every company (any).

ticker
​string | null
companyName
​string | null
minImpact
​integer | null

1 to 5: only signals of at least this impact. Null: any impact.

direction
​string · enum

A signal whose direction is unknown matches only any.

Enum values:
any
up
down
keywords
​string[]

Any-of words or phrases on the headline and summary (whole words, any case); -word excludes.

sectors
​string[]

Company sectors (exact, any case). Empty: any.

industries
​string[]

SIC description text, or a SIC code prefix such as 2834 or 28. Empty: any.

quietHours
​object | null

Nothing leaves the inbox in this window (a start after the end spans midnight).

dailyCap
​integer | null

Alerts this rule may fire per day (its quiet-hours zone, else UTC).

channelIds
​string[]

Chat channels (GET /api/v1/customer/channels) the rule also sends to.

createdAt
​string · date-time
updatedAt
​string · date-time

Delete an alert rule

DELETE
/api/v1/customer/alerts/{id}

Delete an alert rule › path Parameters

id
​string · pattern: ^\d{1,18}$ · required

Rule id.

Delete an alert rule › Responses

Done (no body).

No data returned

Companies you follow

GET
/api/v1/customer/follows

Companies you follow › Responses

OK

​Follow[] · required
total
​integer · required
limit
​integer · required

Follow a company

PUT
/api/v1/customer/follows/{issuerId}

Follow a company › path Parameters

issuerId
​string · pattern: ^\d{1,10}$ · required

SEC CIK.

Follow a company › Responses

Already followed.

issuerId
​string
following
​boolean
total
​integer
limit
​integer

Stop following (its company alert rules go too)

DELETE
/api/v1/customer/follows/{issuerId}

Stop following (its company alert rules go too) › path Parameters

issuerId
​string · pattern: ^\d{1,10}$ · required

SEC CIK.

Stop following (its company alert rules go too) › Responses

OK

issuerId
​string
following
​boolean
removedRules
​integer