ratios

Latest ratio point for a pair — the most-recent shared-date ratio (Pro+)

Changed on

Return the single most-recent shared-date ratio point for a pair.

Returns 200 with point: null when no shared date exists (e.g. before either leg is backfilled) — never 404 on empty (mirrors /v1/bars/latest).

get/v1/ratios/latest

Request

  • Base URL
    https://api.goldprice.dev
  • URL
    https://api.goldprice.dev/v1/ratios/latest
  • Auth
    • HTTP bearer
    • or API key in header X-API-Key

Query parameters

pairstring required

Pair slug: gold-silver or gld-xau. Platinum and palladium pairs are accepted but not available yet (point: null).

Response

Successful Response

pairstring required
numeratorstring required
denominatorstring required
intervalstring

Changes

    • warning

      removed the optional property from the response with the status

    • info

      the endpoint scheme security ApiKeyAuth was added to the API

    • info

      the endpoint scheme security BearerAuth was added to the API

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status