curl --request GET \
--url https://api-uat.dimetrades.com/api/events/top-events \
--header 'X-API-Key: <api-key>'import requests
url = "https://api-uat.dimetrades.com/api/events/top-events"
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-uat.dimetrades.com/api/events/top-events', 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-uat.dimetrades.com/api/events/top-events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api-uat.dimetrades.com/api/events/top-events"
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))
}HttpResponse<String> response = Unirest.get("https://api-uat.dimetrades.com/api/events/top-events")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-uat.dimetrades.com/api/events/top-events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"topEvents": [
{
"id": 5454,
"ticker": "KXEQCA60-2026",
"title": "Will there be a 6.0+ magnitude earthquake in California in 2026?",
"status": "open",
"isActive": true,
"isResolved": false,
"isFuture": false,
"seriesId": null,
"showOnTop": true,
"showOnTopUpdatedAt": "2026-07-20T09:14:02.000Z",
"closeAt": "2026-12-31T00:00:00.000Z",
"expectedExpirationAt": null,
"volume": 548,
"totalVolume": null,
"category": {
"id": 7,
"name": "Climate",
"imageUrl": null
},
"markets": [
{
"id": 60497,
"eventId": 5454,
"title": "M6.0+ in California",
"marketDisplayName": null,
"currentPrice": 60,
"status": "open",
"result": null,
"isActive": true,
"provider": "internal",
"maxOrderSize": null,
"positionSizeLimit": null,
"userOpenOrderLimit": null,
"accountabilityLevel": null
}
]
}
]
},
"errors": []
}{
"data": {},
"errors": {
"statusCode": 400,
"error": "RequestValidationError",
"message": "email must match format \"email\"",
"code": 1002,
"explanation": "The request input did not pass validation checks."
}
}{
"data": {},
"errors": {
"statusCode": 500,
"error": "InternalError",
"message": "Internal Server Error",
"code": 1003,
"explanation": "An unexpected error occurred on the server, Please try again later."
}
}Get top events
Returns a small, administrator-curated list of events (default 7) for hero/spotlight placements.
Not paginated. The payload is data.topEvents — a plain array with no
pagination object — unlike every other events listing.
This is the widest events projection. It adds isActive, isResolved,
seriesId, showOnTopUpdatedAt and expectedExpirationAt, and its markets
add three operational fields (isActive, provider and
accountabilityLevel — see TopMarket). maxOrderSize,
positionSizeLimit and userOpenOrderLimit are also present on markets
here, but are not exclusive to this endpoint — GET /events and GET /events/details return them too. It omits isBookmarked, createdAt and
updatedAt.
Note seriesId here is the raw foreign key, whereas GET /events returns an
expanded series object — to get a series title or contract URLs from this
endpoint you must look it up separately.
curl --request GET \
--url https://api-uat.dimetrades.com/api/events/top-events \
--header 'X-API-Key: <api-key>'import requests
url = "https://api-uat.dimetrades.com/api/events/top-events"
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-uat.dimetrades.com/api/events/top-events', 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-uat.dimetrades.com/api/events/top-events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api-uat.dimetrades.com/api/events/top-events"
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))
}HttpResponse<String> response = Unirest.get("https://api-uat.dimetrades.com/api/events/top-events")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-uat.dimetrades.com/api/events/top-events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"topEvents": [
{
"id": 5454,
"ticker": "KXEQCA60-2026",
"title": "Will there be a 6.0+ magnitude earthquake in California in 2026?",
"status": "open",
"isActive": true,
"isResolved": false,
"isFuture": false,
"seriesId": null,
"showOnTop": true,
"showOnTopUpdatedAt": "2026-07-20T09:14:02.000Z",
"closeAt": "2026-12-31T00:00:00.000Z",
"expectedExpirationAt": null,
"volume": 548,
"totalVolume": null,
"category": {
"id": 7,
"name": "Climate",
"imageUrl": null
},
"markets": [
{
"id": 60497,
"eventId": 5454,
"title": "M6.0+ in California",
"marketDisplayName": null,
"currentPrice": 60,
"status": "open",
"result": null,
"isActive": true,
"provider": "internal",
"maxOrderSize": null,
"positionSizeLimit": null,
"userOpenOrderLimit": null,
"accountabilityLevel": null
}
]
}
]
},
"errors": []
}{
"data": {},
"errors": {
"statusCode": 400,
"error": "RequestValidationError",
"message": "email must match format \"email\"",
"code": 1002,
"explanation": "The request input did not pass validation checks."
}
}{
"data": {},
"errors": {
"statusCode": 500,
"error": "InternalError",
"message": "Internal Server Error",
"code": 1003,
"explanation": "An unexpected error occurred on the server, Please try again later."
}
}Authorizations
ISV / partner credential — public half. Required on every request.
Identifies the integration partner (ISV) making the call. Issued by Dime
Trades when the ISV is onboarded and sent on every /partner/* endpoint:
X-API-Key: dt_pk_live_7f3c9a2e5b18
- On the two partner endpoints that create accounts or issue tokens (
POST /partner/customers,POST /partner/customers/login), it is accompanied byX-API-Secretand is the only authentication — there is no user token yet. - On every other partner endpoint it is sent alongside the user's
Authorization: Bearer <token>: the API key says which platform is calling, the bearer token says which user it is calling for.
Credentials are scoped to one or more brands; using a key with a brandId outside that scope returns 403. Staging and production keys are separate.
The key identifies your platform — treat it as a backend credential.
Query Parameters
Max number of events to return (integer). Standardized across all endpoints. Sending limit=abc is rejected.
1 <= x <= 1005
