🔄Fetch Tickers
In this section, you’ll learn how to fetch all supported tickers using the PayRam API, allowing you to display real-time token and blockchain options available for user payments.
URL Details
BASE_URL
Your PayRam Site URL — find it under Settings → Site URL in your dashboard. Include the port if you installed on one.
https://pay.example.com
API Endpoint
Endpoint to fetch supported currencies and their live USD prices.
/api/v1/ticker
Headers
curl request
Before running the command, replace the placeholders with your actual details:
${BASE_URL} → Your PayRam server URL
<your_api_key> → Your PayRam API key
Replace the request body fields with real customer data
curl --location '${BASE_URL}/api/v1/ticker' \
--data ''curl response
You’ll receive a list of supported blockchain assets, each containing:
Blockchain info – e.g., ETH, BTC, TRX, BASE
Token details – contract address, precision, and standard
Live pricing – current USD value for each token
Last updated