Delete reported depth
curl --request DELETE \
--url https://api.glassmarkets.io/v2/organizations/reported-metrics/depth/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.glassmarkets.io/v2/organizations/reported-metrics/depth/"
headers = {"Authorization": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: '<api-key>'}};
fetch('https://api.glassmarkets.io/v2/organizations/reported-metrics/depth/', 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/reported-metrics/depth/"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.glassmarkets.io/v2/organizations/reported-metrics/depth/")
.header("Authorization", "<api-key>")
.asString();{
"message": "Metrics deleted successfully"
}
Reported metrics
Delete reported depth
Deletes depth your organization reported at the bps levels in the range. Needs the market-maker role on every asset in assets. time_start must be within the last two days.
DELETE
/
v2
/
organizations
/
reported-metrics
/
depth
/
Delete reported depth
curl --request DELETE \
--url https://api.glassmarkets.io/v2/organizations/reported-metrics/depth/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.glassmarkets.io/v2/organizations/reported-metrics/depth/"
headers = {"Authorization": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: '<api-key>'}};
fetch('https://api.glassmarkets.io/v2/organizations/reported-metrics/depth/', 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/reported-metrics/depth/"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.glassmarkets.io/v2/organizations/reported-metrics/depth/")
.header("Authorization", "<api-key>")
.asString();{
"message": "Metrics deleted successfully"
}

