Upsert Group Instrument
curl --request PUT \
--url https://api.{your-broker}.slate-labs.com/groups/{group_id}/instruments/{symbol} \
--header 'Content-Type: application/json' \
--data '
{
"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/{symbol}"
payload = {
"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({
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/{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/groups/{group_id}/instruments/{symbol}",
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([
'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/{symbol}"
payload := strings.NewReader("{\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}")
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/{symbol}")
.header("Content-Type", "application/json")
.body("{\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}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{your-broker}.slate-labs.com/groups/{group_id}/instruments/{symbol}")
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 \"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}"
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>"
}
]
}Instruments & Groups
Upsert Group Instrument
Create or update the group-instrument configuration for a symbol.
PUT
/
groups
/
{group_id}
/
instruments
/
{symbol}
Upsert Group Instrument
curl --request PUT \
--url https://api.{your-broker}.slate-labs.com/groups/{group_id}/instruments/{symbol} \
--header 'Content-Type: application/json' \
--data '
{
"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/{symbol}"
payload = {
"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({
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/{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/groups/{group_id}/instruments/{symbol}",
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([
'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/{symbol}"
payload := strings.NewReader("{\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}")
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/{symbol}")
.header("Content-Type", "application/json")
.body("{\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}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{your-broker}.slate-labs.com/groups/{group_id}/instruments/{symbol}")
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 \"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}"
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>"
}
]
}Body
application/json
All 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.
Required range:
0 <= x <= 100Required range:
0.001 <= x <= 1Required range:
-50 <= x <= 50Required range:
-50 <= x <= 50Required range:
0 <= x <= 50Required range:
0.001 <= x <= 1000Required range:
0.001 <= x <= 10000Required range:
0.001 <= x <= 100Required range:
x >= 0Response
Successful Response
⌘I