Skip to main content
GET
/
prices
{
  "success": true,
  "data.BTC": {},
  "data.ETH": {},
  "data.LTC": {},
  "data.SOL": {}
}
Get current cryptocurrency prices in various fiat currencies.
success
boolean
Indicates if the request was successful
data.BTC
object
Bitcoin prices in different currencies
data.ETH
object
Ethereum prices in different currencies
data.LTC
object
Litecoin prices in different currencies
data.SOL
object
Solana prices in different currencies

Example Request

curl -X GET https://api.transaction.gg/prices

Example Response

{
  "success": true,
  "data": {
    "BTC": {
      "USD": 45000.00,
      "EUR": 40000.00
    },
    "ETH": {
      "USD": 3000.00,
      "EUR": 2700.00
    },
    "LTC": {
      "USD": 100.00,
      "EUR": 90.00
    },
    "SOL": {
      "USD": 50.00,
      "EUR": 45.00
    }
  }
}

Usage Example

// Get current Bitcoin price in USD
async function getBitcoinPrice() {
  const response = await fetch('https://api.transaction.gg/prices');
  const data = await response.json();
  
  if (data.success) {
    return data.data.BTC.USD;
  }
  
  throw new Error('Failed to fetch prices');
}