Skip to main content

Crate tickerapp

Crate tickerapp 

Source
Expand description

Async client for the Ticker.app v2 market data API.

use tickerapp::{Client, DisclosureQuery};

let client = Client::new("your-api-key");
let page = client.disclosures(&DisclosureQuery::default()).await?;
for item in page.data {
    println!("{}: {}", item.timestamp, item.headline);
}

Re-exports§

pub use generated::client::GetCurrentPriceChangeBasis;
pub use generated::client::GetTimeseriesKey;
pub use generated::client::ListRnsDisclosureItemsChannel;
pub use generated::types::*;

Modules§

generated
Generated API modules

Structs§

Client
Sends credentials in the x-api-key header. No automatic retries.
DisclosureQuery
RNS filters. Responses retain provider warnings about ignored filters.
PageQuery
One page, using either a cursor or a page number. Defaults are provider-defined.
TimeseriesQuery
Daily history filters. Dates accept the provider’s partial ISO8601 syntax.

Enums§

Error
Errors returned by the convenience client.

Constants§

BASE_URL

Functions§

timeseries_items
Convert array, ISO-date-keyed or Unix-seconds-keyed history into rows. Invalid keys fail explicitly; rows are never silently discarded.