Read bounded market activity and participants
curl --request GET \
--url https://build.vibechain.com/api/retard/v1227/markets/{marketId}/activity \
--header 'API-KEY: <api-key>'import requests
url = "https://build.vibechain.com/api/retard/v1227/markets/{marketId}/activity"
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/retard/v1227/markets/{marketId}/activity', 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/retard/v1227/markets/{marketId}/activity",
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/retard/v1227/markets/{marketId}/activity"
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/retard/v1227/markets/{marketId}/activity")
.header("API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://build.vibechain.com/api/retard/v1227/markets/{marketId}/activity")
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{
"marketId": 1,
"coin": "0x41B13C429675015d32377305D03222CbddB20cA0",
"activities": [
{
"kind": "BUY",
"account": "0x41B13C429675015d32377305D03222CbddB20cA0",
"nativeAmount": "<string>",
"coinAmount": "<string>",
"retardAmount": "<string>",
"rewardShares": "<string>",
"supportCredit": "<string>",
"principalReturned": "<string>",
"principalSlashed": "<string>",
"tipsPaid": "<string>",
"transactionHash": "<string>",
"blockNumber": "<string>",
"logIndex": 1,
"executedAt": "2023-11-07T05:31:56Z"
}
],
"activitiesTruncated": true,
"holders": [
{
"wallet": "0x41B13C429675015d32377305D03222CbddB20cA0",
"balance": "<string>"
}
],
"holdersTruncated": true,
"stakers": [
{
"wallet": "0x41B13C429675015d32377305D03222CbddB20cA0",
"principal": "<string>",
"rewardShares": "<string>",
"supportCredit": "<string>",
"activePositions": 1
}
],
"stakersTruncated": true,
"projectedBlock": 1,
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "API_KEY_REQUIRED_OR_RATE_LIMITED",
"docs": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Markets
Read bounded market activity and participants
Returns recent trades, stakes, exits, and claims plus bounded holder and
active-staker views. Inspect every *Truncated flag before treating a
returned array as complete.
GET
/
markets
/
{marketId}
/
activity
Read bounded market activity and participants
curl --request GET \
--url https://build.vibechain.com/api/retard/v1227/markets/{marketId}/activity \
--header 'API-KEY: <api-key>'import requests
url = "https://build.vibechain.com/api/retard/v1227/markets/{marketId}/activity"
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/retard/v1227/markets/{marketId}/activity', 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/retard/v1227/markets/{marketId}/activity",
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/retard/v1227/markets/{marketId}/activity"
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/retard/v1227/markets/{marketId}/activity")
.header("API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://build.vibechain.com/api/retard/v1227/markets/{marketId}/activity")
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{
"marketId": 1,
"coin": "0x41B13C429675015d32377305D03222CbddB20cA0",
"activities": [
{
"kind": "BUY",
"account": "0x41B13C429675015d32377305D03222CbddB20cA0",
"nativeAmount": "<string>",
"coinAmount": "<string>",
"retardAmount": "<string>",
"rewardShares": "<string>",
"supportCredit": "<string>",
"principalReturned": "<string>",
"principalSlashed": "<string>",
"tipsPaid": "<string>",
"transactionHash": "<string>",
"blockNumber": "<string>",
"logIndex": 1,
"executedAt": "2023-11-07T05:31:56Z"
}
],
"activitiesTruncated": true,
"holders": [
{
"wallet": "0x41B13C429675015d32377305D03222CbddB20cA0",
"balance": "<string>"
}
],
"holdersTruncated": true,
"stakers": [
{
"wallet": "0x41B13C429675015d32377305D03222CbddB20cA0",
"principal": "<string>",
"rewardShares": "<string>",
"supportCredit": "<string>",
"activePositions": 1
}
],
"stakersTruncated": true,
"projectedBlock": 1,
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "API_KEY_REQUIRED_OR_RATE_LIMITED",
"docs": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Caller-specific VibeChain API key created through /apikey/create.
Path Parameters
Public numeric market ID
Required range:
x >= 0Response
Block-pinned market activity tape
Required range:
x >= 0Pattern:
^0x[0-9a-fA-F]{40}$Example:
"0x41B13C429675015d32377305D03222CbddB20cA0"
Maximum array length:
50Show child attributes
Show child attributes
Maximum array length:
100Show child attributes
Show child attributes
Maximum array length:
100Show child attributes
Show child attributes
Required range:
x >= 0