cURL
curl --request GET \
--url 'https://api.glassmarkets.io/v2/organizations/targets/compliance/?interval=1h&time_start=2026-10-01T00%3A00%3A00Z&time_end=2026-10-02T00%3A00%3A00Z' \
--header 'Authorization: ApiKey <key>'import requests
url = "https://api.glassmarkets.io/v2/organizations/targets/compliance/?interval=1h&time_start=2026-10-01T00%3A00%3A00Z&time_end=2026-10-02T00%3A00%3A00Z"
headers = {"Authorization": "ApiKey <key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'ApiKey <key>'}};
fetch('https://api.glassmarkets.io/v2/organizations/targets/compliance/?interval=1h&time_start=2026-10-01T00%3A00%3A00Z&time_end=2026-10-02T00%3A00%3A00Z', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.glassmarkets.io/v2/organizations/targets/compliance/?interval=1h&time_start=2026-10-01T00%3A00%3A00Z&time_end=2026-10-02T00%3A00%3A00Z"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "ApiKey <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://api.glassmarkets.io/v2/organizations/targets/compliance/?interval=1h&time_start=2026-10-01T00%3A00%3A00Z&time_end=2026-10-02T00%3A00%3A00Z")
.header("Authorization", "ApiKey <key>")
.asString();{
"time_start": "2023-11-07T05:31:56Z",
"time_end": "2023-11-07T05:31:56Z",
"interval": "1m",
"targets": [
{
"id": 123,
"type": "gb",
"organization": {
"slug": "<string>",
"name": "<string>"
},
"asset": "<string>",
"exchange": "<string>",
"pair": "<string>",
"metric": "<string>",
"threshold": 123,
"effective_threshold": 123,
"direction": "<string>",
"active": true,
"scaling": {
"mode": "legacy",
"enabled": true,
"source": "asset_twap_24h",
"reference_price": 123,
"current_price": 123,
"factor": 123
},
"compliance": {
"observed": 1,
"passing": 1,
"percentage": 123
},
"latest": {
"value": 123,
"timestamp": "2023-11-07T05:31:56Z",
"source": "trusted",
"passed": true
},
"buckets": [
{
"timestamp": "2023-11-07T05:31:56Z",
"value": 123,
"source": "trusted",
"passed": true
}
],
"market_hours": "market-hours"
}
]
}Targets
Get target compliance
Evaluates the mm targets you can see per bucket. passed says whether the bucket value met the target’s effective threshold; trusted values are used where they exist, reported values otherwise. Intervals below a day need a range of one day or less. passed is null for volume targets below a daily interval, and uptime targets only have daily values.
GET
/
v2
/
organizations
/
targets
/
compliance
/
cURL
curl --request GET \
--url 'https://api.glassmarkets.io/v2/organizations/targets/compliance/?interval=1h&time_start=2026-10-01T00%3A00%3A00Z&time_end=2026-10-02T00%3A00%3A00Z' \
--header 'Authorization: ApiKey <key>'import requests
url = "https://api.glassmarkets.io/v2/organizations/targets/compliance/?interval=1h&time_start=2026-10-01T00%3A00%3A00Z&time_end=2026-10-02T00%3A00%3A00Z"
headers = {"Authorization": "ApiKey <key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'ApiKey <key>'}};
fetch('https://api.glassmarkets.io/v2/organizations/targets/compliance/?interval=1h&time_start=2026-10-01T00%3A00%3A00Z&time_end=2026-10-02T00%3A00%3A00Z', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.glassmarkets.io/v2/organizations/targets/compliance/?interval=1h&time_start=2026-10-01T00%3A00%3A00Z&time_end=2026-10-02T00%3A00%3A00Z"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "ApiKey <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://api.glassmarkets.io/v2/organizations/targets/compliance/?interval=1h&time_start=2026-10-01T00%3A00%3A00Z&time_end=2026-10-02T00%3A00%3A00Z")
.header("Authorization", "ApiKey <key>")
.asString();{
"time_start": "2023-11-07T05:31:56Z",
"time_end": "2023-11-07T05:31:56Z",
"interval": "1m",
"targets": [
{
"id": 123,
"type": "gb",
"organization": {
"slug": "<string>",
"name": "<string>"
},
"asset": "<string>",
"exchange": "<string>",
"pair": "<string>",
"metric": "<string>",
"threshold": 123,
"effective_threshold": 123,
"direction": "<string>",
"active": true,
"scaling": {
"mode": "legacy",
"enabled": true,
"source": "asset_twap_24h",
"reference_price": 123,
"current_price": 123,
"factor": 123
},
"compliance": {
"observed": 1,
"passing": 1,
"percentage": 123
},
"latest": {
"value": 123,
"timestamp": "2023-11-07T05:31:56Z",
"source": "trusted",
"passed": true
},
"buckets": [
{
"timestamp": "2023-11-07T05:31:56Z",
"value": 123,
"source": "trusted",
"passed": true
}
],
"market_hours": "market-hours"
}
]
}Authorizations
metricsApiKeyAuthtokenAuth

