prices

[DEPRECATED — use /v1/bars] Aggregated close history for a symbol — interval ∈ {1d, 1h}.

Changed on

Dispatch to the per-interval handler. The handler is the Module Interface; per-interval helpers are Deep Modules hiding the interval-specific policy + storage shape.

DEPRECATED in favour of /v1/bars (C4). This endpoint retains the legacy close-only series[] wire shape for backward compatibility. Deprecation + Sunset + Link headers are injected on every 200 response (and on 403 plan_gated, where the caller may need to upgrade before migrating). The sunset DATE is founder-controlled (see config prices_history_sunset_date) — NOT hardcoded here.

get/v1/prices/history

Request

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

Query parameters

symbolstring required
fromstring required
tostring required
intervalstring
limitinteger

Response

Success. See Deprecation + Sunset + Link headers.

symbolstring required
intervalstring required

One of "1d", "1h".

fromstring required

ISO-8601 date or timestamp.

tostring required

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 media type application/json for the response with the status

    • info

      added the media type application/json for the 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