Get many assets
Core API
- Concepts
- Authentication
- Countries
- Users
- KYC
- Capabilities
- Terms of Service
- Files
- Assets
- Accounts
- External Accounts
- Transactions
- Webhooks
Widgets API
- Payment
Get many assets
Retrieve several assets by their codes.
POST
/
core
/
assets
/
_mget
curl --request POST \
--url https://api.enterprise.sandbox.uphold.com/core/assets/_mget \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"codes": [
"BTC",
"ETH"
]
}'
{
"assets": {
"BTC": {
"code": "BTC",
"name": "Bitcoin",
"type": "crypto",
"symbol": "₿",
"decimals": 8,
"logo": "https://cdn.uphold.com/assets/BTC.svg",
"features": [
"buy",
"deposit",
"sell",
"transfer",
"withdraw"
],
"cooldowns": []
},
"ETH": {
"code": "ETH",
"name": "Ethereum",
"type": "crypto",
"symbol": "Ξ",
"decimals": 18,
"logo": "https://cdn.uphold.com/assets/ETH.svg",
"features": [
"buy",
"deposit",
"sell",
"transfer",
"withdraw"
],
"cooldowns": []
}
}
}
If the authenticated subject is a user, the response will be contextualized accordingly.
As an example, the features
field will indicate the available features for the user.
Authorizations
OAuth 2.0 authentication.
Body
application/json
The asset codes to retrieve.
Response
200 - application/json
Assets retrieved.
The type of the asset.
Available options:
fiat
, crypto
The unique code of the asset.
The name of the asset.
The maximum number of decimal places this asset can have.
Required range:
x >= 0
The features of the asset.
Available options:
buy
, sell
, transfer
, withdraw
, deposit
The cooldowns of the asset.
The rule of the cooldown.
Available options:
financial-promotions
The features affected by the cooldown.
Available options:
buy
, sell
, transfer
, withdraw
, deposit
The date and time when the cooldown ends.
The symbol of the asset.
The logo of the asset.
curl --request POST \
--url https://api.enterprise.sandbox.uphold.com/core/assets/_mget \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"codes": [
"BTC",
"ETH"
]
}'
{
"assets": {
"BTC": {
"code": "BTC",
"name": "Bitcoin",
"type": "crypto",
"symbol": "₿",
"decimals": 8,
"logo": "https://cdn.uphold.com/assets/BTC.svg",
"features": [
"buy",
"deposit",
"sell",
"transfer",
"withdraw"
],
"cooldowns": []
},
"ETH": {
"code": "ETH",
"name": "Ethereum",
"type": "crypto",
"symbol": "Ξ",
"decimals": 18,
"logo": "https://cdn.uphold.com/assets/ETH.svg",
"features": [
"buy",
"deposit",
"sell",
"transfer",
"withdraw"
],
"cooldowns": []
}
}
}