curl --request PUT \
--url https://api.{your-broker}.slate-labs.com/groups/{group_id}/instruments/bulk \
--header 'Content-Type: application/json' \
--data '
{
"symbols": [
"<string>"
],
"patch": {
"tradeability": "<string>",
"spread": 50,
"margin_rate": 0.5005,
"swap_type": "<string>",
"swap_long": 0,
"swap_short": 0,
"commission_type": "<string>",
"commission_value": 25,
"min_lot": 500.0005,
"max_lot": 5000.0005,
"lot_step": 50.0005,
"max_symbol_exposure": 1
}
}
'import requests
url = "https://api.{your-broker}.slate-labs.com/groups/{group_id}/instruments/bulk"
payload = {
"symbols": ["<string>"],
"patch": {
"tradeability": "<string>",
"spread": 50,
"margin_rate": 0.5005,
"swap_type": "<string>",
"swap_long": 0,
"swap_short": 0,
"commission_type": "<string>",
"commission_value": 25,
"min_lot": 500.0005,
"max_lot": 5000.0005,
"lot_step": 50.0005,
"max_symbol_exposure": 1
}
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
symbols: ['<string>'],
patch: {
tradeability: '<string>',
spread: 50,
margin_rate: 0.5005,
swap_type: '<string>',
swap_long: 0,
swap_short: 0,
commission_type: '<string>',
commission_value: 25,
min_lot: 500.0005,
max_lot: 5000.0005,
lot_step: 50.0005,
max_symbol_exposure: 1
}
})
};
fetch('https://api.{your-broker}.slate-labs.com/groups/{group_id}/instruments/bulk', 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/groups/{group_id}/instruments/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'symbols' => [
'<string>'
],
'patch' => [
'tradeability' => '<string>',
'spread' => 50,
'margin_rate' => 0.5005,
'swap_type' => '<string>',
'swap_long' => 0,
'swap_short' => 0,
'commission_type' => '<string>',
'commission_value' => 25,
'min_lot' => 500.0005,
'max_lot' => 5000.0005,
'lot_step' => 50.0005,
'max_symbol_exposure' => 1
]
]),
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/groups/{group_id}/instruments/bulk"
payload := strings.NewReader("{\n \"symbols\": [\n \"<string>\"\n ],\n \"patch\": {\n \"tradeability\": \"<string>\",\n \"spread\": 50,\n \"margin_rate\": 0.5005,\n \"swap_type\": \"<string>\",\n \"swap_long\": 0,\n \"swap_short\": 0,\n \"commission_type\": \"<string>\",\n \"commission_value\": 25,\n \"min_lot\": 500.0005,\n \"max_lot\": 5000.0005,\n \"lot_step\": 50.0005,\n \"max_symbol_exposure\": 1\n }\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.{your-broker}.slate-labs.com/groups/{group_id}/instruments/bulk")
.header("Content-Type", "application/json")
.body("{\n \"symbols\": [\n \"<string>\"\n ],\n \"patch\": {\n \"tradeability\": \"<string>\",\n \"spread\": 50,\n \"margin_rate\": 0.5005,\n \"swap_type\": \"<string>\",\n \"swap_long\": 0,\n \"swap_short\": 0,\n \"commission_type\": \"<string>\",\n \"commission_value\": 25,\n \"min_lot\": 500.0005,\n \"max_lot\": 5000.0005,\n \"lot_step\": 50.0005,\n \"max_symbol_exposure\": 1\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{your-broker}.slate-labs.com/groups/{group_id}/instruments/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"symbols\": [\n \"<string>\"\n ],\n \"patch\": {\n \"tradeability\": \"<string>\",\n \"spread\": 50,\n \"margin_rate\": 0.5005,\n \"swap_type\": \"<string>\",\n \"swap_long\": 0,\n \"swap_short\": 0,\n \"commission_type\": \"<string>\",\n \"commission_value\": 25,\n \"min_lot\": 500.0005,\n \"max_lot\": 5000.0005,\n \"lot_step\": 50.0005,\n \"max_symbol_exposure\": 1\n }\n}"
response = http.request(request)
puts response.read_body[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"instrument_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"symbol": "<string>",
"tradeability": "<string>",
"spread": 123,
"margin_rate": 123,
"swap_type": "<string>",
"swap_long": 123,
"swap_short": 123,
"commission_type": "<string>",
"commission_value": 123,
"min_lot": 123,
"max_lot": 123,
"lot_step": 123,
"max_symbol_exposure": 123
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Bulk Upsert Group Instruments
Apply one partial patch to many symbols in a single transaction.
All-or-nothing: an unknown symbol or a non-tradable-with-open-positions violation rolls the whole batch back (the get_session ctx aborts on the raised HTTPException), so the client never sees a partial apply.
curl --request PUT \
--url https://api.{your-broker}.slate-labs.com/groups/{group_id}/instruments/bulk \
--header 'Content-Type: application/json' \
--data '
{
"symbols": [
"<string>"
],
"patch": {
"tradeability": "<string>",
"spread": 50,
"margin_rate": 0.5005,
"swap_type": "<string>",
"swap_long": 0,
"swap_short": 0,
"commission_type": "<string>",
"commission_value": 25,
"min_lot": 500.0005,
"max_lot": 5000.0005,
"lot_step": 50.0005,
"max_symbol_exposure": 1
}
}
'import requests
url = "https://api.{your-broker}.slate-labs.com/groups/{group_id}/instruments/bulk"
payload = {
"symbols": ["<string>"],
"patch": {
"tradeability": "<string>",
"spread": 50,
"margin_rate": 0.5005,
"swap_type": "<string>",
"swap_long": 0,
"swap_short": 0,
"commission_type": "<string>",
"commission_value": 25,
"min_lot": 500.0005,
"max_lot": 5000.0005,
"lot_step": 50.0005,
"max_symbol_exposure": 1
}
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
symbols: ['<string>'],
patch: {
tradeability: '<string>',
spread: 50,
margin_rate: 0.5005,
swap_type: '<string>',
swap_long: 0,
swap_short: 0,
commission_type: '<string>',
commission_value: 25,
min_lot: 500.0005,
max_lot: 5000.0005,
lot_step: 50.0005,
max_symbol_exposure: 1
}
})
};
fetch('https://api.{your-broker}.slate-labs.com/groups/{group_id}/instruments/bulk', 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/groups/{group_id}/instruments/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'symbols' => [
'<string>'
],
'patch' => [
'tradeability' => '<string>',
'spread' => 50,
'margin_rate' => 0.5005,
'swap_type' => '<string>',
'swap_long' => 0,
'swap_short' => 0,
'commission_type' => '<string>',
'commission_value' => 25,
'min_lot' => 500.0005,
'max_lot' => 5000.0005,
'lot_step' => 50.0005,
'max_symbol_exposure' => 1
]
]),
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/groups/{group_id}/instruments/bulk"
payload := strings.NewReader("{\n \"symbols\": [\n \"<string>\"\n ],\n \"patch\": {\n \"tradeability\": \"<string>\",\n \"spread\": 50,\n \"margin_rate\": 0.5005,\n \"swap_type\": \"<string>\",\n \"swap_long\": 0,\n \"swap_short\": 0,\n \"commission_type\": \"<string>\",\n \"commission_value\": 25,\n \"min_lot\": 500.0005,\n \"max_lot\": 5000.0005,\n \"lot_step\": 50.0005,\n \"max_symbol_exposure\": 1\n }\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.{your-broker}.slate-labs.com/groups/{group_id}/instruments/bulk")
.header("Content-Type", "application/json")
.body("{\n \"symbols\": [\n \"<string>\"\n ],\n \"patch\": {\n \"tradeability\": \"<string>\",\n \"spread\": 50,\n \"margin_rate\": 0.5005,\n \"swap_type\": \"<string>\",\n \"swap_long\": 0,\n \"swap_short\": 0,\n \"commission_type\": \"<string>\",\n \"commission_value\": 25,\n \"min_lot\": 500.0005,\n \"max_lot\": 5000.0005,\n \"lot_step\": 50.0005,\n \"max_symbol_exposure\": 1\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{your-broker}.slate-labs.com/groups/{group_id}/instruments/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"symbols\": [\n \"<string>\"\n ],\n \"patch\": {\n \"tradeability\": \"<string>\",\n \"spread\": 50,\n \"margin_rate\": 0.5005,\n \"swap_type\": \"<string>\",\n \"swap_long\": 0,\n \"swap_short\": 0,\n \"commission_type\": \"<string>\",\n \"commission_value\": 25,\n \"min_lot\": 500.0005,\n \"max_lot\": 5000.0005,\n \"lot_step\": 50.0005,\n \"max_symbol_exposure\": 1\n }\n}"
response = http.request(request)
puts response.read_body[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"instrument_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"symbol": "<string>",
"tradeability": "<string>",
"spread": 123,
"margin_rate": 123,
"swap_type": "<string>",
"swap_long": 123,
"swap_short": 123,
"commission_type": "<string>",
"commission_value": 123,
"min_lot": 123,
"max_lot": 123,
"lot_step": 123,
"max_symbol_exposure": 123
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Path Parameters
Body
Apply ONE partial patch to MANY symbols in a single transaction.
patch reuses the per-symbol validation (ranges, commission pairing,
min<=max, enum checks). symbols is the set of broker-instrument symbols
to apply it to. Empty symbols is rejected — a no-op bulk write is almost
certainly a frontend bug, and we want the 422 to surface it.
1 - 2000 elementsAll override fields are optional. group_instruments is the sole source of commercial terms — there is no fallback to instruments master. Safety limits enforced on all numeric overrides.
Show child attributes
Show child attributes
Response
Successful Response