Convert ETH to a USD display value
curl --request GET \
--url https://build.vibechain.com/api/vibemarket2/support/pricing/eth-to-usd \
--header 'API-KEY: <api-key>'import requests
url = "https://build.vibechain.com/api/vibemarket2/support/pricing/eth-to-usd"
headers = {"API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'API-KEY': '<api-key>'}};
fetch('https://build.vibechain.com/api/vibemarket2/support/pricing/eth-to-usd', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://build.vibechain.com/api/vibemarket2/support/pricing/eth-to-usd",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://build.vibechain.com/api/vibemarket2/support/pricing/eth-to-usd"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://build.vibechain.com/api/vibemarket2/support/pricing/eth-to-usd")
.header("API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://build.vibechain.com/api/vibemarket2/support/pricing/eth-to-usd")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": 123,
"success": true,
"usd": 123
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Shared services
Convert ETH to a USD display value
Display-only conversion through shared pricing, not an execution quote. No eth parameter returns zero; use eth=1 for the reference price.
GET
/
support
/
pricing
/
eth-to-usd
Convert ETH to a USD display value
curl --request GET \
--url https://build.vibechain.com/api/vibemarket2/support/pricing/eth-to-usd \
--header 'API-KEY: <api-key>'import requests
url = "https://build.vibechain.com/api/vibemarket2/support/pricing/eth-to-usd"
headers = {"API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'API-KEY': '<api-key>'}};
fetch('https://build.vibechain.com/api/vibemarket2/support/pricing/eth-to-usd', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://build.vibechain.com/api/vibemarket2/support/pricing/eth-to-usd",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://build.vibechain.com/api/vibemarket2/support/pricing/eth-to-usd"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://build.vibechain.com/api/vibemarket2/support/pricing/eth-to-usd")
.header("API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://build.vibechain.com/api/vibemarket2/support/pricing/eth-to-usd")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": 123,
"success": true,
"usd": 123
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Registered Vibechain application key. Required in addition to wallet/session credentials. Obtain your own key via POST https://build.vibechain.com/apikey/create; see Authentication and consent. Missing/invalid keys: 401; exhausted quota: 429; lookup outage: 503.