Skip to content

fetchEventSnapshot ​

Import from: @xbbg/xnews

fetchEventSnapshot<Provider>(source, options?): Promise<EventProviderResult<Provider>>

Defined in: src/events.ts (declaration: events.d.ts:28)

Fetches one snapshot through the shared status taxonomy. Never throws: transport failures land in error with status: "error", caller configuration preconditions land in status: "disabled", and a snapshot that parsed with warnings but still yielded events is "partial".

Type Parameters ​

Provider ​

Provider extends string

Parameters ​

source ​

EventSource<Provider>

options? ​

EventFetchOptions

Returns ​

Promise<EventProviderResult<Provider>>

Last updated:

xbbg is independent open-source software and is not affiliated with, endorsed by, sponsored by, or approved by Bloomberg Finance L.P.