Trades
curl --request GET \
--url https://api.routeur.app/v1/markets/{venue}/{id}/trades \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.routeur.app/v1/markets/{venue}/{id}/trades"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.routeur.app/v1/markets/{venue}/{id}/trades', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.routeur.app/v1/markets/{venue}/{id}/trades"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
{
"venue": "kalshi",
"id": "<string>",
"market_id": "<string>",
"outcome": "<string>",
"taker_action": "buy",
"price_usd": "0.4100",
"quantity": "0.4100",
"executed_at": "2023-11-07T05:31:56Z",
"token": "<string>",
"block": true
}
],
"next_cursor": "<string>"
}{
"error": {
"code": "invalid_parameter",
"message": "Invalid or unsupported query parameter: limit."
}
}{
"error": {
"code": "api_key_required",
"message": "Send an API key in the X-API-Key header or as a Bearer token."
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}History
Trades
Public fills recorded from the venue’s trade feed, newest first. Recording runs every minute; Polymarket fills that the feed served without a market are not included. No account or wallet identity is recorded.
GET
/
v1
/
markets
/
{venue}
/
{id}
/
trades
Trades
curl --request GET \
--url https://api.routeur.app/v1/markets/{venue}/{id}/trades \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.routeur.app/v1/markets/{venue}/{id}/trades"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.routeur.app/v1/markets/{venue}/{id}/trades', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.routeur.app/v1/markets/{venue}/{id}/trades"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
{
"venue": "kalshi",
"id": "<string>",
"market_id": "<string>",
"outcome": "<string>",
"taker_action": "buy",
"price_usd": "0.4100",
"quantity": "0.4100",
"executed_at": "2023-11-07T05:31:56Z",
"token": "<string>",
"block": true
}
],
"next_cursor": "<string>"
}{
"error": {
"code": "invalid_parameter",
"message": "Invalid or unsupported query parameter: limit."
}
}{
"error": {
"code": "api_key_required",
"message": "Send an API key in the X-API-Key header or as a Bearer token."
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
apiKeybearer
Path Parameters
The venue the market is listed on.
Available options:
kalshi, polymarket The venue's market id, such as a Kalshi ticker or a Polymarket market slug.
Pattern:
^[A-Za-z0-9][A-Za-z0-9_.-]{0,199}$Query Parameters
Trades per page, newest first.
Required range:
1 <= x <= 1000The next_cursor from the previous page.
Maximum string length:
1024