# Looking up coins, prices and payment options: the ticker and blockchain-currency endpoints

> If you want a coin selector on your own page, or need to convert dollars into a coin amount, these are the two endpoints you will use.

- Canonical URL: https://payramhost.com/en/docs/ticker-and-currency-api/
- Other languages: 中文: https://payramhost.com/docs/ticker-and-currency-api/
- Published: 2026-11-09 · Last updated: 2026-11-29
- Site: PayRamHost (independently operated; not affiliated with PayRam)

> PayRamHost hosted merchant onboarding has been paused since 29 November 2026. Where this guide mentions PayRamHost, it describes the situation before the pause; the PayRam usage it explains still applies.

> **The short version:** to show on your own page which coins a customer can pay with and roughly how much, there are two helper endpoints. `GET /api/v1/ticker` is **public**, needs no key and returns every coin PayRam supports with live US-dollar prices. `GET /api/v1/blockchain-currency/reference/{reference_id}` returns the payment options available for **one payment**, and whether the customer already has a fixed address in each family. If you use PayRam’s own payment page, you need neither.

## 1. When you need them

The simplest integration creates a payment and redirects the customer to PayRam’s payment page, which shows the coins and the amount by itself. You only need these endpoints when:

- you want a **coin and network selector** on your own page instead of redirecting to the payment page;
- you want to show “about how many USDC / ETH” before the customer orders;
- you need to **convert dollars into a coin amount**, for example to start a payout; see [starting payouts through the API](https://payramhost.com/en/docs/payouts-api/);
- you assign a **fixed deposit address** and first need to know whether the customer already has one; see [fixed deposit addresses](https://payramhost.com/en/docs/deposit-address-api/).

## 2. Coins and prices: /api/v1/ticker

The endpoint is `GET {BASE_URL}/api/v1/ticker`. It is public and needs no API key. `BASE_URL` is the address of your merchant dashboard.

```bash
curl --location '${BASE_URL}/api/v1/ticker'
```

It returns an array. Each entry is one coin on one network, with the blockchain information, the token details and a live US-dollar price:

```json
[
  {
    "blockchainCode": "BASE",
    "currencyCode": "USDC",
    "tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "standard": "ERC20",
    "walletPrecision": 6,
    "family": "ETH_Family",
    "price": "1.0"
  },
  ...
]
```

| Field | Meaning |
| --- | --- |
| `blockchainCode` / `currencyCode` | The network code and coin code the price applies to |
| `price` | The US-dollar price of one unit; stablecoins are `"1.0"` |
| `walletPrecision` | The number of decimal places the coin supports; round to this when computing amounts |
| `tokenAddress` | The token contract address; native coins use the all-zero address (`0x000…000`) |
| `standard` | The token standard, for example `native`, `ERC20` or `TRC20` |
| `family` | The blockchain family it belongs to, for example `ETH_Family` |

Note that this endpoint lists the coins PayRam **supports**, which does not mean your project has **enabled** all of them. What you can actually accept is determined by your merchant dashboard; see [which blockchains and coins PayRam supports](https://payramhost.com/en/docs/supported-networks-and-coins/).

## 3. Payment options for one payment

The endpoint is `GET {BASE_URL}/api/v1/blockchain-currency/reference/{reference_id}`, where `reference_id` is the value returned when you [created the payment](https://payramhost.com/en/docs/create-payment-api/). It returns the networks and coins that payment can use:

```json
[
  {
    "id": 7,
    "blockchainCode": "BASE",
    "network": "Base",
    "currencyCode": "USDC",
    "currency": "USDC",
    "customerAddress": "",
    "tokenAddress": "0x036cbd53842c5426634e7929541ec2318f3dcf7e",
    "standard": "ERC20",
    "walletPrecision": 6,
    "family": "ETH_Family",
    "recommended": false,
    "mostUsed": false,
    "blockchainID": 4,
    "currencyID": 2
  },
  ...
]
```

| Field | Meaning |
| --- | --- |
| `blockchainCode` / `network` | The blockchain code and network name, for example `BASE` / Base |
| `currencyCode` / `currency` | The coin code and name, for example USDC or ETH |
| `customerAddress` | The customer’s deposit address. Empty for a first-time customer, meaning no address has been assigned yet |
| `tokenAddress` / `standard` | The token contract address and standard |
| `walletPrecision` | The number of decimal places supported |
| `family` | The blockchain family |
| `recommended` / `mostUsed` | Suggested or frequently used options, which you can use to decide the display order |

If `customerAddress` is empty for a family, you can call the assign-deposit-address endpoint to give the customer a fixed address in that family; see [fixed deposit addresses](https://payramhost.com/en/docs/deposit-address-api/).

About headers: the official documentation lists `API-Key` in its header description, but the example command does not send one. We suggest sending the project API key when you call it from a server; if you get `401`, check against your dashboard and the official documentation.

## 4. Estimating the amount due

The formula:

```
coin amount = usdAmount / price, rounded down to walletPrecision decimal places
```

For example, at a price of `1659.57`, 50 dollars is about `0.030128…` ETH. Use a decimal library to avoid floating-point error:

```javascript
import Decimal from 'decimal.js';

const tickers = await (await fetch(`${BASE_URL}/api/v1/ticker`)).json();
const t = tickers.find((x) => x.blockchainCode === 'BASE' && x.currencyCode === 'USDC');

const estimate = new Decimal(usd)
  .div(t.price)
  .toDecimalPlaces(t.walletPrecision, Decimal.ROUND_DOWN)
  .toFixed();
```

> This is only an **estimate**. A payment is created with a US-dollar amount, and the amount the customer actually owes is whatever the payment page shows; prices of non-stablecoins move all the time. Do not write your own computed coin amount into an order as the final figure. For reconciliation use the [payment status](https://payramhost.com/en/docs/payment-statuses/) and the amounts actually received in the webhook.

## 5. Usage advice

These are our recommendations, not official requirements:

- **Fetch the price again before you use it.** The official advice for payouts is to fetch it right before creating one so the rate is current. The same goes for an estimate shown to customers: a short cache is fine, a long one is not.
- **Filter before showing.** Put only the coins and networks your project has really enabled into your selector, otherwise a customer may pick a combination that does not work.
- **Treat addresses by family.** Chains in the same family share an address format, so always show the network next to the address to keep customers from sending on the wrong chain.
- **Do not treat it as a market-data source.** It provides prices for calculation and is not an investment reference.

## 6. FAQ

### Do both endpoints need an API key?

The price endpoint `/api/v1/ticker` is public and needs none. The payment-options endpoint lists `API-Key` in its header description, so we suggest sending it from the server.

### What is the price of a stablecoin?

Stablecoins have a `price` of `"1.0"` in the response, that is, one US dollar.

### Where do the prices come from, and can they be unavailable?

The official documentation calls them live prices. For a non-stablecoin, when no live price is available the payout endpoint returns `503 EXCHANGE_RATE_UNAVAILABLE` and suggests retrying. A flow that depends on prices should therefore be ready to retry.

### Which coins can I use on PayRamHost?

Currently USDC, USDT and others on Ethereum, Base and Polygon; see [supported networks and coins](https://payramhost.com/en/docs/supported-networks-and-coins/).

## Related reading

- [Create payments via API](https://payramhost.com/en/docs/create-payment-api.md): Add crypto payments to your own site with the PayRam API: create a payment and get a payment link, send the customer to the payment page, confirm receipt with webhooks and the status endpoint, and reconcile by order number. With curl, Node.js and Python examples.
- [Fixed deposit addresses](https://payramhost.com/en/docs/deposit-address-api.md): How PayRam's assign-deposit-address endpoint works: give the same customer a fixed deposit address in a blockchain family, for prepaid balances and repeat top-ups. The request and response, what a family such as ETH_Family means, a Node.js example and integration advice.
- [Supported networks and coins](https://payramhost.com/en/docs/supported-networks-and-coins.md): Every network and coin PayRam supports: paying directly in crypto, paying from Solana via a bridge, and paying by card, with what the merchant receives in each case, plus what PayRamHost currently offers.
- [Payouts API](https://payramhost.com/en/docs/payouts-api.md): Start payouts (refunds, supplier payments) through the PayRam API: request format, converting dollars to coin amounts, limits and approval, the idempotency key you must send, error codes and the retry rule, with a Node.js example.

## Sources

This guide is based on the PayRam official documentation below, checked on 2026-11-09. PayRamHost is an independently operated service and is not affiliated with PayRam. If anything differs, the official documentation prevails.

- [Fetch Tickers](https://docs.payram.com/api-integration/payments-api/fetch-tickers)
- [Get Blockchain Currencies](https://docs.payram.com/api-integration/payments-api/get-blockchain-currencies)
- [Create Payouts](https://docs.payram.com/api-integration/payouts-apis/create-payouts)
