Accepts a previously generated real-time rate proposal and creates the hedge transaction.
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.
Basic authentication using the partner API keys from https://console.grainfinance.co/api-keys
The IPv4 address of the browser from which the customer contacts your platform.
example: 192.158.1.38
((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}The id of the customer within the Grain platform.
The payload required in order to accept a hedge
The payload required in order to accept a hedge
The id of the hedge proposal to accept.
"8173b9a7-ee61-413e-b9e3-7c04b2a067c5"
The transaction id, as identified within your system - required when creating a new hedge.
"780231b3ae0d7e9e5097nd89"
The date in which the hedge will be settled, denoted in YYYY-MM-DD format.
\d{4}-\d{2}-\d{2}"2023-02-23"
Specifies the amount to hedge in the toCurrency. This field may be provided on Accept only if the amount was not specified on the Quote call. When provided, this sets fixedSide to toCurrencyAmount, and the fromCurrencyAmount is calculated as: fromCurrencyAmount = toCurrencyAmount × quote. Only one of toCurrencyAmount or fromCurrencyAmount should be provided.
Specifies the amount to hedge in the fromCurrency. This field may be provided on Accept only if the amount was not specified on the Quote call. When provided, this sets fixedSide to fromCurrencyAmount, and the toCurrencyAmount is calculated as: toCurrencyAmount = fromCurrencyAmount / quote. Only one of toCurrencyAmount or fromCurrencyAmount should be provided.
Additional fields that provide further details about the transaction. These fields should be specified as a valid JSON object.
{
"field_a": "value_a",
"field_b": "value_b"
}Hedge Accepted
Hedge objects represent transactions which are currently hedged.
The id of the hedge within the Grain platform.
[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}"8173b9a7-ee61-413e-b9e3-7c04b2a067c5"
The id of the customer within the Grain platform.
[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}"1b0ada1e-fa1b-4cfe-a553-01b340c5650e"
The Status of the Hedge
Active, Cancelled, Completed, InProcess, Overdue "Active"
The id of the transaction within the Grain platform.
[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}"4d78ac65-2c3f-47e2-8bf3-3f76124e9d27"
The transaction id as identified within your system.
"780231b3ae0d7e9e5097nd89"
The currency in which the transaction should be paid at by your customer.
"MXN"
The currency in which the inventory item is listed at on your platform.
"USD"
The id used to identify the customer within your platform
"630231b3ae0d7e9e5097ad35"
The amount to hedge in the toCurrency.
If fromCurrencyAmount is provided, then toCurrencyAmount calculated as:
toCurrencyAmount = fromCurrencyAmount / quote
1560
The amount to hedge in the fromCurrency.
If toCurrencyAmount is provided, then fromCurrencyAmount calculated as:
fromCurrencyAmount = toCurrencyAmount * quote
32161.8
Indicates which currency amount was fixed (specified) when creating the hedge.
When fixedSide is toCurrencyAmount, the toCurrencyAmount was specified and fromCurrencyAmount was calculated.
When fixedSide is fromCurrencyAmount, the fromCurrencyAmount was specified and toCurrencyAmount was calculated.
toCurrencyAmount, fromCurrencyAmount "toCurrencyAmount"
The initial collateral amount required for this hedge in the fromCurrency. Calculated as fromCurrencyAmount * initialCollateralPercentage.
1608.09
The rate locked by this hedge.
20.6165
The external markup percentage that should be added to this quote on top of Grain’s internal pricing. For example, a value of 1.0 represents a 1.0% additional markup.
1
The unix timestamp in which the hedge offer was accepted (if it was).
1659625088
The date in which the hedge was issued, denoted in YYYY-MM-DD format.
\d{4}-\d{2}-\d{2}"2023-01-18"
The date in which the hedge will be settled, denoted in YYYY-MM-DD format.
\d{4}-\d{2}-\d{2}"2023-02-23"
The date in which the hedge was last modified, denoted in YYYY-MM-DD format.
\d{4}-\d{2}-\d{2}"2023-02-23"
The date in which the hedge was cancelled, denoted in YYYY-MM-DD format.
\d{4}-\d{2}-\d{2}"2023-02-23"
The date in which the initial collateral was received, denoted in YYYY-MM-DD format.
Null if not yet received.
\d{4}-\d{2}-\d{2}"2023-01-20"
The date in which the funds of the hedge arrived, afterwards the settlement occurs denoted in YYYY-MM-DD format.
\d{4}-\d{2}-\d{2}"2023-02-23"
The date in which the hedge was completed, denoted in YYYY-MM-DD format.
\d{4}-\d{2}-\d{2}"2023-02-23"
The unix timestamp in which the hedge was completed.
1659625090
The date in which the hedge will become overdue, denoted in YYYY-MM-DD format.
\d{4}-\d{2}-\d{2}"2023-02-23"
The date in which the hedge begins settlement, denoted in YYYY-MM-DD format.
\d{4}-\d{2}-\d{2}"2023-02-23"
The method in which the hedge is being settled. If 'full' type is set, the total hedge amount should be sent to Grain prior to settlement
full The percentage change in the adjusted mark-to-market value since the previous valuation
0.0125
The timestamp at which the latest adjusted mark-to-market change was calculated.
1674057600