Update Broker Instrument
curl --request PATCH \
--url https://api.{your-broker}.slate-labs.com/broker/instruments/{symbol} \
--header 'Content-Type: application/json' \
--data '
{
"is_enabled": true,
"tradeability": "<string>",
"stale_threshold_ms": 1001
}
'import requests
url = "https://api.{your-broker}.slate-labs.com/broker/instruments/{symbol}"
payload = {
"is_enabled": True,
"tradeability": "<string>",
"stale_threshold_ms": 1001
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({is_enabled: true, tradeability: '<string>', stale_threshold_ms: 1001})
};
fetch('https://api.{your-broker}.slate-labs.com/broker/instruments/{symbol}', 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/broker/instruments/{symbol}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'is_enabled' => true,
'tradeability' => '<string>',
'stale_threshold_ms' => 1001
]),
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://api.{your-broker}.slate-labs.com/broker/instruments/{symbol}"
payload := strings.NewReader("{\n \"is_enabled\": true,\n \"tradeability\": \"<string>\",\n \"stale_threshold_ms\": 1001\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.{your-broker}.slate-labs.com/broker/instruments/{symbol}")
.header("Content-Type", "application/json")
.body("{\n \"is_enabled\": true,\n \"tradeability\": \"<string>\",\n \"stale_threshold_ms\": 1001\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{your-broker}.slate-labs.com/broker/instruments/{symbol}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"is_enabled\": true,\n \"tradeability\": \"<string>\",\n \"stale_threshold_ms\": 1001\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"instrument_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"symbol": "<string>",
"is_enabled": true,
"tradeability": "<string>",
"effective_stale_threshold_ms": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"asset_class": "<string>",
"stale_threshold_ms": 123,
"display_name": "<string>",
"base_currency": "<string>",
"quote_currency": "<string>",
"contract_size": 123,
"digits": 123,
"exchange": "<string>",
"mic_code": "<string>",
"provider": "<string>",
"logo_base_url": "<string>",
"logo_quote_url": "<string>",
"groups_seeded": 0
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Instruments & Groups
Update Broker Instrument
Update broker-level configuration for an instrument (is_enabled, tradeability).
On a FALSE→TRUE is_enabled flip, seeds group_instruments rows for all active groups with tradeability=‘non_tradable’ (idempotent via NOT EXISTS). Returns groups_seeded count so CRM toast can surface it.
PATCH
/
broker
/
instruments
/
{symbol}
Update Broker Instrument
curl --request PATCH \
--url https://api.{your-broker}.slate-labs.com/broker/instruments/{symbol} \
--header 'Content-Type: application/json' \
--data '
{
"is_enabled": true,
"tradeability": "<string>",
"stale_threshold_ms": 1001
}
'import requests
url = "https://api.{your-broker}.slate-labs.com/broker/instruments/{symbol}"
payload = {
"is_enabled": True,
"tradeability": "<string>",
"stale_threshold_ms": 1001
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({is_enabled: true, tradeability: '<string>', stale_threshold_ms: 1001})
};
fetch('https://api.{your-broker}.slate-labs.com/broker/instruments/{symbol}', 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/broker/instruments/{symbol}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'is_enabled' => true,
'tradeability' => '<string>',
'stale_threshold_ms' => 1001
]),
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://api.{your-broker}.slate-labs.com/broker/instruments/{symbol}"
payload := strings.NewReader("{\n \"is_enabled\": true,\n \"tradeability\": \"<string>\",\n \"stale_threshold_ms\": 1001\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.{your-broker}.slate-labs.com/broker/instruments/{symbol}")
.header("Content-Type", "application/json")
.body("{\n \"is_enabled\": true,\n \"tradeability\": \"<string>\",\n \"stale_threshold_ms\": 1001\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{your-broker}.slate-labs.com/broker/instruments/{symbol}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"is_enabled\": true,\n \"tradeability\": \"<string>\",\n \"stale_threshold_ms\": 1001\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"instrument_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"symbol": "<string>",
"is_enabled": true,
"tradeability": "<string>",
"effective_stale_threshold_ms": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"asset_class": "<string>",
"stale_threshold_ms": 123,
"display_name": "<string>",
"base_currency": "<string>",
"quote_currency": "<string>",
"contract_size": 123,
"digits": 123,
"exchange": "<string>",
"mic_code": "<string>",
"provider": "<string>",
"logo_base_url": "<string>",
"logo_quote_url": "<string>",
"groups_seeded": 0
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Path Parameters
Body
application/json
Response
Successful Response
⌘I