Place Pending Order
curl --request POST \
--url https://api.{your-broker}.slate-labs.com/orders/pending \
--header 'Content-Type: application/json' \
--data '
{
"login": 123,
"symbol": "<string>",
"cmd": 123,
"volume": 123,
"trigger_price": 123,
"limit_price": 1,
"sl": 123,
"tp": 123,
"trailing_stop": 1,
"expiry_at": "2023-11-07T05:31:56Z",
"comment": "<string>"
}
'import requests
url = "https://api.{your-broker}.slate-labs.com/orders/pending"
payload = {
"login": 123,
"symbol": "<string>",
"cmd": 123,
"volume": 123,
"trigger_price": 123,
"limit_price": 1,
"sl": 123,
"tp": 123,
"trailing_stop": 1,
"expiry_at": "2023-11-07T05:31:56Z",
"comment": "<string>"
}
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({
login: 123,
symbol: '<string>',
cmd: 123,
volume: 123,
trigger_price: 123,
limit_price: 1,
sl: 123,
tp: 123,
trailing_stop: 1,
expiry_at: '2023-11-07T05:31:56Z',
comment: '<string>'
})
};
fetch('https://api.{your-broker}.slate-labs.com/orders/pending', 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/orders/pending",
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([
'login' => 123,
'symbol' => '<string>',
'cmd' => 123,
'volume' => 123,
'trigger_price' => 123,
'limit_price' => 1,
'sl' => 123,
'tp' => 123,
'trailing_stop' => 1,
'expiry_at' => '2023-11-07T05:31:56Z',
'comment' => '<string>'
]),
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/orders/pending"
payload := strings.NewReader("{\n \"login\": 123,\n \"symbol\": \"<string>\",\n \"cmd\": 123,\n \"volume\": 123,\n \"trigger_price\": 123,\n \"limit_price\": 1,\n \"sl\": 123,\n \"tp\": 123,\n \"trailing_stop\": 1,\n \"expiry_at\": \"2023-11-07T05:31:56Z\",\n \"comment\": \"<string>\"\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://api.{your-broker}.slate-labs.com/orders/pending")
.header("Content-Type", "application/json")
.body("{\n \"login\": 123,\n \"symbol\": \"<string>\",\n \"cmd\": 123,\n \"volume\": 123,\n \"trigger_price\": 123,\n \"limit_price\": 1,\n \"sl\": 123,\n \"tp\": 123,\n \"trailing_stop\": 1,\n \"expiry_at\": \"2023-11-07T05:31:56Z\",\n \"comment\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{your-broker}.slate-labs.com/orders/pending")
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 \"login\": 123,\n \"symbol\": \"<string>\",\n \"cmd\": 123,\n \"volume\": 123,\n \"trigger_price\": 123,\n \"limit_price\": 1,\n \"sl\": 123,\n \"tp\": 123,\n \"trailing_stop\": 1,\n \"expiry_at\": \"2023-11-07T05:31:56Z\",\n \"comment\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"order": 123,
"request_id": "<string>",
"login": 123,
"symbol": "<string>",
"cmd": 123,
"volume": 123,
"trigger_price": 123,
"sl": 123,
"tp": 123,
"expiry_at": "2023-11-07T05:31:56Z",
"comment": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"triggered_at": "2023-11-07T05:31:56Z",
"filled_order": 123,
"limit_price": 123,
"trailing_stop": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Orders
Place Pending Order
Place a pending order (limit or stop). Returns 201 Created immediately — no Kafka, no execution, no margin reservation. The PendingOrderEngine watches the price feed and triggers when conditions are met.
Trigger price validation: BUY_LIMIT (2): trigger_price < current ask (limit below market) SELL_LIMIT (3): trigger_price > current bid (limit above market) BUY_STOP (4): trigger_price > current ask (stop above market) SELL_STOP (5): trigger_price < current bid (stop below market)
POST
/
orders
/
pending
Place Pending Order
curl --request POST \
--url https://api.{your-broker}.slate-labs.com/orders/pending \
--header 'Content-Type: application/json' \
--data '
{
"login": 123,
"symbol": "<string>",
"cmd": 123,
"volume": 123,
"trigger_price": 123,
"limit_price": 1,
"sl": 123,
"tp": 123,
"trailing_stop": 1,
"expiry_at": "2023-11-07T05:31:56Z",
"comment": "<string>"
}
'import requests
url = "https://api.{your-broker}.slate-labs.com/orders/pending"
payload = {
"login": 123,
"symbol": "<string>",
"cmd": 123,
"volume": 123,
"trigger_price": 123,
"limit_price": 1,
"sl": 123,
"tp": 123,
"trailing_stop": 1,
"expiry_at": "2023-11-07T05:31:56Z",
"comment": "<string>"
}
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({
login: 123,
symbol: '<string>',
cmd: 123,
volume: 123,
trigger_price: 123,
limit_price: 1,
sl: 123,
tp: 123,
trailing_stop: 1,
expiry_at: '2023-11-07T05:31:56Z',
comment: '<string>'
})
};
fetch('https://api.{your-broker}.slate-labs.com/orders/pending', 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/orders/pending",
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([
'login' => 123,
'symbol' => '<string>',
'cmd' => 123,
'volume' => 123,
'trigger_price' => 123,
'limit_price' => 1,
'sl' => 123,
'tp' => 123,
'trailing_stop' => 1,
'expiry_at' => '2023-11-07T05:31:56Z',
'comment' => '<string>'
]),
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/orders/pending"
payload := strings.NewReader("{\n \"login\": 123,\n \"symbol\": \"<string>\",\n \"cmd\": 123,\n \"volume\": 123,\n \"trigger_price\": 123,\n \"limit_price\": 1,\n \"sl\": 123,\n \"tp\": 123,\n \"trailing_stop\": 1,\n \"expiry_at\": \"2023-11-07T05:31:56Z\",\n \"comment\": \"<string>\"\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://api.{your-broker}.slate-labs.com/orders/pending")
.header("Content-Type", "application/json")
.body("{\n \"login\": 123,\n \"symbol\": \"<string>\",\n \"cmd\": 123,\n \"volume\": 123,\n \"trigger_price\": 123,\n \"limit_price\": 1,\n \"sl\": 123,\n \"tp\": 123,\n \"trailing_stop\": 1,\n \"expiry_at\": \"2023-11-07T05:31:56Z\",\n \"comment\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{your-broker}.slate-labs.com/orders/pending")
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 \"login\": 123,\n \"symbol\": \"<string>\",\n \"cmd\": 123,\n \"volume\": 123,\n \"trigger_price\": 123,\n \"limit_price\": 1,\n \"sl\": 123,\n \"tp\": 123,\n \"trailing_stop\": 1,\n \"expiry_at\": \"2023-11-07T05:31:56Z\",\n \"comment\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"order": 123,
"request_id": "<string>",
"login": 123,
"symbol": "<string>",
"cmd": 123,
"volume": 123,
"trigger_price": 123,
"sl": 123,
"tp": 123,
"expiry_at": "2023-11-07T05:31:56Z",
"comment": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"triggered_at": "2023-11-07T05:31:56Z",
"filled_order": 123,
"limit_price": 123,
"trailing_stop": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Body
application/json
Required range:
x > 0Trailing stop percentage (e.g. 1.0 = 1%)
Required range:
x >= 0Response
Successful Response
⌘I