Volume by market
curl --request GET \
--url https://data.rekt.trading/v0/marketsimport requests
url = "https://data.rekt.trading/v0/markets"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://data.rekt.trading/v0/markets', 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://data.rekt.trading/v0/markets",
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://data.rekt.trading/v0/markets"
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://data.rekt.trading/v0/markets")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.rekt.trading/v0/markets")
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{
"asOf": {
"generatedAt": "2023-11-07T05:31:56Z",
"archiveTailSlot": 123,
"archiveTailAt": "2023-11-07T05:31:56Z",
"stale": true,
"staleReason": "<string>",
"entryFeeBasis": "observed"
},
"window": {
"trades": 123,
"fromSlot": 123,
"toSlot": 123,
"fromAt": "2023-11-07T05:31:56Z",
"toAt": "2023-11-07T05:31:56Z"
},
"totals": {
"trades": 123,
"stake": "<string>",
"notional": "<string>",
"notionalUnknown": 123
},
"markets": [
{
"market": "<string>",
"address": "<string>",
"symbol": "<string>",
"priceKind": "<string>",
"trades": 123,
"stake": "<string>",
"notional": "<string>",
"notionalUnknown": 123
}
],
"question": "<string>",
"volumeNote": "<string>",
"priceKinds": {},
"commitMode": {
"byMarket": {}
}
}{
"error": "<string>",
"retryAfterSeconds": 123,
"routes": [
"<string>"
]
}{
"error": "<string>",
"retryAfterSeconds": 123,
"routes": [
"<string>"
]
}{
"error": "<string>",
"retryAfterSeconds": 123,
"routes": [
"<string>"
]
}Aggregates
Volume by market
Settlements, stake and notional of each market. All time. Poll no more than once every 10 seconds.
GET
/
v0
/
markets
Volume by market
curl --request GET \
--url https://data.rekt.trading/v0/marketsimport requests
url = "https://data.rekt.trading/v0/markets"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://data.rekt.trading/v0/markets', 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://data.rekt.trading/v0/markets",
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://data.rekt.trading/v0/markets"
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://data.rekt.trading/v0/markets")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.rekt.trading/v0/markets")
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{
"asOf": {
"generatedAt": "2023-11-07T05:31:56Z",
"archiveTailSlot": 123,
"archiveTailAt": "2023-11-07T05:31:56Z",
"stale": true,
"staleReason": "<string>",
"entryFeeBasis": "observed"
},
"window": {
"trades": 123,
"fromSlot": 123,
"toSlot": 123,
"fromAt": "2023-11-07T05:31:56Z",
"toAt": "2023-11-07T05:31:56Z"
},
"totals": {
"trades": 123,
"stake": "<string>",
"notional": "<string>",
"notionalUnknown": 123
},
"markets": [
{
"market": "<string>",
"address": "<string>",
"symbol": "<string>",
"priceKind": "<string>",
"trades": 123,
"stake": "<string>",
"notional": "<string>",
"notionalUnknown": 123
}
],
"question": "<string>",
"volumeNote": "<string>",
"priceKinds": {},
"commitMode": {
"byMarket": {}
}
}{
"error": "<string>",
"retryAfterSeconds": 123,
"routes": [
"<string>"
]
}{
"error": "<string>",
"retryAfterSeconds": 123,
"routes": [
"<string>"
]
}{
"error": "<string>",
"retryAfterSeconds": 123,
"routes": [
"<string>"
]
}Response
Volume by market.
Volume by market, for all time.
