Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.secapi.ai/llms.txt

Use this file to discover all available pages before exploring further.

Rust SDK

The Rust SDK is for async, performance-sensitive services that still want the Datastream contract to look like Datastream, not like a bespoke Rust dialect.

Status

Bootstrap client

A starter Rust client is available in packages/sdk-rust.

Async-first

Built around reqwest and serde for async service workloads.

REST parity

It mirrors the canonical API so freshness, provenance, and materialization stay visible.
1

Add the client

Bring the Rust package into your service and set the Datastream API key through the environment.
2

Exercise one fast path

Start with a volatility or entity lookup to confirm the runtime wiring.
3

Exercise one structured workflow

Move to filings, statements, or ownership so you are validating the real contract shape.

Example

let client = omni_datastream_sdk_rust::OmniDatastreamClient::new(
    std::env::var("OMNI_DATASTREAM_API_KEY").ok(),
);
let signal = client.volatility_signal(&[("ticker", "AAPL")]).await?;

Dilution intelligence

// Top 10 highest-dilution-risk issuers
let ratings = client.dilution_ratings(&[("overall_risk", "high"), ("limit", "10")]).await?;

// Single-ticker dilution rollup
let score = client.dilution_score(&[("ticker", "BBBB")]).await?;

// ATM offerings only (boolean filter on the events list)
let atms = client.dilution_events(&[("ticker", "BBBB"), ("is_atm", "true")]).await?;

// Coverage + freshness rollup (no agent shape — already compact)
let coverage = client.dilution_coverage(&[("ticker", "BBBB")]).await?;
The full surface — dilution_events, dilution_event_detail, dilution_warrants, dilution_convertibles, dilution_rofr, dilution_lockups, dilution_cash_position, dilution_corporate_actions, dilution_nasdaq_compliance, dilution_ratings, dilution_reverse_splits, dilution_score, dilution_share_float_history, dilution_coverage — mirrors the REST routes 1:1. Pass ("view", "agent") in any list call (except dilution_coverage) for the compact agent-mode shape.

Smoke path

bun run smoke:sdk-rust

API Reference

Open the underlying REST calls for exact request and response details.

Libraries & SDKs

Compare the Rust surface with the other runtime options.