Widget Streaming Prices
curl --request GET \
--url https://api.cryptechtoday.com/api/v1/widget/pricesimport requests
url = "https://api.cryptechtoday.com/api/v1/widget/prices"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.cryptechtoday.com/api/v1/widget/prices', 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://api.cryptechtoday.com/api/v1/widget/prices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.cryptechtoday.com/api/v1/widget/prices"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cryptechtoday.com/api/v1/widget/prices")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cryptechtoday.com/api/v1/widget/prices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{}
]
}Embeddable Widgets API
Widget Streaming Prices
Ultra-lightweight edge-cached ticker prices designed for high-concurrency embeddable widgets
GET
/
api
/
v1
/
widget
/
prices
Widget Streaming Prices
curl --request GET \
--url https://api.cryptechtoday.com/api/v1/widget/pricesimport requests
url = "https://api.cryptechtoday.com/api/v1/widget/prices"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.cryptechtoday.com/api/v1/widget/prices', 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://api.cryptechtoday.com/api/v1/widget/prices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.cryptechtoday.com/api/v1/widget/prices"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cryptechtoday.com/api/v1/widget/prices")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cryptechtoday.com/api/v1/widget/prices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{}
]
}Widget Streaming Prices
High-concurrency, edge-cached pricing feed optimized for website embeds, price tickers, and media ribbons. Engineered with sub-5ms TTFB (Time to First Byte) and sub-8KB payload footprints to prevent upstream performance degradation on publisher sites.Query Parameters
string
Comma-separated list of symbols (e.g.
BTC,ETH,SOL). Default: BTC,ETH,SOL,BNB,XRP.Response Fields
array
List of minimalist ticker objects:
s: Symbol (e.g.BTC).p: Current spot price (USD).c: 24h percentage change.v: 24h trading volume (USD).
Code Examples
curl -X GET "https://api.cryptechtoday.com/api/v1/widget/prices?symbols=BTC,ETH,SOL"
fetch('https://api.cryptechtoday.com/api/v1/widget/prices?symbols=BTC,ETH,SOL')
.then(res => res.json())
.then(tickers => {
tickers.data.forEach(t => {
console.log(`${t.s}: $${t.p} (${t.c}%)`);
});
});
Was this page helpful?