Skip to main content
GET
/
spots
cURL
curl --request GET \
  --url https://api.grainfinance.co/v1/spots \
  --header 'Authorization: Basic <encoded-value>'
{
  "spots": [
    {
      "id": "8173b9a7-ee61-413e-b9e3-7c04b2a067c5",
      "organizationId": "8173b9a7-ee61-413e-b9e3-7c04b2a067c5",
      "fromCurrency": "MXN",
      "toCurrency": "USD",
      "toCurrencyAmount": 1560,
      "fromCurrencyAmount": 32161.8,
      "quote": 20.6165,
      "acceptedAtTs": 1659625088,
      "issuedAt": "2023-01-18",
      "completedAt": "2023-02-23"
    }
  ],
  "pagination": {
    "page": 2,
    "perPage": 50.5,
    "totalResults": 123
  }
}

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

page
number<double>

page number indicating which set of items to return The page indicating which set of items are returned

Required range: x >= 1
per_page
number<double>

number of items in a page

Required range: 1 <= x <= 100

Response

Spot List for Organization

spots
object[]
required

A list of spots matching the search criteria.

pagination
object
required

Pagination parameters of the returned results.