Public request with cURL
Replaceyour-exchange with your exchanger’s domain.
state: 0 and result.status: "ok". The result.site_name and result.time fields contain the exchanger name and its current time.
Signed request
Get an API key and set these variables in the environment where you run the example.
The examples send
GET /api/v3/private/ping over HTTPS and generate a new nonce for each run. The signature includes the hash of an empty body, an empty query string, and an empty idempotency key. The examples below print 200 ok on success.
PHP
Save the file asping.php and run php ping.php on PHP 8.5 with the cURL extension.
ping.php
Python
Save the file asping.py and run python3 ping.py. The example uses the Python 3 standard library.
ping.py
JavaScript
Copyrequest.mjs from the quickstart and run node request.mjs on Node.js 24. The script prints HTTP status 200 and the original JSON with result.status: "ok".
TypeScript
Save the file asping.mts and run node ping.mts on Node.js 24. The example uses Node.js built-in node:crypto and fetch.
ping.mts
error.code.