List trades
curl --request GET \
--url https://api.worm.wtf/trades/import requests
url = "https://api.worm.wtf/trades/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.worm.wtf/trades/', 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.worm.wtf/trades/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.worm.wtf/trades/"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.worm.wtf/trades/")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.worm.wtf/trades/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"pubkey": "8k2LmN4pQr9sTvWxYz1aBc3dEf5gHi6jKl7mNo8pQr9sTv",
"market_condition_id": "7n9G9WfQ2V7d6hM3XK8pQ4LwR2eY6aT1uJ5cB8mN3qPz",
"amount": "45.000000",
"price": "0.67",
"timestamp": 1714300800,
"fee": "0.540000",
"is_maker": false,
"state": "done",
"order": {
"side": "buy",
"amount": "100.000000",
"remaining_amount": "55.000000",
"filled_amount": "45.000000",
"funds": null,
"remaining_funds": null,
"filled_funds": null,
"price": "0.67",
"status": "partially_filled",
"market": {
"condition_id": "7n9G9WfQ2V7d6hM3XK8pQ4LwR2eY6aT1uJ5cB8mN3qPz",
"title": "Will the Atlanta Hawks beat the New York Knicks in the NBA game on April 28, 2026?"
},
"outcome": {
"is_yes": true,
"text": "New York Knicks"
},
"pubkey": "5uA9kQ1dM8rT4yW2nB7cF3pL6zX0vH5sJ2eR9tQ4mNp"
}
}
],
"meta": {
"limit": 50,
"next_cursor": "eyJiZWZvcmVfaWQiOjEyMzQ1fQ"
},
"error": null
}
{
"data": null,
"meta": null,
"error": {
"code": -11,
"slug": "invalid_request_params",
"message": "Validation Error",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -12,
"slug": "authentication_failed",
"message": "Invalid signature",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -14,
"slug": "permission_denied",
"message": "You do not have permission to perform this action.",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -17,
"slug": "throttled",
"message": "Request was throttled.",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -3,
"slug": "internal_error",
"message": "An internal error occurred.",
"details": []
}
}
Trades
List trades
Retrieve your trade fills with optional market filter and pagination.
GET
/
trades
/
List trades
curl --request GET \
--url https://api.worm.wtf/trades/import requests
url = "https://api.worm.wtf/trades/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.worm.wtf/trades/', 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.worm.wtf/trades/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.worm.wtf/trades/"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.worm.wtf/trades/")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.worm.wtf/trades/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"pubkey": "8k2LmN4pQr9sTvWxYz1aBc3dEf5gHi6jKl7mNo8pQr9sTv",
"market_condition_id": "7n9G9WfQ2V7d6hM3XK8pQ4LwR2eY6aT1uJ5cB8mN3qPz",
"amount": "45.000000",
"price": "0.67",
"timestamp": 1714300800,
"fee": "0.540000",
"is_maker": false,
"state": "done",
"order": {
"side": "buy",
"amount": "100.000000",
"remaining_amount": "55.000000",
"filled_amount": "45.000000",
"funds": null,
"remaining_funds": null,
"filled_funds": null,
"price": "0.67",
"status": "partially_filled",
"market": {
"condition_id": "7n9G9WfQ2V7d6hM3XK8pQ4LwR2eY6aT1uJ5cB8mN3qPz",
"title": "Will the Atlanta Hawks beat the New York Knicks in the NBA game on April 28, 2026?"
},
"outcome": {
"is_yes": true,
"text": "New York Knicks"
},
"pubkey": "5uA9kQ1dM8rT4yW2nB7cF3pL6zX0vH5sJ2eR9tQ4mNp"
}
}
],
"meta": {
"limit": 50,
"next_cursor": "eyJiZWZvcmVfaWQiOjEyMzQ1fQ"
},
"error": null
}
{
"data": null,
"meta": null,
"error": {
"code": -11,
"slug": "invalid_request_params",
"message": "Validation Error",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -12,
"slug": "authentication_failed",
"message": "Invalid signature",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -14,
"slug": "permission_denied",
"message": "You do not have permission to perform this action.",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -17,
"slug": "throttled",
"message": "Request was throttled.",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -3,
"slug": "internal_error",
"message": "An internal error occurred.",
"details": []
}
}
Query Parameters
string
Filter trades by market condition id.
integer
default:"50"
Number of records to return. Range: 1-100.
string
Cursor token from a previous response page.
Response
array
Trade rows for authenticated user.
Show Data fields
Show Data fields
string
Public identifier for this fill.
string | null
Market condition id.
string
Trade amount.
string
Trade price.
integer
Trade timestamp.
string | null
Applied trade fee.
boolean
Whether user was maker.
string
Lowercase trade lifecycle name:
created, in_process, done, or failed.object
The order on your side of this fill (maker or taker), in the same shape as rows from List orders:
side, amount, price, status, market, outcome, pubkey, plus funds / remaining_* / filled_* when applicable.object | null
Pagination metadata:
limit reflects the request (default 50), and next_cursor when present is a base64url cursor with a before_id key (keyset pagination on trade id descending). See Pagination. On error responses, meta is null.object | null
null on success. Error object on failed requests.{
"data": [
{
"pubkey": "8k2LmN4pQr9sTvWxYz1aBc3dEf5gHi6jKl7mNo8pQr9sTv",
"market_condition_id": "7n9G9WfQ2V7d6hM3XK8pQ4LwR2eY6aT1uJ5cB8mN3qPz",
"amount": "45.000000",
"price": "0.67",
"timestamp": 1714300800,
"fee": "0.540000",
"is_maker": false,
"state": "done",
"order": {
"side": "buy",
"amount": "100.000000",
"remaining_amount": "55.000000",
"filled_amount": "45.000000",
"funds": null,
"remaining_funds": null,
"filled_funds": null,
"price": "0.67",
"status": "partially_filled",
"market": {
"condition_id": "7n9G9WfQ2V7d6hM3XK8pQ4LwR2eY6aT1uJ5cB8mN3qPz",
"title": "Will the Atlanta Hawks beat the New York Knicks in the NBA game on April 28, 2026?"
},
"outcome": {
"is_yes": true,
"text": "New York Knicks"
},
"pubkey": "5uA9kQ1dM8rT4yW2nB7cF3pL6zX0vH5sJ2eR9tQ4mNp"
}
}
],
"meta": {
"limit": 50,
"next_cursor": "eyJiZWZvcmVfaWQiOjEyMzQ1fQ"
},
"error": null
}
{
"data": null,
"meta": null,
"error": {
"code": -11,
"slug": "invalid_request_params",
"message": "Validation Error",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -12,
"slug": "authentication_failed",
"message": "Invalid signature",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -14,
"slug": "permission_denied",
"message": "You do not have permission to perform this action.",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -17,
"slug": "throttled",
"message": "Request was throttled.",
"details": []
}
}
{
"data": null,
"meta": null,
"error": {
"code": -3,
"slug": "internal_error",
"message": "An internal error occurred.",
"details": []
}
}