Subscribe to runtime updates
curl --request GET \
--url https://build.vibechain.com/api/vibemarket2/runtime/{version}/streamimport requests
url = "https://build.vibechain.com/api/vibemarket2/runtime/{version}/stream"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://build.vibechain.com/api/vibemarket2/runtime/{version}/stream', 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/runtime/{version}/stream",
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://build.vibechain.com/api/vibemarket2/runtime/{version}/stream"
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://build.vibechain.com/api/vibemarket2/runtime/{version}/stream")
.asString();require 'uri'
require 'net/http'
url = URI("https://build.vibechain.com/api/vibemarket2/runtime/{version}/stream")
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"<string>"{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Live updates
Subscribe to runtime updates
SSE with hello, reset, invalidate and trade events plus presence/heartbeat updates. Retain ids; Last-Event-ID takes precedence over after. On reset, refetch durable GET endpoints. Updates are not finality or transaction receipts. Up to 16 topics; wallet topic addresses must be lowercase. Back off on 503 or disconnect.
GET
/
runtime
/
{version}
/
stream
Subscribe to runtime updates
curl --request GET \
--url https://build.vibechain.com/api/vibemarket2/runtime/{version}/streamimport requests
url = "https://build.vibechain.com/api/vibemarket2/runtime/{version}/stream"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://build.vibechain.com/api/vibemarket2/runtime/{version}/stream', 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/runtime/{version}/stream",
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://build.vibechain.com/api/vibemarket2/runtime/{version}/stream"
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://build.vibechain.com/api/vibemarket2/runtime/{version}/stream")
.asString();require 'uri'
require 'net/http'
url = URI("https://build.vibechain.com/api/vibemarket2/runtime/{version}/stream")
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"<string>"{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Headers
Pattern:
^[0-9]+$Path Parameters
Runtime id from /runtime/versions or catalog/sources; never infer the newest revision from its name.
Query Parameters
Comma-separated catalog, pot, market:{positiveDropId}, wallet:{lowercaseAddress}; maximum 16.
Required range:
x >= 0Presence scope.
Pattern:
^(shelf|[1-9][0-9]{0,77})$Response
Long-lived server-sent event stream.
The response is of type string.