VALR API

Cryptocurrency / API Key Intermediate HTTPS
65 C
Measured Score 0 50 100 Speed 29/30 Consistency 8/20 Security 20/20 Browser access 0/15 Transparency 8/15 TESTED 2026-09-21

Overview

VALR is a South African cryptocurrency exchange that offers a comprehensive API for market data, account management, and trading. The API supports REST and WebSocket connections for real-time data. Public market data is accessible without authentication, while trading operations require an API key with HMAC signing.

Beginner Tip

VALR public endpoints like /v1/public/{currencyPair}/marketsummary give you live market data without needing an API key, which is a great way to explore the API before implementing authentication. When you do add auth, follow the HMAC signature guide in the VALR docs carefully.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://api.valr.com/v1/public/BTCZAR/marketsummary
Result
HTTP 200 · application/json · 316 bytes · compressed
Response time
35 ms (median of 3) · fastest 25 ms
Transport
TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Google Trust Services
Browser CORS
No Access-Control-Allow-Origin header — call it from a server, not the browser
Served by
n/a
Answered
8 of 8 weekly checks (100%, since 2026-07-31)
Recorded
2026-09-21

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
currencyPair string BTCZAR
askPrice string 1409448
bidPrice string 1408822
lastTradedPrice string 1408353
previousClosePrice string 1318277
baseVolume string 18.1279055
quoteVolume string 24904582.84821006
highPrice string 1409902
lowPrice string 1311386
created string (date) 2026-09-21T19:31:38.361Z
changeFromPrevious string 6.83
markPrice string 1408928

Captured Response

Captured from a real request to https://api.valr.com/v1/public/BTCZAR/marketsummary on 2026-09-21. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "currencyPair": "BTCZAR",
  "askPrice": "1409448",
  "bidPrice": "1408822",
  "lastTradedPrice": "1408353",
  "previousClosePrice": "1318277",
  "baseVolume": "18.1279055",
  "quoteVolume": "24904582.84821006",
  "highPrice": "1409902",
  "lowPrice": "1311386",
  "created": "2026-09-21T19:31:38.361Z",
  "changeFromPrevious": "6.83",
  "markPrice": "1408928"
}

Field Reference

currencyPair The trading pair for the market summary (e.g., BTCZAR)
askPrice The lowest price at which sellers are willing to sell
bidPrice The highest price at which buyers are willing to buy
lastTradedPrice Price of the most recent completed trade
highPrice Highest trade price in the last 24 hours

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://api.valr.com/v1/public/BTCZAR/marketsummary";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-09-21. Knowing the shape of an error before you hit it makes error handling much easier to write.

HTTP 404 Requesting a path that does not exist application/json

Returned an HTML error page rather than JSON — worth knowing if your client assumes every response can be parsed as JSON.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

403 Forbidden on private endpoints Missing API key or incorrectly computed HMAC signature
✓ Refer to the VALR authentication docs to correctly compute the signature using your API key, secret, timestamp, verb, path, and body
Currency pair not found Using a lowercase or incorrectly formatted currency pair
✓ Currency pairs on VALR must be uppercase and concatenated (e.g., BTCZAR, not BTC-ZAR or btczar)
Timestamp out of range The timestamp in your signed request is too far from the server time
✓ Ensure your system clock is synced and generate a fresh timestamp for each request; do not reuse timestamps

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 29/30
Consistency 8/20
Security 20/20
Browser access 0/15
Transparency 8/15
Endpoint Response Time 35ms

Fully tested on Sep 21, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Cryptocurrency
Difficulty Intermediate
Endpoint last called: 2026-09-21

Similar APIs

View All →