User history feed
curl --request POST \
--url https://analytics.snek.fun/v1/user-history-feed/initial/stateimport requests
url = "https://analytics.snek.fun/v1/user-history-feed/initial/state"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://analytics.snek.fun/v1/user-history-feed/initial/state', 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://analytics.snek.fun/v1/user-history-feed/initial/state",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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://analytics.snek.fun/v1/user-history-feed/initial/state"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://analytics.snek.fun/v1/user-history-feed/initial/state")
.asString();require 'uri'
require 'net/http'
url = URI("https://analytics.snek.fun/v1/user-history-feed/initial/state")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyHTTP
User history feed
Orders across wallets, open orders, and lookup by beacon
POST
/
v1
/
user-history-feed
/
initial
/
state
User history feed
curl --request POST \
--url https://analytics.snek.fun/v1/user-history-feed/initial/stateimport requests
url = "https://analytics.snek.fun/v1/user-history-feed/initial/state"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://analytics.snek.fun/v1/user-history-feed/initial/state', 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://analytics.snek.fun/v1/user-history-feed/initial/state",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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://analytics.snek.fun/v1/user-history-feed/initial/state"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://analytics.snek.fun/v1/user-history-feed/initial/state")
.asString();require 'uri'
require 'net/http'
url = URI("https://analytics.snek.fun/v1/user-history-feed/initial/state")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyEndpoints under
Plus paging query params.
user-history-feed return orders across one or more wallets (PKH list), optionally filtered by asset or “open only”.
Auth: Public
POST /v1/user-history-feed/initial/state
Initial ledger + mempool snapshot for the given PKHs.Query parameters
Paging:offset, limit (default limit 100, max 100).
Body
JSON array of at least one PKH:["41fa17b2…", "e62df682…"]
Response
SameOrderInitialStateResponse shape as Orders feed: { "ledger": { "count", "items" }, "mempool": [] }.
POST /v1/user-history-feed/initial/state/by/asset
Same as above but restricted to a single asset (adds query).Query parameters
string
required
Asset id to filter.
Body
Non-empty PKH array.POST /v1/user-history-feed/initial/state/open
Only non-completed orders for the wallets. Same body and paging asinitial/state.
GET /v1/user-history-feed/order/trades
Returns a single trade record by beacon (currency symbol).Query parameters
string
required
Beacon / currency symbol identifier for the order.
Response
TradeOrder — discriminated union: CFMM or Spot with fields such as orderType, orderStatus, amounts, assets, prices, fill percent, etc.
curl -sS "https://analytics.snek.fun/v1/user-history-feed/order/trades?beacon=…"
WebSocket
Subscribe to UserHistoryByAddress or UserHistoryByAddressAndAsset with the appropriatedata payload. See WebSocket.Was this page helpful?