Welcome to the ForecastOS guides!
This is where we cover how to use our solutions, both via UI (i.e. the ForecastOS web application) and programmatically (i.e. API and open-source). With few exceptions, our solutions allow for both UI-based and programmatic usage.
While exploring the guides, if you feel something is missing or wrong, please let us know at [email protected].
ForecastOS offers the following solutions to institutional investors:
We'll cover each of the above solutions in the following guides, all of which have UI, API, and open-source (OS) functionality.
Speaking of which, let's cover how to set up both UI and programmatic access next!
The ForecastOS application UI can be accessed at app.forecastos.com. Only exployees from institutions with active subscriptions will have access to the platform.
Employees will receive login credentials from their company's internal ForecastOS administrator. Note that we will never send or ask you for login credentials or other sensitive information.
After login, you'll be required to set up 2FA (two-factor authentication). For 2FA, we recommend using the Microsoft Authenticator application, although any 2FA app will do!
To run the ForecastOS open-source helper module, you'll need:
Although not required, running the ForecastOS open-source package might be easier if you have:
If you're using pip:
$ pip install forecastos
If you're using poetry:
$ poetry add forecastos
At the top of your python file or .ipynb, add:
import forecastos as fos
ForecastOS uses API keys (created via the UI) to authenticate requests.
We recommended setting and providing the key via an environment variable (to avoid hard-coding secrets in your source code):
export FORECASTOS_API_KEY="your_api_key_here"
Once set, simply importing the library is sufficient:
import forecastos as fos
The ForecastOS module will automatically read the API key from your environment (if named FORECASTOS_API_KEY) and attach it to all outbound requests.
If you prefer to configure authentication explicitly in your code, you can set the API key directly on the module:
import forecastos as fos
fos.api_key = "your_api_key_here"
When calling the ForecastOS API directly (without the Python client), include the API key in the request headers as a Bearer token:
curl -H "Authorization: Bearer $FORECASTOS_API_KEY" \
https://api.forecastos.com/v1/your/endpoint
Now that authentication is set up, what's next is up to you: