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§

collect_pages
Collect rows across cursor pages, starting from page. fetch requests one page and returns its rows and paging, so callers can send each request through their own retries, pacing or logging; Client::all_timeseries uses it with Client::timeseries.
timeseries_items
Convert array, ISO-date-keyed or Unix-seconds-keyed history into rows. Invalid keys fail explicitly; rows are never silently discarded.