Overview
Use the News API to read product and market announcements published by Silvana. In this repo, these capabilities are exposed through theNewsService gRPC service.
News API is useful for surfacing announcements in client UIs, monitoring product updates from agents, and building notification pipelines around protocol-level events.
API Surface
Below are the News API sections.News Feed
UseGetNews when you need a point-in-time fetch of recent news items. The request can include filters such as a category, a tag, a result limit, and an optional pagination cursor. The response returns a list of news items with title, body, publication timestamp, optional categories, and optional tags.
Use Cases:
- render a news section in a dashboard or onboarding flow;
- batch-import announcements into a notification system;
- audit which announcements were active at a given time.
Endpoints:
| Endpoint | Use ะกase |
|---|---|
GetNews | Fetch a paginated list of news items, optionally filtered by category or tag. |
Streams
UseStreamNews to subscribe to live news updates. The stream emits each new item as it is published. Filters mirror the unary call so that clients can subscribe to a single category or tag.
Use Cases:
- show live announcement banners in trading UIs;
- forward Silvana announcements into Slack, Discord, or alerting pipelines;
- trigger agents on protocol-level events.
Endpoints:
| Endpoint | Use ะกase |
|---|---|
StreamNews | Subscribe to a real-time feed of news items as they are published. |
Example flow
A typical news flow looks like this:- Call
GetNewsonce to backfill recent announcements at startup. - Open
StreamNewsto receive live updates from that point forward. - Optionally filter by category or tag to scope the feed to a specific surface.