Update Order
curl --request PUT \
--url https://synthesis.trade/api/v1/wallet/pol/{wallet_id}/order/{order_id} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"type": "<string>",
"price": "<string>",
"shares": "<string>"
}
'import requests
url = "https://synthesis.trade/api/v1/wallet/pol/{wallet_id}/order/{order_id}"
payload = {
"type": "<string>",
"price": "<string>",
"shares": "<string>"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({type: '<string>', price: '<string>', shares: '<string>'})
};
fetch('https://synthesis.trade/api/v1/wallet/pol/{wallet_id}/order/{order_id}', 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://synthesis.trade/api/v1/wallet/pol/{wallet_id}/order/{order_id}",
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([
'type' => '<string>',
'price' => '<string>',
'shares' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$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://synthesis.trade/api/v1/wallet/pol/{wallet_id}/order/{order_id}"
payload := strings.NewReader("{\n \"type\": \"<string>\",\n \"price\": \"<string>\",\n \"shares\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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://synthesis.trade/api/v1/wallet/pol/{wallet_id}/order/{order_id}")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"<string>\",\n \"price\": \"<string>\",\n \"shares\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://synthesis.trade/api/v1/wallet/pol/{wallet_id}/order/{order_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"<string>\",\n \"price\": \"<string>\",\n \"shares\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"response": {
"order_id": "0xf9e8d7c6b5a4f9e8d7c6b5a4f9e8d7c6b5a4f9e8d7c6b5a4f9e8d7c6b5a4f9e8",
"token_id": "21742633143463906290569050155826241533067272736897614950488156847949938836455",
"side": "BUY",
"type": "LIMIT",
"time_in_force": "GTC",
"amount": "100.000",
"shares": "152.300",
"filled": "0.000",
"price": "0.657",
"fee": {},
"units": "SHARES",
"status": "OPEN",
"created_at": "2026-01-01T00:00:00",
"updated_at": "2026-01-01T00:00:00"
}
}Polygon
Update Order
Update a limit order price or modify an active stoploss order.
Update Order
curl --request PUT \
--url https://synthesis.trade/api/v1/wallet/pol/{wallet_id}/order/{order_id} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"type": "<string>",
"price": "<string>",
"shares": "<string>"
}
'import requests
url = "https://synthesis.trade/api/v1/wallet/pol/{wallet_id}/order/{order_id}"
payload = {
"type": "<string>",
"price": "<string>",
"shares": "<string>"
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({type: '<string>', price: '<string>', shares: '<string>'})
};
fetch('https://synthesis.trade/api/v1/wallet/pol/{wallet_id}/order/{order_id}', 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://synthesis.trade/api/v1/wallet/pol/{wallet_id}/order/{order_id}",
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([
'type' => '<string>',
'price' => '<string>',
'shares' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$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://synthesis.trade/api/v1/wallet/pol/{wallet_id}/order/{order_id}"
payload := strings.NewReader("{\n \"type\": \"<string>\",\n \"price\": \"<string>\",\n \"shares\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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://synthesis.trade/api/v1/wallet/pol/{wallet_id}/order/{order_id}")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"<string>\",\n \"price\": \"<string>\",\n \"shares\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://synthesis.trade/api/v1/wallet/pol/{wallet_id}/order/{order_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"<string>\",\n \"price\": \"<string>\",\n \"shares\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"response": {
"order_id": "0xf9e8d7c6b5a4f9e8d7c6b5a4f9e8d7c6b5a4f9e8d7c6b5a4f9e8d7c6b5a4f9e8",
"token_id": "21742633143463906290569050155826241533067272736897614950488156847949938836455",
"side": "BUY",
"type": "LIMIT",
"time_in_force": "GTC",
"amount": "100.000",
"shares": "152.300",
"filled": "0.000",
"price": "0.657",
"fee": {},
"units": "SHARES",
"status": "OPEN",
"created_at": "2026-01-01T00:00:00",
"updated_at": "2026-01-01T00:00:00"
}
}Authorizations
AccountApiKeyAccountSession
Account secret API key.
Body
application/json
Response
200 - application/json
Polygon order updated
⌘I