curl --request GET \
--url https://sg.sandbox.api.reap.global/virtual-assets/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Reap-Version: <reap-version>'const options = {
method: 'GET',
headers: {'Reap-Version': '<reap-version>', Authorization: 'Bearer <token>'}
};
fetch('https://sg.sandbox.api.reap.global/virtual-assets/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sg.sandbox.api.reap.global/virtual-assets/{id}"
headers = {
"Reap-Version": "<reap-version>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"symbol": "<string>",
"name": "<string>",
"decimals": 0,
"status": "ACTIVE",
"rateSource": "FIXED",
"httpEndpoint": "<string>",
"currentRate": 1,
"currentRateUpdatedAt": "<string>",
"allocated": {
"amount": "<string>",
"value": 123
},
"createdAt": "<string>",
"updatedAt": "<string>"
}{
"error": {
"code": "VIRTUAL_ASSET_NOT_FOUND",
"message": "<string>",
"detail": {}
}
}Get virtual asset
Retrieves a virtual asset by ID, including the latest known rate.
curl --request GET \
--url https://sg.sandbox.api.reap.global/virtual-assets/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Reap-Version: <reap-version>'const options = {
method: 'GET',
headers: {'Reap-Version': '<reap-version>', Authorization: 'Bearer <token>'}
};
fetch('https://sg.sandbox.api.reap.global/virtual-assets/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sg.sandbox.api.reap.global/virtual-assets/{id}"
headers = {
"Reap-Version": "<reap-version>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"symbol": "<string>",
"name": "<string>",
"decimals": 0,
"status": "ACTIVE",
"rateSource": "FIXED",
"httpEndpoint": "<string>",
"currentRate": 1,
"currentRateUpdatedAt": "<string>",
"allocated": {
"amount": "<string>",
"value": 123
},
"createdAt": "<string>",
"updatedAt": "<string>"
}{
"error": {
"code": "VIRTUAL_ASSET_NOT_FOUND",
"message": "<string>",
"detail": {}
}
}Authorizations
API key as Bearer token
Headers
API version (YYYY-MM-DD)
2025-02-14 "2025-02-14"
Path Parameters
Virtual asset ID
Response
Virtual asset definition
Unique virtual asset identifier
Virtual asset symbol
Display name
Number of decimal places for amounts
-9007199254740991 <= x <= 9007199254740991Lifecycle status. Disabled assets are excluded from balance computation.
ACTIVE, DISABLED "ACTIVE"
How the exchange rate (in the project billing currency) is determined for this virtual asset.
FIXED, HTTP "FIXED"
Rate endpoint URL. Present only for HTTP rate source.
Latest known rate per unit, in the project billing currency. This is the rate a SETTLEMENT posting made now would be priced at. Null if no rate snapshot exists yet.
x > 01
ISO 8601 timestamp of the latest rate snapshot. Null when currentRate is null.
Total amount of this virtual asset allocated across all accounts in the project.
Show child attributes
Show child attributes
ISO 8601 creation timestamp
ISO 8601 last update timestamp