Generates a spot rate proposal for a new currency conversion.
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 payload required in order to ask for a spot quote
The payload required in order to ask for a spot quote
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"
Specifies the amount to hedge in the toCurrency. When provided, this sets fixedSide to toCurrencyAmount, and the fromCurrencyAmount is derived as: fromCurrencyAmount = toCurrencyAmount × quote. Exactly one of toCurrencyAmount or fromCurrencyAmount may be provided. Alternatively, neither may be provided to defer amount specification to the Accept call.
1560
Specifies the amount to hedge in the fromCurrency. When provided, this sets fixedSide to fromCurrencyAmount, and the toCurrencyAmount is derived as: toCurrencyAmount = fromCurrencyAmount / quote. Exactly one of toCurrencyAmount or fromCurrencyAmount may be provided. Alternatively, neither may be provided to defer amount specification to the Accept call.
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
Spot Proposal Created
The id of the spot proposal 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 original currency that will be converted into a different currency. This is the currency the user wants to exchange or convert in the transaction.
"MXN"
The target currency that the original currency (fromCurrency) will be converted into. This is the desired currency after the conversion process is complete.
"USD"
The rate locked by this spot.
20.6165
The unix timestamp until which the spot offer is valid.
1659625098
The amount to transfer in the toCurrency
1560
The amount to transfer in the fromCurrency
32161.8