Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Crystal Ball Markets Rates API
version: 1.0.0
summary: Free exchange rates, gold prices by country and live market quotes as JSON, with a link back from a site of your own.
description: 'Three JSON files with the figures behind the Crystal Ball Markets hub: our live market quotes, exchange rates against the US dollar and the gold price in local money by country. Free to use on a website or in an app, with a link back from a site of your own; no sign-up.
Show the link “Rates by Crystal Ball Markets” to https://crystalballmarkets.com/markets, visible, unchanged and without rel="nofollow", "ugc" or "sponsored", wherever you display the figures. Fetch the files straight from a web page (cross-origin requests are allowed; the browser names your site), or from a server, an app or a script naming the page that shows them with site and a secret of your own in X-Site-Key. That site must not link to us yet: each new use of the files brings a new link. We check the link every day; without it, calls are warned for 24 hours, then refused. Each address may make 60 requests a minute; the files change at most once a minute, so keep each response for at least 60 seconds.
The figures are indicative, for information only. They are not an offer to buy or sell and must not be presented as dealing prices.'
termsOfService: https://crystalballmarkets.com/markets/rates-api#terms
contact:
name: Crystal Ball Markets
url: https://crystalballmarkets.com/markets/rates-api
email: support@crystalballmarkets.com
x-logo:
url: https://crystalballmarkets.com/markets/brand/icon-512.png
servers:
- url: https://crystalballmarkets.com/markets/api/v1
tags:
- name: Rates
description: Market quotes, exchange rates and gold prices
paths:
/quotes.json:
get:
operationId: getQuotes
summary: Live market quotes
description: 'Our live quotes for every market on the hub: forex, metals, energy, agriculture, indices, shares and crypto. Bid, ask where we have it, change and range on the day, leverage and the link to each market’s page.'
tags:
- Rates
security: []
parameters:
- $ref: '#/components/parameters/Site'
- $ref: '#/components/parameters/SiteKey'
- $ref: '#/components/parameters/Key'
responses:
'200':
description: 'The file, refreshed every minute (Cache-Control: public, max-age=60).'
content:
application/json:
schema:
$ref: '#/components/schemas/QuotesFile'
'400':
description: site names no usable page (localhost, an address, free hosting), or X-Site-Key is missing or too short.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: No site named (servers, apps and scripts); the site already links to us or is registered to another key; or our check found no link, a nofollow link or a hidden one for more than 24 hours.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: More than 60 requests a minute from one address.
headers:
Retry-After:
description: Seconds to wait before trying again.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: No figures yet, or the API is paused for the rest of the month.
headers:
Retry-After:
description: Seconds to wait before trying again.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/rates.json:
get:
operationId: getRates
summary: Exchange rates against the US dollar
description: From our own forex quotes where we quote the pair, otherwise official fixed rates, the European Central Bank’s reference rates, and for other currencies the reference rate of the country’s own central bank, with the day it was published.
tags:
- Rates
security: []
parameters:
- $ref: '#/components/parameters/Site'
- $ref: '#/components/parameters/SiteKey'
- $ref: '#/components/parameters/Key'
responses:
'200':
description: 'The file, refreshed every minute (Cache-Control: public, max-age=60).'
content:
application/json:
schema:
$ref: '#/components/schemas/RatesFile'
'400':
description: site names no usable page (localhost, an address, free hosting), or X-Site-Key is missing or too short.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: No site named (servers, apps and scripts); the site already links to us or is registered to another key; or our check found no link, a nofollow link or a hidden one for more than 24 hours.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: More than 60 requests a minute from one address.
headers:
Retry-After:
description: Seconds to wait before trying again.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: No figures yet, or the API is paused for the rest of the month.
headers:
Retry-After:
description: Seconds wait before trying again.
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
Error:
type: object
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
QuotesFile:
type: object
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
RatesFile:
type: object
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
parameters:
SiteKey:
name: SiteKey
in: query
required: false
schema:
type: string
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
Site:
name: Site
in: query
required: false
schema:
type: string
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
Key:
name: Key
in: query
required: false
schema:
type: string
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
externalDocs:
description: Documentation, terms of use and live examples
url: https://crystalballmarkets.com/markets/rates-api