GET /swaps
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/arkham/swapsCache cached 1s, never served stale past that windowCost per_row · weight 2 · heavy rate classSource billing creditsDEX swap history, filterable and paginated.
2 credits per row returned; use limit to control spend.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
base | query | str | required | Address (0x…) or entity slug example: binance |
flow | query | strin | out | all | optional | default: all |
timeLast | query | str1h | 24h | 7d | 30d | optional | |
limit | query | int | optional | default: 50 |
offset | query | int | optional | default: 0 |
Response
type: object
data key: swaps
count key: count
pagination: offset
sample: {
"swaps": "array[0]",
"count": "int"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/arkham/swaps?base=binance"