Skip to main content
GET
/
dual-hedge-offline-rates
cURL
curl --request GET \
  --url https://api.grainfinance.co/v1/dual-hedge-offline-rates \
  --header 'Authorization: Basic <encoded-value>'
{
  "functionalCurrency": "EUR",
  "tenorCalculationDate": "2023-12-21",
  "validUntilTs": 1703770471,
  "rates": {},
  "revision": 156
}

Documentation Index

Fetch the complete documentation index at: https://docs.grainfinance.co/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Basic authentication using the partner API keys from https://console.grainfinance.co/api-keys

Query Parameters

pairs
string

Optional query parameter specifying currency pairs. Multiple pairs can be provided as a comma-separated list. Please encode the query param beforehand. For example, ?pairs=EURUSD%2CGBPEUR represents ?pairs=EURUSD,GBPEUR

Response

Offline Dual Rates Retrieved

Represents the response of an offline dual rates request, including a revision snapshot with a time-to-live (TTL) indicating validity. Rates are organized by currency pair, with each pair associated with rates for various tenors.

functionalCurrency
string
required

Represent the functional currency of the partner.

Example:

"EUR"

tenorCalculationDate
string
required

Date in ISO 8601 format yyyy-MM-dd. This is the date that will be used to calculate the difference in days between the offline revision creation date and the hedge future endAt date. The difference in days will be used to find the right tenor in the offline table.

Example:

"2023-12-21"

validUntilTs
number<double>
required

Unix timestamp of expiration for the specific revision. Indicates the maximum duration during which this revision is valid for accepting hedge requests.

Example:

1703770471

rates
object
required

Dual rates information organized by currency pairs and tenors. The structure includes currency pairs as keys, each associated with a nested object containing tenors and corresponding rate.

revision
number<double>
required

Unique identifier for the offline rates revision. This id is used later to accept an offline rate.

Example:

156