Skip to main content
POST
Retrieve commodity market data.

Authorizations

Authorization
string
header
required

OAuth2 access-token requested from AWS Cognito and provided as a Auth Bearer header

Body

The query payload. CommodityIds, date-only MarketDates, and identifier-to-Descriptor pairs must be non-empty, with one descriptor for every requested commodity. Provider or environment fields optionally select an authorised source.

Queries commodity market data by identifier or descriptor across market dates.

$type
enum<string>
required
Available options:
Derivitec.Web.Core.MarketData.ApiGetCommoditiesRequest, Derivitec.Web.Core
market_data_environment_name
string | null

Name of the market-data environment to use. Supply either this name or provider_id, not both.

Example:

"Example market data"

provider_id
string | null

Opaque identifier of the market-data provider to use. Supply either this identifier or market_data_environment_name, not both.

commodity_ids
object[] | null

Commodity IDs selecting the requested commodities.

market_dates
string<date-time>[] | null

Market dates on which commodities are requested.

descriptors
object[] | null

Structured selectors for the requested commodities.

Response

Returns available commodity assets with requested spot and futures history, or validation and unavailable-data errors.

Returns commodity market-data records and query errors.

$type
enum<string>
required
Available options:
Derivitec.Web.Core.MarketData.ApiGetCommoditiesResponse, Derivitec.Web.Core
is_success
boolean

Whether the operation completed successfully. The default is true; error outcomes set it to false.

Example:

true

error_messages
string[] | null

Messages explaining operation-level failures. The collection is empty by default.

commodities
object[] | null

Commodity market-data records returned by the query.