curl --request GET \
--url https://api.mainnet.aptoslabs.com/decibel/api/v1/spot/asset_contexts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mainnet.aptoslabs.com/decibel/api/v1/spot/asset_contexts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mainnet.aptoslabs.com/decibel/api/v1/spot/asset_contexts', 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://api.mainnet.aptoslabs.com/decibel/api/v1/spot/asset_contexts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.mainnet.aptoslabs.com/decibel/api/v1/spot/asset_contexts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.mainnet.aptoslabs.com/decibel/api/v1/spot/asset_contexts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mainnet.aptoslabs.com/decibel/api/v1/spot/asset_contexts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"base_asset_addr": "<string>",
"base_decimals": 1,
"market_addr": "0xmarket123...",
"name": "<string>",
"quote_asset_addr": "<string>",
"quote_decimals": 1,
"ticker_id": "<string>",
"timestamp_unix_ms": 123,
"volume_24h_base": 123,
"volume_24h_quote": 123,
"high_24h": 123,
"last_price": 123,
"low_24h": 123,
"mid": 123,
"prev_day_price": 123
}
]Get spot asset contexts
24h stats (volume, high/low, last price, prev-day price) plus the live
book mid for every registered spot market. The spot counterpart of
/asset_contexts; perp-only concepts (funding, open interest, mark and
oracle prices) are deliberately absent. 24h change = (last_price -
prev_day_price) / prev_day_price, derived client-side; prev_day_price
is null for markets that never traded before the 24h boundary.
curl --request GET \
--url https://api.mainnet.aptoslabs.com/decibel/api/v1/spot/asset_contexts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mainnet.aptoslabs.com/decibel/api/v1/spot/asset_contexts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mainnet.aptoslabs.com/decibel/api/v1/spot/asset_contexts', 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://api.mainnet.aptoslabs.com/decibel/api/v1/spot/asset_contexts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.mainnet.aptoslabs.com/decibel/api/v1/spot/asset_contexts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.mainnet.aptoslabs.com/decibel/api/v1/spot/asset_contexts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mainnet.aptoslabs.com/decibel/api/v1/spot/asset_contexts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"base_asset_addr": "<string>",
"base_decimals": 1,
"market_addr": "0xmarket123...",
"name": "<string>",
"quote_asset_addr": "<string>",
"quote_decimals": 1,
"ticker_id": "<string>",
"timestamp_unix_ms": 123,
"volume_24h_base": 123,
"volume_24h_quote": 123,
"high_24h": 123,
"last_price": 123,
"low_24h": 123,
"mid": 123,
"prev_day_price": 123
}
]Authorizations
Bearer token from Geomi. See Authentication for setup instructions.
Response
Spot asset contexts
Fungible-asset metadata addresses ("contract addresses").
x >= 0"0xmarket123..."
Canonical market name, e.g. "APT/USDC".
x >= 0Display ticker string derived from the spot market name. This is
response metadata; use market_addr for requests.
Server timestamp the snapshot was computed at (unix ms).
Base units traded in the last 24h, human-readable.
Quote units traded in the last 24h, human-readable.
Most recent fill price in the last 24h; null if no trade in the window.
(best_bid + best_ask) / 2 from the live book; null unless both sides have resting liquidity.
Price of the last trade at or before now-24h (bounded 7d lookback); null for markets that never traded before the boundary. 24h change = (last_price - prev_day_price) / prev_day_price, client-derived.

