Trade fee estimate (legacy)
curl --request POST \
--url https://api.vatic.trading/api/v1/fees/trade-estimate \
--header 'Content-Type: application/json' \
--data '
{
"eventSlug": "btc-updown-5m-1744027500",
"side": "BUY",
"makingAmount": 100,
"takingAmount": 200
}
'import requests
url = "https://api.vatic.trading/api/v1/fees/trade-estimate"
payload = {
"eventSlug": "btc-updown-5m-1744027500",
"side": "BUY",
"makingAmount": 100,
"takingAmount": 200
}
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({
eventSlug: 'btc-updown-5m-1744027500',
side: 'BUY',
makingAmount: 100,
takingAmount: 200
})
};
fetch('https://api.vatic.trading/api/v1/fees/trade-estimate', 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/fees/trade-estimate",
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([
'eventSlug' => 'btc-updown-5m-1744027500',
'side' => 'BUY',
'makingAmount' => 100,
'takingAmount' => 200
]),
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.vatic.trading/api/v1/fees/trade-estimate"
payload := strings.NewReader("{\n \"eventSlug\": \"btc-updown-5m-1744027500\",\n \"side\": \"BUY\",\n \"makingAmount\": 100,\n \"takingAmount\": 200\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.vatic.trading/api/v1/fees/trade-estimate")
.header("Content-Type", "application/json")
.body("{\n \"eventSlug\": \"btc-updown-5m-1744027500\",\n \"side\": \"BUY\",\n \"makingAmount\": 100,\n \"takingAmount\": 200\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vatic.trading/api/v1/fees/trade-estimate")
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 \"eventSlug\": \"btc-updown-5m-1744027500\",\n \"side\": \"BUY\",\n \"makingAmount\": 100,\n \"takingAmount\": 200\n}"
response = http.request(request)
puts response.read_body{
"now": "2025-04-07T12:00:00.000Z",
"event": {
"id": "512345",
"slug": "btc-updown-5m-1744027500"
},
"feeConfig": {
"hasTakerFees": true,
"type": "crypto",
"feeRate": 0.25,
"exponent": 2,
"makerRebate": "20%"
},
"side": "BUY",
"inputs": {
"makingAmount": 100,
"makingAmountUnit": "usdc",
"takingAmount": 200,
"takingAmountUnit": "shares"
},
"averagePrice": 0.5,
"fee": {
"chargedIn": "shares",
"feeEquivalent": 12.5,
"feeInUsdcRaw": 6.25,
"minFeeThresholdUsdc": 0.0001
},
"result": {
"grossShares": 200,
"netShares": 187.5
}
}Fees (Legacy)
Trade Estimate
Calculates the exact taker fee and net outcome for a BUY or SELL trade using the legacy fee formula (fee = feeRate × p^exponent). Provide eventId or eventSlug to identify the event.
POST
/
api
/
v1
/
fees
/
trade-estimate
Trade fee estimate (legacy)
curl --request POST \
--url https://api.vatic.trading/api/v1/fees/trade-estimate \
--header 'Content-Type: application/json' \
--data '
{
"eventSlug": "btc-updown-5m-1744027500",
"side": "BUY",
"makingAmount": 100,
"takingAmount": 200
}
'import requests
url = "https://api.vatic.trading/api/v1/fees/trade-estimate"
payload = {
"eventSlug": "btc-updown-5m-1744027500",
"side": "BUY",
"makingAmount": 100,
"takingAmount": 200
}
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({
eventSlug: 'btc-updown-5m-1744027500',
side: 'BUY',
makingAmount: 100,
takingAmount: 200
})
};
fetch('https://api.vatic.trading/api/v1/fees/trade-estimate', 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/fees/trade-estimate",
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([
'eventSlug' => 'btc-updown-5m-1744027500',
'side' => 'BUY',
'makingAmount' => 100,
'takingAmount' => 200
]),
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.vatic.trading/api/v1/fees/trade-estimate"
payload := strings.NewReader("{\n \"eventSlug\": \"btc-updown-5m-1744027500\",\n \"side\": \"BUY\",\n \"makingAmount\": 100,\n \"takingAmount\": 200\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.vatic.trading/api/v1/fees/trade-estimate")
.header("Content-Type", "application/json")
.body("{\n \"eventSlug\": \"btc-updown-5m-1744027500\",\n \"side\": \"BUY\",\n \"makingAmount\": 100,\n \"takingAmount\": 200\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vatic.trading/api/v1/fees/trade-estimate")
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 \"eventSlug\": \"btc-updown-5m-1744027500\",\n \"side\": \"BUY\",\n \"makingAmount\": 100,\n \"takingAmount\": 200\n}"
response = http.request(request)
puts response.read_body{
"now": "2025-04-07T12:00:00.000Z",
"event": {
"id": "512345",
"slug": "btc-updown-5m-1744027500"
},
"feeConfig": {
"hasTakerFees": true,
"type": "crypto",
"feeRate": 0.25,
"exponent": 2,
"makerRebate": "20%"
},
"side": "BUY",
"inputs": {
"makingAmount": 100,
"makingAmountUnit": "usdc",
"takingAmount": 200,
"takingAmountUnit": "shares"
},
"averagePrice": 0.5,
"fee": {
"chargedIn": "shares",
"feeEquivalent": 12.5,
"feeInUsdcRaw": 6.25,
"minFeeThresholdUsdc": 0.0001
},
"result": {
"grossShares": 200,
"netShares": 187.5
}
}Body
application/json
Available options:
BUY, SELL BUY: USDC you spend. SELL: shares you sell.
BUY: gross shares you receive. SELL: gross USDC you receive.
Polymarket event ID (provide this or eventSlug).
Polymarket event slug (provide this or eventId).
Response
Fee estimate result
Was this page helpful?
⌘I