Fastmarkets API Authentication overview
Learn how to navigate and implement Fastmarkets API authentication for secure and efficient data access.
Table of Contents
Fastmarkets APIs use OAuth2.0 with client credentials-style flow. Authentication performed against the Fastmarkets Authentication API to obtain an access token, which is then passed in data API requests as an HTTP header.
The same authentication model and credentials are used across Physical Prices, Marked Data, News and Analytics API. Once authenticated, the access token can be reused across all supported APIs.
Authentication endpoint
https://auth.fastmarkets.com/connect/token
Required authentication parameters
| Parameter | Value | Description |
|---|---|---|
| grant_type | servicekey | Access grant type - servicekey for API use |
| client_id | service_client | Access client type - service_client for API use |
| scope | <string> |
Space-separated string of concatenated scopes for combined access: fastmarkets.news.api fastmarkets.search.api for News API fastmarkets.analytics.api for Analytics API |
| serviceName | <string> | Provided by Fastmarkets |
| serviceKey | <string> | Provided by Fastmarkets |
The same credentials and token can be used for Physical Prices, Marked Data, News and Analytics API.
Example Authentication request (cURL):
curl --location "https://auth.fastmarkets.com/connect/token" --data-urlencode "grant_type=servicekey" --data-urlencode "client_id=service_client" --data-urlencode "scope=fastmarkets.physicalprices.api" --data-urlencode "serviceName=yourServiceName" --data-urlencode “serviceKey=AskdjcORI2309/Cl...ajni”
The response includes an access token that must be passed in subsequent API requests:
Authorization: Bearer <access_token>
Authentication Limits & Token Lifecycle
Authentication request limits:
- Maximum: 10 authentication requests per 5 minutes
- Excessive token requests may be rejected
Because of this limit, token reuse is essential when working with Power BI.
Token lifecycle considerations:
- Access tokens are time‑limited (2 hours)
- Tokens expire and must be refreshed
- Power BI does not maintain long‑running sessions between refreshes
Power BI solutions must avoid requesting a new token on every query execution.