Tokens
Get Token Prices
Returns real-time prices for major crypto tokens. This endpoint is publicly accessible without authentication.
GET
/
tokens
/
prices
Get Token Prices
curl --request GET \
--url https://api.slash.com/tokens/pricesconst options = {method: 'GET'};
fetch('https://api.slash.com/tokens/prices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.slash.com/tokens/prices"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.slash.com/tokens/prices"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"items": [
{
"symbol": "<string>",
"price": {
"currency": "usd",
"value": "<string>",
"lastUpdatedAt": "2023-11-07T05:31:56Z"
}
}
]
}{
"message": "<string>",
"name": "<string>",
"identifier": "<string>",
"rawStatus": 123,
"meta": {}
}{
"message": "<string>",
"name": "<string>",
"identifier": "<string>",
"rawStatus": 123,
"meta": {}
}{
"message": "<string>",
"name": "<string>",
"identifier": "<string>",
"rawStatus": 123,
"meta": {}
}{
"message": "<string>",
"name": "<string>",
"identifier": "<string>",
"rawStatus": 123,
"meta": {}
}Response
OK
Hide child attributes
Hide child attributes
Token symbol (e.g., BTC, ETH, SOL)
⌘I
Get Token Prices
curl --request GET \
--url https://api.slash.com/tokens/pricesconst options = {method: 'GET'};
fetch('https://api.slash.com/tokens/prices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.slash.com/tokens/prices"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.slash.com/tokens/prices"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"items": [
{
"symbol": "<string>",
"price": {
"currency": "usd",
"value": "<string>",
"lastUpdatedAt": "2023-11-07T05:31:56Z"
}
}
]
}{
"message": "<string>",
"name": "<string>",
"identifier": "<string>",
"rawStatus": 123,
"meta": {}
}{
"message": "<string>",
"name": "<string>",
"identifier": "<string>",
"rawStatus": 123,
"meta": {}
}{
"message": "<string>",
"name": "<string>",
"identifier": "<string>",
"rawStatus": 123,
"meta": {}
}{
"message": "<string>",
"name": "<string>",
"identifier": "<string>",
"rawStatus": 123,
"meta": {}
}