curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v1/stocks/asset/{asset_id}/price \
--header 'x-auth-token: <api-key>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/stocks/asset/{asset_id}/price"
headers = {"x-auth-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-auth-token': '<api-key>'}};
fetch('https://api-sandbox.uqpaytech.com/api/v1/stocks/asset/{asset_id}/price', 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-sandbox.uqpaytech.com/api/v1/stocks/asset/{asset_id}/price",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-auth-token: <api-key>"
],
]);
$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-sandbox.uqpaytech.com/api/v1/stocks/asset/{asset_id}/price"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-auth-token", "<api-key>")
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-sandbox.uqpaytech.com/api/v1/stocks/asset/{asset_id}/price")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/stocks/asset/{asset_id}/price")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-auth-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"symbol": "<string>",
"currency": "USD",
"price": "<string>"
}{
"type": "<string>",
"code": "<string>",
"message": "<string>"
}{
"type": "<string>",
"code": "<string>",
"message": "<string>"
}{
"type": "<string>",
"code": "<string>",
"message": "<string>"
}{
"type": "<string>",
"code": "<string>",
"message": "<string>"
}{
"type": "<string>",
"code": "<string>",
"message": "<string>"
}{
"type": "<string>",
"code": "<string>",
"message": "<string>"
}{
"type": "<string>",
"code": "<string>",
"message": "<string>"
}{
"type": "<string>",
"code": "<string>",
"message": "<string>"
}Retrieve latest price
Retrieve the latest reference price in USD for an asset. Reference prices are not executable quotes.
Requires stocks:read, Stocks account and asset permissions, and at least one enabled buy or sell product.
When no price is available, price is null. Provider unavailability, request failure, or timeout returns HTTP 503 stocks_price_unavailable. No query parameters are accepted.
curl --request GET \
--url https://api-sandbox.uqpaytech.com/api/v1/stocks/asset/{asset_id}/price \
--header 'x-auth-token: <api-key>'import requests
url = "https://api-sandbox.uqpaytech.com/api/v1/stocks/asset/{asset_id}/price"
headers = {"x-auth-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-auth-token': '<api-key>'}};
fetch('https://api-sandbox.uqpaytech.com/api/v1/stocks/asset/{asset_id}/price', 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-sandbox.uqpaytech.com/api/v1/stocks/asset/{asset_id}/price",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-auth-token: <api-key>"
],
]);
$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-sandbox.uqpaytech.com/api/v1/stocks/asset/{asset_id}/price"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-auth-token", "<api-key>")
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-sandbox.uqpaytech.com/api/v1/stocks/asset/{asset_id}/price")
.header("x-auth-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.uqpaytech.com/api/v1/stocks/asset/{asset_id}/price")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-auth-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"symbol": "<string>",
"currency": "USD",
"price": "<string>"
}{
"type": "<string>",
"code": "<string>",
"message": "<string>"
}{
"type": "<string>",
"code": "<string>",
"message": "<string>"
}{
"type": "<string>",
"code": "<string>",
"message": "<string>"
}{
"type": "<string>",
"code": "<string>",
"message": "<string>"
}{
"type": "<string>",
"code": "<string>",
"message": "<string>"
}{
"type": "<string>",
"code": "<string>",
"message": "<string>"
}{
"type": "<string>",
"code": "<string>",
"message": "<string>"
}{
"type": "<string>",
"code": "<string>",
"message": "<string>"
}Authorizations
The API Token provided by UQPAY. Enter the complete header value, including the Bearer prefix.
Headers
Specifies the sub-account on whose behalf the request is made. Set it to the target sub-account account_id (a full lowercase UUID). If omitted or empty, the authenticated account is used. Requires permission to act for that account; requests, quotes, orders, and positions are scoped to the effective account. See Sub-account requests.
Path Parameters
Asset identifier returned by List assets.
Response
Success
Asset identifier shared by asset, quote, order, and position requests.
Asset symbol.
Reference price currency; remains USD when no price is available.
USD Current reference price from the provider; null when unavailable, with no fallback to historical snapshots. This is not a guaranteed execution price.
^[0-9]+(\.[0-9]+)?$
