{
"message": "Can't perform this action",
"reason": "Supplied object is in *Cancelled* state, which prevents performing this action"
}
{
"message": "Can't perform this action",
"reason": "Supplied object is in *Cancelled* state, which prevents performing this action"
}
{
"message": "Can't perform this action",
"reason": "Supplied object is in *Cancelled* state, which prevents performing this action"
}
{
"message": "CURRENCY_PAIRS_INVALID",
"reason": "Invalid format for the 'pairs' parameter. Each pair must include two currencies concatenated, and multiple pairs should be comma-separated. eg: EURUSD,GBPUSD"
}
{
"message": "Can't perform this action",
"reason": "Supplied object is in *Cancelled* state, which prevents performing this action"
}
Accept Offline
Rates
Retrieves offline hedge quote proposals for selected currency pairs. Partners can use these pre-fetched proposals - avoiding the need for a real-time quote per transaction.
{
"message": "Can't perform this action",
"reason": "Supplied object is in *Cancelled* state, which prevents performing this action"
}
{
"message": "Can't perform this action",
"reason": "Supplied object is in *Cancelled* state, which prevents performing this action"
}
{
"message": "Can't perform this action",
"reason": "Supplied object is in *Cancelled* state, which prevents performing this action"
}
{
"message": "CURRENCY_PAIRS_INVALID",
"reason": "Invalid format for the 'pairs' parameter. Each pair must include two currencies concatenated, and multiple pairs should be comma-separated. eg: EURUSD,GBPUSD"
}
{
"message": "Can't perform this action",
"reason": "Supplied object is in *Cancelled* state, which prevents performing this action"
}
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 Rates Retrieved
Represents the response of an offline 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.
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
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.
Unique identifier for the offline rates revision. This id is used later to accept an offline rate.
Example:
156
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Grain Developer Portal","colors":{"primary":"#3D82F7","light":"#6AA0F9","dark":"#2563EB"},"logo":{"light":"https://mintcdn.com/grainfinance/C_1vcIAg0NPjbAeO/logo/light.svg?fit=max\u0026auto=format\u0026n=C_1vcIAg0NPjbAeO\u0026q=85\u0026s=b888c1903085edd1bc00cfa6adfdc039","dark":"https://mintcdn.com/grainfinance/C_1vcIAg0NPjbAeO/logo/dark.svg?fit=max\u0026auto=format\u0026n=C_1vcIAg0NPjbAeO\u0026q=85\u0026s=6c57ab3a610f3fe95eefc158f678f311"},"favicon":"https://mintcdn.com/grainfinance/BdUNHBIRgC_EL1Ck/favicon.png?fit=max\u0026auto=format\u0026n=BdUNHBIRgC_EL1Ck\u0026q=85\u0026s=4a2881fb105e1412ccda79f2fed01f0e","api":{"openapi":"https://grain-docs-assets.s3.us-east-1.amazonaws.com/openapi.yaml"},"navbar":{"links":[{"href":"mailto:support@grainfinance.co","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://console.grainfinance.co"}},"footer":{},"contextual":{"options":["copy","view","chatgpt","claude","perplexity"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"grainfinance","hasAudioNarration":false,"actualSubdomain":"grainfinance","customDomains":["docs.grainfinance.co"],"gitSource":{"type":"github","owner":"grainfinance","repo":"mintlify-docs","deployBranch":"main","isPrivate":true,"contentDirectory":"","mountPath":"","label":"","_id":"6b10e36b9ffae5051c41251b"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b1473ac5ae8bdb17a90995b","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"API","count":42},{"language":"default","tag":"Webhooks","count":18},{"language":"default","tag":"Hedges","count":15},{"language":"default","tag":"Events","count":14},{"language":"default","tag":"Get Started","count":7},{"language":"default","tag":"Concepts","count":6},{"language":"default","tag":"Customers","count":5},{"language":"default","tag":"Dual Hedges","count":5},{"language":"default","tag":"Conversions","count":4},{"language":"default","tag":"Drawdown Hedge","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/hedges/get-offline-rates","slug":"/api-reference/hedges/get-offline-rates","pageMetadata":{"title":"Rates","openapi":"GET /offline-rates","description":"Retrieves offline hedge quote proposals for selected currency pairs. Partners can use these pre-fetched proposals - avoiding the need for a real-time quote per transaction.","href":"/api-reference/hedges/get-offline-rates"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Retrieves offline hedge quote proposals for selected currency pairs. Partners can use these pre-fetched proposals - avoiding the need for a real-time quote per transaction.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Rates","openapi":"GET /offline-rates","description":"Retrieves offline hedge quote proposals for selected currency pairs. Partners can use these pre-fetched proposals - avoiding the need for a real-time quote per transaction.","href":"/api-reference/hedges/get-offline-rates"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"Offline Quotes","responses":{"200":"4de2aed9-b5aa-4cf9-97c6-b924b55485d7","400":"e0366d19-923d-4ed7-985d-c126551e1050","403":"e8d1aa5d-0778-460f-b4fb-67e98cd687b6","404":"cca6637f-6ef0-4f5d-9806-7d393a381a14","422":"64d35a16-b0fd-4d22-b954-75b8a9d3b25e","500":"bda2f941-9f8b-410d-8114-0275d317c188"},"description":"Retrieves offline hedge quote proposals for selected currency pairs. Partners can use these pre-fetched proposals - avoiding the need for a real-time quote per transaction.","tags":["Hedges"],"security":["52686bba-0088-43cf-86c7-f0b0bc181bd9"],"parameters":["2928a2e4-0693-47e5-b773-0bc18c3569ce"],"method":"get","type":"path","servers":["eeb09c90-1271-4ffb-8ae7-4776d42b8d94"],"path":"/offline-rates","baseUrlOptions":["https://api.grainfinance.co/v1"],"title":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"2928a2e4-0693-47e5-b773-0bc18c3569ce":{"description":"Optional query parameter specifying currency pairs.\nMultiple pairs can be provided as a comma-separated list.\nPlease encode the query param beforehand.\nFor example, ?pairs=EURUSD%2CGBPEUR represents ?pairs=EURUSD,GBPEUR","in":"query","name":"pairs","required":false,"schema":{"type":"string","isRequired":false,"description":"Optional query parameter specifying currency pairs.\nMultiple pairs can be provided as a comma-separated list.\nPlease encode the query param beforehand.\nFor example, ?pairs=EURUSD%2CGBPEUR represents ?pairs=EURUSD,GBPEUR","uniqueKey":"","typeLabel":"string"}}},"responses":{"4de2aed9-b5aa-4cf9-97c6-b924b55485d7":{"description":"Offline Rates Retrieved","content":{"application/json":{"schema":{"properties":{"tenorCalculationDate":{"type":"string","description":"Date in ISO 8601 format yyyy-MM-dd.\nThis 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.\nThe difference in days will be used to find the right tenor in the offline table.","example":"2023-12-21","isRequired":true,"uniqueKey":"tenorCalculationDate","typeLabel":"string"},"validUntilTs":{"type":"number","format":"double","description":"Unix timestamp of expiration for the specific revision.\nIndicates the maximum duration during which this revision is valid for accepting hedge requests.","example":1703770471,"isRequired":true,"uniqueKey":"validUntilTs","typeLabel":"number\u003cdouble>"},"rates":{"properties":{},"additionalProperties":{"properties":{"7":{"type":"number","format":"double","isRequired":true,"uniqueKey":"rates.additionalProperties.7","typeLabel":"number\u003cdouble>"},"14":{"type":"number","format":"double","isRequired":true,"uniqueKey":"rates.additionalProperties.14","typeLabel":"number\u003cdouble>"},"30":{"type":"number","format":"double","isRequired":true,"uniqueKey":"rates.additionalProperties.30","typeLabel":"number\u003cdouble>"},"60":{"type":"number","format":"double","isRequired":true,"uniqueKey":"rates.additionalProperties.60","typeLabel":"number\u003cdouble>"},"90":{"type":"number","format":"double","isRequired":true,"uniqueKey":"rates.additionalProperties.90","typeLabel":"number\u003cdouble>"},"120":{"type":"number","format":"double","isRequired":true,"uniqueKey":"rates.additionalProperties.120","typeLabel":"number\u003cdouble>"},"150":{"type":"number","format":"double","isRequired":true,"uniqueKey":"rates.additionalProperties.150","typeLabel":"number\u003cdouble>"},"180":{"type":"number","format":"double","isRequired":true,"uniqueKey":"rates.additionalProperties.180","typeLabel":"number\u003cdouble>"},"210":{"type":"number","format":"double","isRequired":true,"uniqueKey":"rates.additionalProperties.210","typeLabel":"number\u003cdouble>"},"240":{"type":"number","format":"double","isRequired":true,"uniqueKey":"rates.additionalProperties.240","typeLabel":"number\u003cdouble>"},"270":{"type":"number","format":"double","isRequired":true,"uniqueKey":"rates.additionalProperties.270","typeLabel":"number\u003cdouble>"},"300":{"type":"number","format":"double","isRequired":true,"uniqueKey":"rates.additionalProperties.300","typeLabel":"number\u003cdouble>"},"330":{"type":"number","format":"double","isRequired":true,"uniqueKey":"rates.additionalProperties.330","typeLabel":"number\u003cdouble>"},"360":{"type":"number","format":"double","isRequired":true,"uniqueKey":"rates.additionalProperties.360","typeLabel":"number\u003cdouble>"}},"required":["360","330","300","270","240","210","180","150","120","90","60","30","14","7"],"type":"object","uniqueKey":"rates.additionalProperties","typeLabel":"object"},"type":"object","example":{"USDEUR":{"7":1.11293728,"14":1.12093476,"30":1.10384729,"60":1.09723456,"90":1.08576234,"120":1.07456321,"150":1.06781234,"180":1.05678901,"210":1.0456789,"240":1.03456789,"270":1.02345678,"300":1.01234567,"330":1.00987654,"360":0.99876543},"USDGBP":{"7":1.27987654,"14":1.26876543,"30":1.28123456,"60":1.29345678,"90":1.30098765,"120":1.31456789,"150":1.32456789,"180":1.33678901,"210":1.34789012,"240":1.35890123,"270":1.36901234,"300":1.37123456,"330":1.38234567,"360":1.39456789}},"description":"Rates information organized by currency pairs and tenors.\nThe structure includes currency pairs as keys, each associated with a nested object containing tenors and corresponding rate.","isRequired":true,"uniqueKey":"rates","typeLabel":"object"},"revision":{"type":"number","format":"double","description":"Unique identifier for the offline rates revision. This id is used later to accept an offline rate.","example":156,"isRequired":true,"uniqueKey":"revision","typeLabel":"number\u003cdouble>"}},"required":["tenorCalculationDate","validUntilTs","rates","revision"],"type":"object","description":"Represents the response of an offline rates request, including a revision snapshot with a time-to-live (TTL) indicating validity.\nRates are organized by currency pair, with each pair associated with rates for various tenors.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"tenorCalculationDate":"2023-12-21","validUntilTs":1703770471,"rates":{"USDEUR":{"7":1.11293728,"14":1.12093476,"30":1.10384729,"60":1.09723456,"90":1.08576234,"120":1.07456321,"150":1.06781234,"180":1.05678901,"210":1.0456789,"240":1.03456789,"270":1.02345678,"300":1.01234567,"330":1.00987654,"360":0.99876543},"USDGBP":{"7":1.27987654,"14":1.26876543,"30":1.28123456,"60":1.29345678,"90":1.30098765,"120":1.31456789,"150":1.32456789,"180":1.33678901,"210":1.34789012,"240":1.35890123,"270":1.36901234,"300":1.37123456,"330":1.38234567,"360":1.39456789}},"revision":156}}},"exampleType":"generated"}},"exampleType":"generated"},"e0366d19-923d-4ed7-985d-c126551e1050":{"description":"The request failed because it is not well-formed or is syntactically incorrect or violates schema.","content":{"application/json":{"schema":{"description":"An API Error","properties":{"message":{"type":"string","description":"A short explanation of the error.","example":"Can't perform this action","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"reason":{"type":"string","description":"A detailed description of the reason for the failure.","example":"Supplied object is in *Cancelled* state, which prevents performing this action","uniqueKey":"reason","typeLabel":"string"}},"required":["message"],"type":"object","additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Can't perform this action","reason":"Supplied object is in *Cancelled* state, which prevents performing this action"}}},"exampleType":"generated"}},"exampleType":"generated"},"e8d1aa5d-0778-460f-b4fb-67e98cd687b6":{"description":"The request failed because the caller has insufficient permissions.","content":{"application/json":{"schema":{"description":"An API Error","properties":{"message":{"type":"string","description":"A short explanation of the error.","example":"Can't perform this action","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"reason":{"type":"string","description":"A detailed description of the reason for the failure.","example":"Supplied object is in *Cancelled* state, which prevents performing this action","uniqueKey":"reason","typeLabel":"string"}},"required":["message"],"type":"object","additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Can't perform this action","reason":"Supplied object is in *Cancelled* state, which prevents performing this action"}}},"exampleType":"generated"}},"exampleType":"generated"},"cca6637f-6ef0-4f5d-9806-7d393a381a14":{"description":"The request failed because the resource does not exist.","content":{"application/json":{"schema":{"description":"An API Error","properties":{"message":{"type":"string","description":"A short explanation of the error.","example":"Can't perform this action","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"reason":{"type":"string","description":"A detailed description of the reason for the failure.","example":"Supplied object is in *Cancelled* state, which prevents performing this action","uniqueKey":"reason","typeLabel":"string"}},"required":["message"],"type":"object","additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Can't perform this action","reason":"Supplied object is in *Cancelled* state, which prevents performing this action"}}},"exampleType":"generated"}},"exampleType":"generated"},"64d35a16-b0fd-4d22-b954-75b8a9d3b25e":{"description":"The request failed because it is either semantically incorrect or has failed business validation.","content":{"application/json":{"schema":{"description":"An API Error","properties":{"message":{"type":"string","description":"A short code of the error.","example":"CURRENCY_PAIRS_INVALID","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"reason":{"type":"string","description":"A detailed description of the reason for the failure.","example":"Invalid format for the 'pairs' parameter. Each pair must include two currencies concatenated, and multiple pairs should be comma-separated. eg: EURUSD,GBPUSD","uniqueKey":"reason","typeLabel":"string"}},"required":["message"],"type":"object","additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"CURRENCY_PAIRS_INVALID","reason":"Invalid format for the 'pairs' parameter. Each pair must include two currencies concatenated, and multiple pairs should be comma-separated. eg: EURUSD,GBPUSD"}}},"exampleType":"generated"}},"exampleType":"generated"},"bda2f941-9f8b-410d-8114-0275d317c188":{"description":"The request failed because an internal server error occurred.","content":{"application/json":{"schema":{"description":"An API Error","properties":{"message":{"type":"string","description":"A short explanation of the error.","example":"Can't perform this action","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"reason":{"type":"string","description":"A detailed description of the reason for the failure.","example":"Supplied object is in *Cancelled* state, which prevents performing this action","uniqueKey":"reason","typeLabel":"string"}},"required":["message"],"type":"object","additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Can't perform this action","reason":"Supplied object is in *Cancelled* state, which prevents performing this action"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"52686bba-0088-43cf-86c7-f0b0bc181bd9":{"api-key":{"type":"http","scheme":"basic","description":"Basic authentication using the partner API keys from https://console.grainfinance.co/keys","scopes":[],"schemeName":"api-key"}}},"servers":{"eeb09c90-1271-4ffb-8ae7-4776d42b8d94":{"url":"https://api.grainfinance.co/v1","description":"Grain API"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"basic","description":"Basic authentication using the partner API keys from https://console.grainfinance.co/keys","scopes":[],"schemeName":"api-key"},"schema":{"title":"Basic Auth","type":"object","description":"Basic authentication using the partner API keys from https://console.grainfinance.co/keys","isRequired":true,"properties":{"username":{"type":"string","uniqueKey":"username","isRequired":true,"typeLabel":"string","deprecated":false},"password":{"type":"string","uniqueKey":"password","isRequired":true,"typeLabel":"string","deprecated":false}},"additionalProperties":false,"deprecated":false},"schemeName":"api-key","name":"Authorization"}],"title":"api-key"}]},"originalFileLocation":"https://grain-docs-assets.s3.us-east-1.amazonaws.com/openapi.yaml"},"subdomain":"grainfinance","siteName":"Grain Developer Portal","title":"Rates - Grain Developer Portal","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-28T08:29:31.390Z","originalFileLocation":"api-reference/hedges/get-offline-rates.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Retrieves offline hedge quote proposals for selected currency pairs. Partners can use these pre-fetched proposals - avoiding the need for a real-time quote per transaction.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Grain Developer Portal\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/grainfinance/OLtSo8SKRqQNdAkd/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/grainfinance/OLtSo8SKRqQNdAkd/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/grainfinance/OLtSo8SKRqQNdAkd/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/grainfinance/OLtSo8SKRqQNdAkd/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/grainfinance/OLtSo8SKRqQNdAkd/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/grainfinance/OLtSo8SKRqQNdAkd/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/grainfinance/OLtSo8SKRqQNdAkd/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/grainfinance/OLtSo8SKRqQNdAkd/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/grainfinance/OLtSo8SKRqQNdAkd/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Rates - Grain Developer Portal\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieves offline hedge quote proposals for selected currency pairs. Partners can use these pre-fetched proposals - avoiding the need for a real-time quote per transaction.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Grain Developer Portal\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.grainfinance.co/api-reference/hedges/get-offline-rates\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://grainfinance.mintlify.site/_mintlify/api/og/v2?division=Accept+Offline\u0026amp;title=Rates\u0026amp;description=Retrieves+offline+hedge+quote+proposals+for+selected+currency+pairs.+Partners+can+use+these+pre-fetched+proposals+-+avoiding+the+need+for+a+real-time+quote+per+\u0026amp;theme=8c9d9bd44ec042b2b291f319\u0026amp;signature=084d1d4bb1cd7008957bb075aa11c77be2300f8bd42222f132d1736e3155c5bc\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Rates - Grain Developer Portal\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieves offline hedge quote proposals for selected currency pairs. Partners can use these pre-fetched proposals - avoiding the need for a real-time quote per transaction.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://grainfinance.mintlify.site/_mintlify/api/og/v2?division=Accept+Offline\u0026amp;title=Rates\u0026amp;description=Retrieves+offline+hedge+quote+proposals+for+selected+currency+pairs.+Partners+can+use+these+pre-fetched+proposals+-+avoiding+the+need+for+a+real-time+quote+per+\u0026amp;theme=8c9d9bd44ec042b2b291f319\u0026amp;signature=084d1d4bb1cd7008957bb075aa11c77be2300f8bd42222f132d1736e3155c5bc\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/grainfinance/OLtSo8SKRqQNdAkd/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Grain Developer Portal\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3D82F7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.grainfinance.co/api-reference/hedges/get-offline-rates\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/hedges/get-offline-rates.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.grainfinance.co/#organization\",\"name\":\"Grain Developer Portal\",\"url\":\"https://docs.grainfinance.co\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/grainfinance/C_1vcIAg0NPjbAeO/logo/light.svg?fit=max\u0026auto=format\u0026n=C_1vcIAg0NPjbAeO\u0026q=85\u0026s=b888c1903085edd1bc00cfa6adfdc039\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.grainfinance.co#website\",\"name\":\"Grain Developer Portal\",\"url\":\"https://docs.grainfinance.co\",\"publisher\":{\"@id\":\"https://docs.grainfinance.co/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.grainfinance.co/api-reference/hedges/get-offline-rates#webpage\",\"url\":\"https://docs.grainfinance.co/api-reference/hedges/get-offline-rates\",\"name\":\"Rates\",\"description\":\"Retrieves offline hedge quote proposals for selected currency pairs. Partners can use these pre-fetched proposals - avoiding the need for a real-time quote per transaction.\",\"dateModified\":\"2026-05-28T08:29:31.390Z\",\"isPartOf\":{\"@id\":\"https://docs.grainfinance.co#website\"},\"breadcrumb\":{\"@id\":\"https://docs.grainfinance.co/api-reference/hedges/get-offline-rates#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.grainfinance.co/api-reference/hedges/get-offline-rates#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Hedges\",\"item\":\"https://docs.grainfinance.co/api-reference/hedges/get-quote\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Rates\",\"item\":\"https://docs.grainfinance.co/api-reference/hedges/get-offline-rates\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.grainfinance.co/api-reference/hedges/get-offline-rates#apireference\",\"headline\":\"Rates\",\"name\":\"Rates\",\"description\":\"Retrieves offline hedge quote proposals for selected currency pairs. Partners can use these pre-fetched proposals - avoiding the need for a real-time quote per transaction.\",\"url\":\"https://docs.grainfinance.co/api-reference/hedges/get-offline-rates\",\"mainEntityOfPage\":{\"@id\":\"https://docs.grainfinance.co/api-reference/hedges/get-offline-rates#webpage\"},\"dateModified\":\"2026-05-28T08:29:31.390Z\",\"publisher\":{\"@id\":\"https://docs.grainfinance.co/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.grainfinance.co#website\"}}]}\u003c/script>","agentPointerHref":"/api-reference/hedges/get-offline-rates.md","siteName":"Grain Developer Portal","nav":{"global":null,"tabs":[{"tab":"Get Started","pages":[{"title":"Get Started","href":""}]},{"tab":"Concepts","pages":[{"title":"Concepts","href":"/concepts/core-concepts"}]},{"tab":"API","groups":[{"group":"Basics","pages":[{"title":"Conventions","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"}]},{"group":"Hedges","pages":[{"group":"Accept Realtime","expanded":true,"pages":[{"title":"Quote","playground":"simple","openapi":"POST /customers/{customerId}/hedges/quote","href":"/api-reference/hedges/get-quote"},{"title":"Accept","playground":"simple","openapi":"POST /customers/{customerId}/hedges/accept-quote","description":"Accepts a previously generated real-time rate proposal and creates the hedge transaction.","href":"/api-reference/hedges/accept-quote"}]},{"group":"Accept Offline","expanded":true,"pages":[{"title":"Rates","openapi":"GET /offline-rates","href":"/api-reference/hedges/get-offline-rates"},{"title":"Accept","playground":"simple","openapi":"POST /customers/{customerId}/hedges/accept-offline-quote","description":"Accepts a previously retrieved offline rate proposal and books the hedge accordingly.","href":"/api-reference/hedges/accept-offline-quote"}]},{"title":"List Hedges","openapi":"GET /customers/{customerId}/hedges","href":"/api-reference/hedges/list-hedges"},{"title":"Get Hedge","openapi":"GET /customers/{customerId}/hedges/{hedgeId}","href":"/api-reference/hedges/get-hedge"},{"playground":"simple","title":"Cancel Hedge","openapi":"POST /customers/{customerId}/hedges/{hedgeId}/cancel","href":"/api-reference/hedges/cancel-hedge"},{"group":"Drawdown Hedge","pages":[{"title":"Quote","playground":"simple","openapi":"POST /customers/{customerId}/hedges/{hedgeId}/drawdown/quote","href":"/api-reference/hedges/drawdown-quote"},{"title":"Accept","playground":"simple","openapi":"POST /customers/{customerId}/hedges/{hedgeId}/drawdown/accept","href":"/api-reference/hedges/drawdown-accept"},{"title":"List","playground":"simple","openapi":"GET /customers/{customerId}/hedges/{hedgeId}/drawdown","href":"/api-reference/hedges/list-drawdowns"},{"title":"Get","playground":"simple","openapi":"GET /customers/{customerId}/hedges/{hedgeId}/drawdown/{drawdownId}","href":"/api-reference/hedges/get-drawdown"}]},{"group":"Extend Hedge","pages":[{"title":"Quote","playground":"simple","openapi":"POST /customers/{customerId}/hedges/{hedgeId}/extension/quote","href":"/api-reference/hedges/extension-quote"},{"title":"Accept","playground":"simple","openapi":"POST /customers/{customerId}/hedges/{hedgeId}/extension/accept","href":"/api-reference/hedges/extension-accept"},{"title":"List","playground":"simple","openapi":"GET /customers/{customerId}/hedges/{hedgeId}/extension","href":"/api-reference/hedges/list-extensions"},{"title":"Get","playground":"simple","openapi":"GET /customers/{customerId}/hedges/{hedgeId}/extension/{extensionId}","href":"/api-reference/hedges/get-extension"}]}]},{"group":"Dual Hedges","pages":[{"title":"Rates","openapi":"GET /dual-hedge-offline-rates","href":"/api-reference/dual-hedges/get-offline-rates"},{"playground":"simple","title":"Accept","openapi":"POST /customers/{customerId}/dual-hedges/accept-offline-quote","href":"/api-reference/dual-hedges/accept-offline-quote"},{"title":"List Dual Hedges","openapi":"GET /customers/{customerId}/dual-hedges","href":"/api-reference/dual-hedges/list-dual-hedges"},{"title":"Get Dual Hedge","openapi":"GET /customers/{customerId}/dual-hedges/{dualHedgeId}","href":"/api-reference/dual-hedges/get-dual-hedge"},{"playground":"simple","title":"Cancel Dual Hedge","openapi":"POST /customers/{customerId}/dual-hedges/{dualHedgeId}/cancel","href":"/api-reference/dual-hedges/cancel-dual-hedge"}]},{"group":"Customers","pages":[{"playground":"simple","title":"Create Customer","openapi":"POST /customers","href":"/api-reference/customers/create-customer"},{"title":"List Customers","openapi":"GET /customers","href":"/api-reference/customers/list-customers"},{"title":"Get Customer","openapi":"GET /customers/{customerId}","href":"/api-reference/customers/get-customer"},{"playground":"simple","title":"Update Customer","openapi":"POST /customers/{customerId}/update","href":"/api-reference/customers/update-customer"},{"playground":"simple","title":"Delete Customer","openapi":"DELETE /customers/{customerId}","href":"/api-reference/customers/delete-customer"}]},{"group":"Conversions","pages":[{"playground":"simple","title":"Quote","openapi":"POST /conversions/quote","href":"/api-reference/conversions/get-quote"},{"playground":"simple","title":"Accept","openapi":"POST /conversions/accept-quote","href":"/api-reference/conversions/accept-quote"},{"title":"List Conversions","openapi":"GET /conversions","href":"/api-reference/conversions/list-conversions"},{"title":"Get Conversion","openapi":"GET /conversions/{conversionId}","href":"/api-reference/conversions/get-conversion"}]},{"group":"Payouts","pages":[{"title":"Review Payout","openapi":"POST /payouts","href":"/api-reference/payouts/review-payout"},{"title":"Submit Payout","openapi":"POST /payouts/{proposalId}/submit","href":"/api-reference/payouts/submit-payout"},{"title":"List Payouts","openapi":"GET /payouts","href":"/api-reference/payouts/list-payouts"},{"title":"Get Payout","openapi":"GET /payouts/{payoutId}","href":"/api-reference/payouts/get-payout"}]},{"group":"Vendors","pages":[{"playground":"simple","title":"Create Vendor","openapi":"POST /vendors","href":"/api-reference/vendors/create-vendor"},{"title":"List Vendors","openapi":"GET /vendors","href":"/api-reference/vendors/list-vendors"},{"title":"Get Vendor","openapi":"GET /vendors/{vendorId}","href":"/api-reference/vendors/get-vendor"}]},{"group":"Wallets","pages":[{"title":"List Wallets","openapi":"GET /wallets","href":"/api-reference/wallets/list-wallets"},{"title":"Get Wallet","openapi":"GET /wallets/{walletId}","href":"/api-reference/wallets/get-wallet"},{"playground":"simple","title":"Withdraw","openapi":"POST /wallets/{walletId}/withdraw","href":"/api-reference/wallets/withdraw"}]},{"group":"Pricing","pages":[{"title":"Exchange Rate","openapi":"GET /rates/currency-pairs-exchange-rate","href":"/api-reference/pricing/get-exchange-rate"}]}]},{"tab":"Webhooks","pages":[{"title":"Webhooks","href":"/webhooks"}]}]},"basePath":"","title":"Rates - Grain Developer Portal","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BuieBNTB.js","snippetPresets-alIv9Yoc.js","utils-BS41p-Nj.js","style-to-object-BY3JEAdk.js","utils-D0Za9LU_.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Lx7TZ5XR.js","conditional-requirements-CFM0id0Q.js","cloneDeep-4e5CS5ZI.js","_Uint8Array-B2-W7EM3.js","isObject-FP1Yky1u.js","ApiExamples-sCe6z2hN.js","usePlaygroundInputsStore-cU_dFE5n.js","shallow-BwNCr__O.js","isEqual-Cnvzqd4L.js","CodeSnippets-CMIr49P8.js","CodeSnippet-BC-bKzyy.js","use-playground-group-access-c3bgmn-x.js","Page-Acw_JRP6.js","api-description-markdown-1o8U1kkQ.js","DynamicMarkdown-CvOkzads.js","SectionHeading-CJ97Kdt-.js","MethodPill-DynWltjQ.js","getPastedJson-CBCnXiWl.js","Check2Icon-CPHq_WNu.js","axios-CsQoIw0U.js","Markdown-4tjIF-hK.js","AssistantPageLink-BcChI7L3.js","dist-MIf_HGLZ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}