Batch Prices
curl --request GET \
--url https://api.{your-broker}.slate-labs.com/market-pricesimport requests
url = "https://api.{your-broker}.slate-labs.com/market-prices"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.{your-broker}.slate-labs.com/market-prices', 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.{your-broker}.slate-labs.com/market-prices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.{your-broker}.slate-labs.com/market-prices"
req, _ := http.NewRequest("GET", url, nil)
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.{your-broker}.slate-labs.com/market-prices")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{your-broker}.slate-labs.com/market-prices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Instruments & Groups
Batch Prices
Return latest cached prices from Redis for multiple symbols.
Falls back to the authoritative last_ticks table for any symbol whose Redis entry is missing — the price: key has a 60 s TTL and low-volume symbols (e.g. IBM / F after hours) disappear from cache if they don’t tick often enough. The DB fallback keeps those rows visible in the webtrader with their last-known price.
When called with ?login= (or with X-Customer-Login set by the gateway) the response carries the same per-group spread markup the /ws/prices fan-out applies, so REST hydration on subscribe matches the live tick.
GET
/
market-prices
Batch Prices
curl --request GET \
--url https://api.{your-broker}.slate-labs.com/market-pricesimport requests
url = "https://api.{your-broker}.slate-labs.com/market-prices"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.{your-broker}.slate-labs.com/market-prices', 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.{your-broker}.slate-labs.com/market-prices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.{your-broker}.slate-labs.com/market-prices"
req, _ := http.NewRequest("GET", url, nil)
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.{your-broker}.slate-labs.com/market-prices")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{your-broker}.slate-labs.com/market-prices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}