curl -sS -X POST \
-H "Authorization: Bearer $OXINSIDER_API_KEY" \
'https://api.0xinsider.com/api/v1/trader/{address}/export?format=csv'import requests
url = "https://api.0xinsider.com/api/v1/trader/{address}/export"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.0xinsider.com/api/v1/trader/{address}/export', 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.0xinsider.com/api/v1/trader/{address}/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.0xinsider.com/api/v1/trader/{address}/export"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.0xinsider.com/api/v1/trader/{address}/export")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.0xinsider.com/api/v1/trader/{address}/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "trader_export_job",
"data": {
"job_id": 123,
"status": "running",
"format": "csv",
"total_trades": 4821,
"processed_trades": 1200,
"file_size": null,
"error": null,
"terminal": false,
"next_action": "poll",
"poll_after_s": 5,
"created_at": "2026-09-22T09:00:00Z",
"started_at": "2026-09-22T09:00:04Z",
"ready_at": null,
"failed_at": null,
"expires_at": "2026-09-23T09:00:00Z",
"expired_at": null,
"data_as_of": null,
"cancel_requested_at": null,
"cancelled_at": null,
"attempt": 1,
"max_attempts": 3
},
"meta": {
"request_id": "req_example",
"cached": false,
"cost": 0
}
}Submit a trader export
Create a trader export job in JSON, NDJSON, or CSV format.
curl -sS -X POST \
-H "Authorization: Bearer $OXINSIDER_API_KEY" \
'https://api.0xinsider.com/api/v1/trader/{address}/export?format=csv'import requests
url = "https://api.0xinsider.com/api/v1/trader/{address}/export"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.0xinsider.com/api/v1/trader/{address}/export', 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.0xinsider.com/api/v1/trader/{address}/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.0xinsider.com/api/v1/trader/{address}/export"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.0xinsider.com/api/v1/trader/{address}/export")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.0xinsider.com/api/v1/trader/{address}/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "trader_export_job",
"data": {
"job_id": 123,
"status": "running",
"format": "csv",
"total_trades": 4821,
"processed_trades": 1200,
"file_size": null,
"error": null,
"terminal": false,
"next_action": "poll",
"poll_after_s": 5,
"created_at": "2026-09-22T09:00:00Z",
"started_at": "2026-09-22T09:00:04Z",
"ready_at": null,
"failed_at": null,
"expires_at": "2026-09-23T09:00:00Z",
"expired_at": null,
"data_as_of": null,
"cancel_requested_at": null,
"cancelled_at": null,
"attempt": 1,
"max_attempts": 3
},
"meta": {
"request_id": "req_example",
"cached": false,
"cost": 0
}
}Parameters
| Parameter | Description |
|---|---|
address | The wallet to export: a 0x... address, a Polymarket username, or a trd_ id. Submitting a trd_ id and submitting the bare wallet reach the same job. |
format | json (the default), ndjson, or csv. Any other value returns 400 with error.param set to format. |
| Format | What the file holds |
|---|---|
json | One document with everything in it: export_metadata, trader, summary, pnl, markets, and trades[]. |
ndjson | That same document without the trades on line 1, then one trade object per line after it. |
csv | Flat trade rows only, under an RFC 4180 header. |
markets hold sports and esports markets only, the markets the wallet page lists. trader.product_scope_pnl is the wallet’s sports and esports realized P&L, pnl is that P&L by UTC day, and risk_summary.kelly_fraction is the Kelly fraction of its resolved sports and esports markets. summary and the other risk fields still cover every market of the wallet, and export_metadata.scope_note names each section that does.
export_metadata.pnl_series_status is ready or pending. While it is pending, 0xinsider has not yet computed the wallet’s daily series, and pnl is empty; an empty pnl then does not mean zero. export_metadata.pnl_realized shows how the days add up to trader.product_scope_pnl.realized_pnl: dated_pnl is the sum of the days, and undated_pnl is the part no day carries, such as the rebate share.
Integration API keys and OAuth access tokens need the export scope. A default API key needs no additional scope.
Key response fields
| Field | Meaning |
|---|---|
job_id | Pass this integer to the status route and the download route. |
status | queued, running, ready, or failed. |
total_trades, processed_trades, file_size, error | All null until the worker fills them in. total_trades becomes the file’s trade rows once the worker knows them. |
202 means a new job was queued. A 200 means a job for the same wallet and format was already running or ready, so the response carries that one instead of a second copy.
Quota
Pro gets 20 exports per account in a rolling 24 hours, and 5 per wallet in a rolling hour; Max gets 80 and 20. Both counts are keyed to the account that owns the key, so a second API key on the same account shares them. Going over either cap returns429 with Retry-After set to 3600 and queues nothing.
Example
curl -X POST -H "Authorization: Bearer $OXINSIDER_API_KEY" \
"https://api.0xinsider.com/api/v1/trader/swisstony/export?format=ndjson"
status is ready, and fetch the file from Download a trader export.
What it does not do
- Return the file. The response is the job.
- Start a second job for work already under way. A job for the same wallet and format that is still
queued,running, orready, and has not expired, comes back with200. A job you asked to cancel is never reused, and neither is areadyfile written before October 22, 2026, which holds every market; the submit queues a new one. - Keep a file forever. A job expires 24 hours after it is queued, and a request after that queues a fresh one.
- Accept a bare integer id in the path.
- Give a second API key its own quota. Both caps count against the account that owns the key.
Authorizations
Legacy default or named integration API key, or OAuth 2.1 access token, in the Authorization header as Bearer oxi_sk_live_... or Bearer oxi_at_.... Default keys retain full access; integration keys are limited to their approved read, webhooks, export and usage scopes and expire within 90 days. All credentials share the owner's account limits. Data calls require an active Pro subscription and return live data. A 401 carries WWW-Authenticate: Bearer resource_metadata="https://api.0xinsider.com/.well-known/oauth-protected-resource" (RFC 6750 section 3, RFC 9728).
Headers
Opt into strict query-name validation. The default is compatible: unknown names are ignored and reported in X-Query-Ignored. With strict, an unknown name returns 400 bad_request with error.reason unknown_query_parameter before the handler runs, including when its percent escape is incomplete.
strict Path Parameters
Query Parameters
Was this page helpful?