Skip to main content

init

Function init 

Source
pub fn init(api_key: impl Into<String>) -> Result<()>
Expand description

Initialize the global FRED client with an API key.

Must be called once before series. Subsequent calls return an error.

§Arguments

§Errors

Returns FinanceError::InvalidParameter if already initialized.