List assets
curl --request GET \
--url https://api.enterprise.sandbox.uphold.com/core/assets \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.enterprise.sandbox.uphold.com/core/assets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.enterprise.sandbox.uphold.com/core/assets', 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.enterprise.sandbox.uphold.com/core/assets",
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.enterprise.sandbox.uphold.com/core/assets"
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.enterprise.sandbox.uphold.com/core/assets")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enterprise.sandbox.uphold.com/core/assets")
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{
"assets": [
{
"code": "GBP",
"name": "British Pound",
"type": "fiat",
"symbol": "£",
"decimals": 2,
"delisted": false,
"logo": "https://cdn.uphold.com/assets/GBP.svg",
"features": [
"buy",
"deposit",
"sell",
"transfer",
"withdraw"
],
"cooldowns": []
},
{
"code": "BTC",
"name": "Bitcoin",
"type": "crypto",
"symbol": "₿",
"decimals": 8,
"delisted": false,
"logo": "https://cdn.uphold.com/assets/BTC.svg",
"features": [
"buy",
"deposit",
"sell",
"transfer",
"withdraw"
],
"cooldowns": []
},
{
"code": "ETH",
"name": "Ether",
"type": "crypto",
"symbol": "Ξ",
"decimals": 18,
"delisted": false,
"logo": "https://cdn.uphold.com/assets/ETH.svg",
"features": [
"buy",
"deposit",
"sell",
"transfer",
"withdraw"
],
"cooldowns": []
},
{
"code": "USDC",
"name": "USDC",
"type": "crypto",
"symbol": "$",
"decimals": 6,
"delisted": false,
"logo": "https://cdn.uphold.com/assets/USDC.svg",
"features": [
"buy",
"sell",
"transfer"
],
"cooldowns": []
},
{
"code": "BAT",
"name": "BAT",
"type": "crypto",
"decimals": 18,
"delisted": false,
"logo": "https://cdn.uphold.com/assets/BAT.svg",
"features": [
"buy",
"deposit",
"sell",
"transfer",
"withdraw"
],
"cooldowns": []
}
]
}Assets
List assets
List assets supported by the platform.
GET
/
core
/
assets
List assets
curl --request GET \
--url https://api.enterprise.sandbox.uphold.com/core/assets \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.enterprise.sandbox.uphold.com/core/assets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.enterprise.sandbox.uphold.com/core/assets', 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.enterprise.sandbox.uphold.com/core/assets",
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.enterprise.sandbox.uphold.com/core/assets"
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.enterprise.sandbox.uphold.com/core/assets")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enterprise.sandbox.uphold.com/core/assets")
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{
"assets": [
{
"code": "GBP",
"name": "British Pound",
"type": "fiat",
"symbol": "£",
"decimals": 2,
"delisted": false,
"logo": "https://cdn.uphold.com/assets/GBP.svg",
"features": [
"buy",
"deposit",
"sell",
"transfer",
"withdraw"
],
"cooldowns": []
},
{
"code": "BTC",
"name": "Bitcoin",
"type": "crypto",
"symbol": "₿",
"decimals": 8,
"delisted": false,
"logo": "https://cdn.uphold.com/assets/BTC.svg",
"features": [
"buy",
"deposit",
"sell",
"transfer",
"withdraw"
],
"cooldowns": []
},
{
"code": "ETH",
"name": "Ether",
"type": "crypto",
"symbol": "Ξ",
"decimals": 18,
"delisted": false,
"logo": "https://cdn.uphold.com/assets/ETH.svg",
"features": [
"buy",
"deposit",
"sell",
"transfer",
"withdraw"
],
"cooldowns": []
},
{
"code": "USDC",
"name": "USDC",
"type": "crypto",
"symbol": "$",
"decimals": 6,
"delisted": false,
"logo": "https://cdn.uphold.com/assets/USDC.svg",
"features": [
"buy",
"sell",
"transfer"
],
"cooldowns": []
},
{
"code": "BAT",
"name": "BAT",
"type": "crypto",
"decimals": 18,
"delisted": false,
"logo": "https://cdn.uphold.com/assets/BAT.svg",
"features": [
"buy",
"deposit",
"sell",
"transfer",
"withdraw"
],
"cooldowns": []
}
]
}
If the subject calling the endpoint is a user, the response will be contextualized accordingly.
As an example, the
features field will indicate the available features for the user.
You can retrieve several assets in a single request by using the Get Many Assets endpoint.
Sorting
You can sort the assets by using thesort query parameter. Below are the available sorting options:
By name
By name
To sort by name, use the
sort=name:asc or sort=name:desc to sort in ascending or descending order, respectively.By code
By code
To sort by code, use the
sort=code:asc or sort=code:desc to sort in ascending or descending order, respectively.By price
By price
To sort by current price, use the
sort=price:asc or sort=price:desc to sort in ascending or descending order, respectively.By price variance
By price variance
The
price-delta allows you to sort assets by gainers and losers, showing assets with the highest and lowest price changes in a given interval.To sort by price delta, use the sort=price-delta:asc:<interval> or sort=price-delta:desc:<interval> to sort in ascending or descending order, respectively, where interval can be one-hour, one-day, one-week, one-month, one-year, or five-years.By market cap
By market cap
To sort by market cap, use the
sort=market-cap:asc or sort=market-cap:desc to sort in ascending or descending order, respectively.Authorizations
OAuth 2.0 authentication.
FlowClient Credentials
- Token URL
- /core/oauth2/token
Query Parameters
Filter assets by type.
Maximum array length:
25The type of the asset.
Available options:
fiat, crypto Filter assets by features.
Minimum array length:
1Available options:
buy, sell, transfer, withdraw, deposit Sort assets by a criterion.
Available options:
code:asc, code:desc, name:asc, name:desc, price:asc, price:desc, price-delta:asc:one-hour, price-delta:asc:one-day, price-delta:asc:one-week, price-delta:asc:one-month, price-delta:asc:one-year, price-delta:asc:five-years, price-delta:desc:one-hour, price-delta:desc:one-day, price-delta:desc:one-week, price-delta:desc:one-month, price-delta:desc:one-year, price-delta:desc:five-years, market-cap:asc, market-cap:desc Response
200 - application/json
Assets list retrieved.
Show child attributes
Show child attributes
Was this page helpful?