curl --request POST \
--url https://data-tools.prd.arrays.org/api/v1/market/prices-at \
--header 'Content-Type: application/json' \
--data '
{
"points": [
{
"at": 1762956031,
"side": "FIRST_AT_OR_AFTER",
"trading_pair": "US_SPOT_NVDA_USD"
}
]
}
'import requests
url = "https://data-tools.prd.arrays.org/api/v1/market/prices-at"
payload = { "points": [
{
"at": 1762956031,
"side": "FIRST_AT_OR_AFTER",
"trading_pair": "US_SPOT_NVDA_USD"
}
] }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
points: [{at: 1762956031, side: 'FIRST_AT_OR_AFTER', trading_pair: 'US_SPOT_NVDA_USD'}]
})
};
fetch('https://data-tools.prd.arrays.org/api/v1/market/prices-at', 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://data-tools.prd.arrays.org/api/v1/market/prices-at",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'points' => [
[
'at' => 1762956031,
'side' => 'FIRST_AT_OR_AFTER',
'trading_pair' => 'US_SPOT_NVDA_USD'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://data-tools.prd.arrays.org/api/v1/market/prices-at"
payload := strings.NewReader("{\n \"points\": [\n {\n \"at\": 1762956031,\n \"side\": \"FIRST_AT_OR_AFTER\",\n \"trading_pair\": \"US_SPOT_NVDA_USD\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://data-tools.prd.arrays.org/api/v1/market/prices-at")
.header("Content-Type", "application/json")
.body("{\n \"points\": [\n {\n \"at\": 1762956031,\n \"side\": \"FIRST_AT_OR_AFTER\",\n \"trading_pair\": \"US_SPOT_NVDA_USD\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://data-tools.prd.arrays.org/api/v1/market/prices-at")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"points\": [\n {\n \"at\": 1762956031,\n \"side\": \"FIRST_AT_OR_AFTER\",\n \"trading_pair\": \"US_SPOT_NVDA_USD\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"at": 1762956031,
"basis": "3f9a1c0d2b7e4f6a8c5d1e0b",
"error": {
"code": "RESOURCE_NOT_FOUND",
"details": [
{
"field": "<string>",
"got": "<string>",
"reason": "<string>"
}
],
"docs_url": "<string>",
"examples": [
"<string>"
],
"hint": "<string>",
"message": "The requested resource was not found.",
"suggestions": [
"<string>"
]
},
"final": true,
"price": 188.25,
"quote_currency": "USD",
"side": "FIRST_AT_OR_AFTER",
"time": 1762956060,
"trading_pair": "US_SPOT_NVDA_USD"
}
],
"error": {
"code": "RESOURCE_NOT_FOUND",
"details": [
{
"field": "<string>",
"got": "<string>",
"reason": "<string>"
}
],
"docs_url": "<string>",
"examples": [
"<string>"
],
"hint": "<string>",
"message": "The requested resource was not found.",
"suggestions": [
"<string>"
]
},
"metadata": "<unknown>",
"pagination": "<unknown>",
"request_id": "<string>",
"success": true
}{
"data": "<unknown>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"details": [
{
"field": "<string>",
"got": "<string>",
"reason": "<string>"
}
],
"docs_url": "<string>",
"examples": [
"<string>"
],
"hint": "<string>",
"message": "The requested resource was not found.",
"suggestions": [
"<string>"
]
},
"metadata": "<unknown>",
"pagination": "<unknown>",
"request_id": "<string>",
"success": true
}Get prices at moments, with their price basis and finality, for many instruments
OpenAPI JSON Spec
Returns, for each point, the price of the one-minute bar its side names: FIRST_AT_OR_AFTER is the open of the first closed bar opening at or after at (the price a market order placed at at would first trade at); LAST_AT_OR_BEFORE is the close of the last closed bar opening at or before at, however old (the price as of at; use the current time for the latest price). time is the bar’s open time. Precision is one minute. Prices are on the current split basis, as GET /market/kline returns them.
Basis and finality: every result of one instrument in a response carries the same basis, an opaque value to compare only for equality. It changes when a split adjusts the instrument’s prices differently or when its stored history is rewritten, so a price stored with its basis can be reused for as long as a newer response reports the same basis. final is true when the price cannot change while the basis stays the same: its bars are past the market’s lateness (10 days for US stocks, which are reconciled for 5 trading days; 1 day otherwise) and no rewrite of the instrument ran during the read. Sides may be mixed in one request, so past and latest prices share one split snapshot.
Points: 1 to 500, each a trading_pair (the same format as GET /market/kline), at in unix seconds and side. Results are in request order, one per point.
Supported pairs:
| Scenario | trading_pair example | Session |
|---|---|---|
| US stock / ETF spot | US_SPOT_NVDA_USD | Extended hours (04:00-20:00 ET) |
| Non-US stock spot | HK_SPOT_0700_HKD (market = exchange suffix, symbol without suffix) | Exchange session |
| Binance spot | BINANCE_SPOT_BTC_USDT | 24/7 |
| Binance USDT perpetual | BINANCE_PERP_BTC_USDT | 24/7 |
The pair’s currency must be the instrument’s quote: USD for US stocks and ETFs, USDT for Binance, and for a non-US listing its exchange’s quote as GET /market/trading-pairs publishes it (for example HKD, or GBp for London). Any other currency names a different instrument and is INVALID_PARAMETER on its point.
Per point: price and time are absent while no such bar exists (for example a FIRST point over a weekend). A point that cannot be read carries error and no basis (INVALID_PARAMETER for an unsupported or malformed pair, a currency that is not the instrument’s quote, or an unknown symbol, UNAVAILABLE when its market’s data could not be read) while the other points are still answered.
curl --request POST \
--url https://data-tools.prd.arrays.org/api/v1/market/prices-at \
--header 'Content-Type: application/json' \
--data '
{
"points": [
{
"at": 1762956031,
"side": "FIRST_AT_OR_AFTER",
"trading_pair": "US_SPOT_NVDA_USD"
}
]
}
'import requests
url = "https://data-tools.prd.arrays.org/api/v1/market/prices-at"
payload = { "points": [
{
"at": 1762956031,
"side": "FIRST_AT_OR_AFTER",
"trading_pair": "US_SPOT_NVDA_USD"
}
] }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
points: [{at: 1762956031, side: 'FIRST_AT_OR_AFTER', trading_pair: 'US_SPOT_NVDA_USD'}]
})
};
fetch('https://data-tools.prd.arrays.org/api/v1/market/prices-at', 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://data-tools.prd.arrays.org/api/v1/market/prices-at",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'points' => [
[
'at' => 1762956031,
'side' => 'FIRST_AT_OR_AFTER',
'trading_pair' => 'US_SPOT_NVDA_USD'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://data-tools.prd.arrays.org/api/v1/market/prices-at"
payload := strings.NewReader("{\n \"points\": [\n {\n \"at\": 1762956031,\n \"side\": \"FIRST_AT_OR_AFTER\",\n \"trading_pair\": \"US_SPOT_NVDA_USD\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://data-tools.prd.arrays.org/api/v1/market/prices-at")
.header("Content-Type", "application/json")
.body("{\n \"points\": [\n {\n \"at\": 1762956031,\n \"side\": \"FIRST_AT_OR_AFTER\",\n \"trading_pair\": \"US_SPOT_NVDA_USD\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://data-tools.prd.arrays.org/api/v1/market/prices-at")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"points\": [\n {\n \"at\": 1762956031,\n \"side\": \"FIRST_AT_OR_AFTER\",\n \"trading_pair\": \"US_SPOT_NVDA_USD\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"at": 1762956031,
"basis": "3f9a1c0d2b7e4f6a8c5d1e0b",
"error": {
"code": "RESOURCE_NOT_FOUND",
"details": [
{
"field": "<string>",
"got": "<string>",
"reason": "<string>"
}
],
"docs_url": "<string>",
"examples": [
"<string>"
],
"hint": "<string>",
"message": "The requested resource was not found.",
"suggestions": [
"<string>"
]
},
"final": true,
"price": 188.25,
"quote_currency": "USD",
"side": "FIRST_AT_OR_AFTER",
"time": 1762956060,
"trading_pair": "US_SPOT_NVDA_USD"
}
],
"error": {
"code": "RESOURCE_NOT_FOUND",
"details": [
{
"field": "<string>",
"got": "<string>",
"reason": "<string>"
}
],
"docs_url": "<string>",
"examples": [
"<string>"
],
"hint": "<string>",
"message": "The requested resource was not found.",
"suggestions": [
"<string>"
]
},
"metadata": "<unknown>",
"pagination": "<unknown>",
"request_id": "<string>",
"success": true
}{
"data": "<unknown>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"details": [
{
"field": "<string>",
"got": "<string>",
"reason": "<string>"
}
],
"docs_url": "<string>",
"examples": [
"<string>"
],
"hint": "<string>",
"message": "The requested resource was not found.",
"suggestions": [
"<string>"
]
},
"metadata": "<unknown>",
"pagination": "<unknown>",
"request_id": "<string>",
"success": true
}Body
Points: trading_pair, at (unix seconds) and side, 1 to 500

