IP-Bound API Keys: Connecting QUOTC to Your Server
An API key identifies a connection to a service. An IP restriction adds another condition:...
Ideas and practical guides for working with QUOTC data.
An API key identifies a connection to a service. An IP restriction adds another condition:...
A quotation API can deliver a compact record containing several price values. To display t...
Connecting a data source involves more than receiving the first successful response. Your...
Your platform does not have to stop when the trading week ends. Users may still want to ex...
Get started
Create an account and get test access to explore the quality of our quotes and the simplicity of the API.
{
"symbol": "EURUSD",
"value": 1.11609,
"open": 1.11608,
"high": 1.11609,
"low": 1.11608,
"volume": 2,
"ts": 1793091620000
}
{
"type": "auth",
"token": "qtc_YOUR_TEST_KEY"
}
const WebSocket = require('ws');
const ws = new WebSocket('wss://wss.quotc.net');
ws.on('open', () => ws.send(JSON.stringify({
type: 'auth', token: process.env.QUOTC_API_KEY,
})));
ws.on('message', (raw) => {
const tick = JSON.parse(raw);
console.log(tick.symbol, tick.value);
});
import asyncio, json, os, websockets
async def main():
async with websockets.connect("wss://wss.quotc.net") as ws:
await ws.send(json.dumps({
"type": "auth", "token": os.environ["QUOTC_API_KEY"]}))
async for raw in ws:
tick = json.loads(raw)
print(tick["symbol"], tick["value"])
asyncio.run(main())
This is a connection demonstration with static values. For up-to-date integration instructions, see the API documentation.
The QUOTC blog covers working with OTC currency quotes, preparing your integration and managing access to the data feed. Explore articles that help your team connect currency data to its own charts, platforms and applications.
Start with a free 14-day test key for 10 pairs, bound to your server IP. Production access covers 58 currency pairs, with activation and renewals handled through support. OTC quotes are independent of spot forex prices.
See Product for pair coverage and pricing, and API documentation for connection instructions and code examples.