Skip to main content
POST
Store bond-issuer credit spreads.

Authorizations

Authorization
string
header
required

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

Body

The upload payload. Provide either ProviderId or MarketDataEnvironmentName, not both; omitting both selects the caller's organisation scope. Supply non-empty BondIssuerCreditSpreads rows with bond identifier, date, and decimal spread. As a legacy alternative, MarketDates and CreditSpreadsByBondIdentifier create one row for every date-and-bond combination.

Accepts typed issuer-spread rows or legacy market-date and bond-spread inputs.

$type
enum<string>
required
Available options:
Derivitec.Web.Core.MarketData.ApiUploadBondIssuerCreditSpreadsRequest, 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.

bond_issuer_credit_spreads
object[] | null

Preferred typed issuer credit-spread rows.

market_dates
string<date-time>[] | null

Legacy date-only market dates combined with every entry in the bond-spread map when typed rows are absent or empty.

credit_spreads_by_bond_identifier
object[] | null

Legacy map from each bond selector to a positive continuously compounded annual spread expressed as a decimal; 0.01 means 100 basis points.

Response

Returns whether every issuer/date group was accepted and errors for invalid providers, bonds, dates, spreads, duplicate conflicts, or unavailable reference curves.

Common operation outcome containing a success indicator and any error messages.

$type
enum<string>
required
Available options:
Derivitec.Web.Core.ApiBaseResponse, 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.