Skip to main content

Module adapters

Module adapters 

Source
Expand description

Provider-neutral data-feed and notification integration contracts (traits), plus dependency-free reference implementations. Provider-neutral integration contracts: a data-feed trait and a notification-sink trait, plus dependency-free reference implementations (an in-memory feed, a logging sink, and a transport-agnostic webhook-shaped sink). Tools embedding kestrel-chartkit implement these traits with their own broker/exchange/webhook specifics; this crate never depends on a specific provider, and ships no HTTP client — WebhookNotificationSink takes the actual transport as an injected closure instead.

Structs§

InMemoryDataFeed
A fully generic, dependency-free DataFeedAdapter: serves bars from an in-memory table. Useful for backtests, replay, and tests — not tied to any provider.
LoggingNotificationSink
A fully generic, dependency-free NotificationSink: appends every event to an in-memory log. Useful for tests, or as a base to wrap with a real transport.
NotificationEvent
WebhookNotificationSink
A transport-agnostic webhook-shaped NotificationSink: holds a destination url and an injected send closure, so this crate needs no HTTP client dependency — works with any webhook-style endpoint (Slack, Discord, a generic HTTP receiver); the consumer supplies the actual transport.

Enums§

NotificationSeverity

Traits§

DataFeedAdapter
Historical/live bar data source contract. Provider clients (broker APIs, exchange WebSockets, vendor SDKs) live in consuming applications, not here.
NotificationSink
Notification-channel contract, decoupled from any specific transport (webhook, email, push, broker action). Deterministic chart-kit events (alerts, scenario transitions, fills) are the producer; the transport is entirely the consumer’s concern.