VALR API

Cryptocurrency / API Key Intermediate HTTPS
78 B
Measured Score 0 50 100 Speed 30/30 Consistency 20/20 Security 20/20 Browser access 0/15 Transparency 8/15 TESTED 2026-08-10

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
27 ms (median of 3) · fastest 26 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
Recorded
2026-08-10

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 1046808
bidPrice string 1046807
lastTradedPrice string 1046809
previousClosePrice string 1067603
baseVolume string 5.54900548
quoteVolume string 5882636.99121495
highPrice string 1070590
lowPrice string 1042677
created string (date) 2026-08-10T19:49:31.598Z
changeFromPrevious string -1.94
markPrice string 1046808

Captured Response

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

JSON Response · Captured
{
  "currencyPair": "BTCZAR",
  "askPrice": "1046808",
  "bidPrice": "1046807",
  "lastTradedPrice": "1046809",
  "previousClosePrice": "1067603",
  "baseVolume": "5.54900548",
  "quoteVolume": "5882636.99121495",
  "highPrice": "1070590",
  "lowPrice": "1042677",
  "created": "2026-08-10T19:49:31.598Z",
  "changeFromPrevious": "-1.94",
  "markPrice": "1046808"
}

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-08-10. 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 30/30
Consistency 20/20
Security 20/20
Browser access 0/15
Transparency 8/15
Endpoint Response Time 27ms

Fully tested on Aug 10, 2026

Technical Specifications

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

Similar APIs

View All →