Get Latest Quote

GET /instruments/{instrument}/latest-quote

Get the latest quote for an instrument. You can use this information to estimate the next price to buy (via ask) or sell (via bid) assets.

Path parameters

  • instrument string(isin) Required

    An instrument's ISIN. This is the instrument you query the latest quote for.

Responses

  • 200 application/json

    Success

    Hide response attributes Show response attributes object
    • instrument string Required

      The ISIN of the instrument being quoted.

    • ask object Required
      Hide ask attributes Show ask attributes object
    • bid object Required
      Hide bid attributes Show bid attributes object
    • updatedAt string(date-time) Required
  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
  • 403 application/json

    Invalid API Key

    Hide response attributes Show response attributes object
  • 429 application/json

    Too Many Requests

    Hide headers attribute Show headers attribute
    • Retry-After string(number)

      Number of seconds before attempting to send another request. See RFC 7231 for more information.

    Hide response attributes Show response attributes object
GET /instruments/{instrument}/latest-quote
curl \
 -X GET https://api.melon.markets/markets/beta/instruments/IE000CNSFAR2/latest-quote \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "instrument": "IE000CNSFAR2",
  "updatedAt": "2024-01-05T17:02:16.709000000Z",
  "ask": {
    "size": "4800",
    "price": "10.7000"
  },
  "bid": {
    "size": "4800",
    "price": "10.6620"
  }
}
Response examples (401)
{
  "error": true,
  "reason": "Unauthorized"
}
Response examples (403)
{
  "error": true,
  "reason": "Forbidden"
}
Response examples (429)
# Headers
Retry-After: 60

# Payload
{
  "error": true,
  "reason": "Too Many Requests"
}