Easy market order (slug + outcome)
curl --request POST \
--url https://api.vatic.trading/api/v1/simpleOrders/easyMarketOrder \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"walletId": "550e8400-e29b-41d4-a716-446655440000",
"slug": "will-arsenal-win-the-202526-english-premier-league",
"outcome": "Yes",
"side": "BUY",
"amount": 50
}
'import requests
url = "https://api.vatic.trading/api/v1/simpleOrders/easyMarketOrder"
payload = {
"walletId": "550e8400-e29b-41d4-a716-446655440000",
"slug": "will-arsenal-win-the-202526-english-premier-league",
"outcome": "Yes",
"side": "BUY",
"amount": 50
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
walletId: '550e8400-e29b-41d4-a716-446655440000',
slug: 'will-arsenal-win-the-202526-english-premier-league',
outcome: 'Yes',
side: 'BUY',
amount: 50
})
};
fetch('https://api.vatic.trading/api/v1/simpleOrders/easyMarketOrder', 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.vatic.trading/api/v1/simpleOrders/easyMarketOrder",
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([
'walletId' => '550e8400-e29b-41d4-a716-446655440000',
'slug' => 'will-arsenal-win-the-202526-english-premier-league',
'outcome' => 'Yes',
'side' => 'BUY',
'amount' => 50
]),
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://api.vatic.trading/api/v1/simpleOrders/easyMarketOrder"
payload := strings.NewReader("{\n \"walletId\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"slug\": \"will-arsenal-win-the-202526-english-premier-league\",\n \"outcome\": \"Yes\",\n \"side\": \"BUY\",\n \"amount\": 50\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.vatic.trading/api/v1/simpleOrders/easyMarketOrder")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"walletId\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"slug\": \"will-arsenal-win-the-202526-english-premier-league\",\n \"outcome\": \"Yes\",\n \"side\": \"BUY\",\n \"amount\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vatic.trading/api/v1/simpleOrders/easyMarketOrder")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"walletId\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"slug\": \"will-arsenal-win-the-202526-english-premier-league\",\n \"outcome\": \"Yes\",\n \"side\": \"BUY\",\n \"amount\": 50\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"orderId": "0xdef...",
"status": "matched",
"latencyS": 0.83,
"order": {
"slug": "will-arsenal-win-the-202526-english-premier-league",
"outcome": "Yes",
"tokenId": "713...",
"side": "BUY",
"amount": 50,
"negRisk": false
}
}Simple Orders
Easy Market Order
The simplest order endpoint. Resolves the token ID from a market slug and outcome name, then places a market order. No token IDs needed. Uses FOK (Fill-or-Kill) by default.
POST
/
api
/
v1
/
simpleOrders
/
easyMarketOrder
Easy market order (slug + outcome)
curl --request POST \
--url https://api.vatic.trading/api/v1/simpleOrders/easyMarketOrder \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"walletId": "550e8400-e29b-41d4-a716-446655440000",
"slug": "will-arsenal-win-the-202526-english-premier-league",
"outcome": "Yes",
"side": "BUY",
"amount": 50
}
'import requests
url = "https://api.vatic.trading/api/v1/simpleOrders/easyMarketOrder"
payload = {
"walletId": "550e8400-e29b-41d4-a716-446655440000",
"slug": "will-arsenal-win-the-202526-english-premier-league",
"outcome": "Yes",
"side": "BUY",
"amount": 50
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
walletId: '550e8400-e29b-41d4-a716-446655440000',
slug: 'will-arsenal-win-the-202526-english-premier-league',
outcome: 'Yes',
side: 'BUY',
amount: 50
})
};
fetch('https://api.vatic.trading/api/v1/simpleOrders/easyMarketOrder', 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.vatic.trading/api/v1/simpleOrders/easyMarketOrder",
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([
'walletId' => '550e8400-e29b-41d4-a716-446655440000',
'slug' => 'will-arsenal-win-the-202526-english-premier-league',
'outcome' => 'Yes',
'side' => 'BUY',
'amount' => 50
]),
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://api.vatic.trading/api/v1/simpleOrders/easyMarketOrder"
payload := strings.NewReader("{\n \"walletId\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"slug\": \"will-arsenal-win-the-202526-english-premier-league\",\n \"outcome\": \"Yes\",\n \"side\": \"BUY\",\n \"amount\": 50\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.vatic.trading/api/v1/simpleOrders/easyMarketOrder")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"walletId\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"slug\": \"will-arsenal-win-the-202526-english-premier-league\",\n \"outcome\": \"Yes\",\n \"side\": \"BUY\",\n \"amount\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vatic.trading/api/v1/simpleOrders/easyMarketOrder")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"walletId\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"slug\": \"will-arsenal-win-the-202526-english-premier-league\",\n \"outcome\": \"Yes\",\n \"side\": \"BUY\",\n \"amount\": 50\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"orderId": "0xdef...",
"status": "matched",
"latencyS": 0.83,
"order": {
"slug": "will-arsenal-win-the-202526-english-premier-league",
"outcome": "Yes",
"tokenId": "713...",
"side": "BUY",
"amount": 50,
"negRisk": false
}
}Authorizations
Required for order endpoints. Obtain your API key from the Vatic dashboard.
Body
application/json
Polymarket market slug.
Case-insensitive outcome name (e.g. Yes, No).
Available options:
BUY, SELL BUY: USDC to spend. SELL: shares to sell.
Optional — validates the market belongs to this event.
Available options:
FOK, FAK Response
Order result
Was this page helpful?
⌘I