WebSocket endpoint
curl --request GET \
--url 'wss://api.hypedexer.com/ws?api_key='import requests
url = "wss://api.hypedexer.com/ws?api_key="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('wss://api.hypedexer.com/ws?api_key=', 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 => "wss://api.hypedexer.com/ws?api_key=",
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 := "wss://api.hypedexer.com/ws?api_key="
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("wss://api.hypedexer.com/ws?api_key=")
.asString();require 'uri'
require 'net/http'
url = URI("wss://api.hypedexer.com/ws?api_key=")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyWebSocket
WebSocket endpoint
Upgrade to WebSocket. After connection, send subscribe/unsubscribe JSON messages to start/stop receiving real-time data.
GET
/
ws
WebSocket endpoint
curl --request GET \
--url 'wss://api.hypedexer.com/ws?api_key='import requests
url = "wss://api.hypedexer.com/ws?api_key="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('wss://api.hypedexer.com/ws?api_key=', 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 => "wss://api.hypedexer.com/ws?api_key=",
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 := "wss://api.hypedexer.com/ws?api_key="
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("wss://api.hypedexer.com/ws?api_key=")
.asString();require 'uri'
require 'net/http'
url = URI("wss://api.hypedexer.com/ws?api_key=")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyAuthorizations
Your Hypedexer API key (wss://api.hypedexer.com/ws?api_key=<key>). Outside a browser, prefer the X-API-Key header.
Query Parameters
Your API key, when you cannot set a header (browsers). Otherwise send X-API-Key: <key>.
Response
WebSocket upgrade successful. Server sends {"type": "connected"} immediately.