API Reference
लाइव अवसरों को अपने सिस्टम में जोड़ें। API सिर्फ़ पढ़ने के लिए है: यह मार्केट डेटा देता है और कभी ऑर्डर नहीं लगा सकता या किसी एक्सचेंज अकाउंट को छू नहीं सकता। REST Starter Quant और ऊपर के साथ आता है, WebSocket फ़ीड Pro Trader और ऊपर के साथ। ArbitrageX पर नए हैं? docs से शुरू करें।
Base URL:
https://api.arbitragex.io
क्विकस्टार्ट
1. एक key लें। API keys Starter Quant और ऊपर के साथ आती हैं, ऐसे अकाउंट पर जिसका ईमेल वेरिफ़ाई हो। इसे सेटिंग्स में बनाएं। यह axk_ से शुरू होती है और सिर्फ़ एक बार दिखती है, इसलिए इसे सीधे एक environment variable में रखें, कभी ब्राउज़र में नहीं:
export ARBITRAGEX_KEY="axk_..."
2. अपनी पहली request भेजें। वे लाइव स्पॉट अवसर देखें जो पूरा $5,000 10 bps या उससे ज़्यादा नेट पर भर देते हैं:
curl -H "X-API-Key: $ARBITRAGEX_KEY" \ "https://api.arbitragex.io/v1/opportunities?strategy=spot&size=5000&minNetBps=10"
आपको rows मिलते हैं, यानी अवसर, और delayedMs, यानी वे कितनी देरी से हैं, जो पेड प्लान पर 0 होता है। हर row के फ़ील्ड Opportunities में हैं।
3. अपना पहला webhook पाएं। Custom JSON webhooks Pro Trader और ऊपर के साथ आते हैं। अलर्ट पेज पर एक जोड़ें, Send test दबाएं और उसका signature जांचें, जैसा webhook क्विकस्टार्ट में दिखाया गया है।
ऑथेंटिकेशन
सेटिंग्स में एक key बनाएं। यह एक बार दिखती है और सिर्फ़ hash के रूप में रखी जाती है, इसलिए इसे सुरक्षित रखें और कभी ब्राउज़र में न डालें। खोई हुई key वापस नहीं मिल सकती: उसे revoke करें और नई बनाएं। आप कितनी keys रख सकते हैं यह आपके प्लान पर निर्भर है, जैसा Rate limits में लिखा है। इसे हर request में X-API-Key header में भेजें, websocket upgrade में भी।
X-API-Key के बिना request 401 के साथ ठुकरा दी जाती है: API पेड प्लान के लिए है। Free प्लान के अवसर लॉग इन करने के बाद ऐप में हैं।
Revoke की गई key कुछ सेकंड में काम करना बंद कर देती है, और खुले sockets उसके कुछ देर बाद बंद हो जाते हैं। प्लान खत्म होने पर key भी रुक जाती है, और प्लान वापस आने पर फिर चालू हो जाती है।
Rate limits
हर key की अपनी REST limit होती है, जो प्रति मिनट गिनी जाती है, और खुले WebSocket कनेक्शन की अपनी संख्या। ये दोनों, और एक अकाउंट कितनी keys रख सकता है, प्लान पर निर्भर हैं:
| प्लान | प्रति मिनट requests | Keys | प्रति key WebSocket कनेक्शन |
|---|---|---|---|
| Starter Quant | 60 | 2 | — |
| Pro Trader | 300 | 3 | 3 |
| Prop Syndicate | 600 | 5 | 10 |
एक window घड़ी का एक मिनट है: यह हर मिनट की शुरुआत में फिर से शुरू होती है, आपकी पहली request के एक मिनट बाद नहीं। Limit पार होने पर आपको 429 मिलता है, साथ में Retry-After, यानी अगली window तक के सेकंड।
हर response बताता है कि आप कहां हैं:
X-RateLimit-Limit: हर window में मंज़ूर requests।X-RateLimit-Remaining: इस window में बची requests।X-RateLimit-Reset: window खत्म होने में बचे सेकंड।
429 या 503 पर, फिर से कोशिश करने से पहले Retry-After जितने सेकंड रुकें। Pagination के सैंपल यही करते हैं।
लाइव अवसरों के लिए websocket बेहतर है। यह बदलाव होते ही भेज देता है, और खुलने के बाद एक socket limit में नहीं गिना जाता।
हर endpoint के लिए प्लान
हर प्लान पर हर endpoint क्या देता है। Keys Starter Quant और ऊपर के साथ आती हैं, और बिना key की request Free प्लान मानी जाती है। लिखे गए प्लान से नीचे, request 403 के साथ ठुकराई जाती है या कम मिलता है, जैसा नोट में लिखा है। हर प्लान कितना पीछे तक पढ़ता है, यह प्लान के अनुसार इतिहास में है।
| Endpoint | किस प्लान से | नोट |
|---|---|---|
| /v1/opportunities | हर प्लान | Free: सबसे अच्छे 10 अवसर, 15 मिनट की देरी से। पेड प्लान: हर अवसर, लाइव। |
| /v1/funding | हर प्लान | Free: अभी का रेट। पेड प्लान में हर मार्केट को असल में कितना मिला (realised7dPct, realised30dPct) और size पर hedge भी जुड़ता है। |
| /v1/proof, /v1/proof/at | हर प्लान | प्लान जितना पीछे तक पढ़ता है, नीचे देखें। Free 15 मिनट की देरी से पढ़ता है। |
| /v1/history/{id}, /v1/convergence/{id}, /v1/spread/{id}, /v1/windows/{coin}, /v1/funding/history | Starter Quant | इससे नीचे, 403: {"error":"Forbidden"} |
| /v1/opportunities: coins, maxNetBps, minSizeUsd, hedgeableOnly, networks | Pro Trader | इससे नीचे अनदेखा किया जाता है, जैसे दिया ही न गया हो। |
| /v1/listings | Starter Quant | इससे नीचे खाली। |
| /v1/notices | Starter Quant | इससे नीचे, 403: {"error":"Forbidden"} |
| /v1/premiums | Pro Trader | इससे नीचे, 403: {"error":"Forbidden"} |
| /v1/events/markets, /v1/events/history, /v1/events/holders | Pro Trader | इससे नीचे, 403: {"error":"Forbidden"} |
| /v1/speed, /v1/reports, /v1/liquidations/heatmap | हर प्लान | हर प्लान पर एक जैसा। |
| /v1/liquidations | हर प्लान | Free: 24 घंटे का कुल और सबसे बड़े लिक्विडेशन, 15 मिनट की देरी से। पेड प्लान: लाइव। |
| /v1/liquidations/history | हर प्लान | बंद हुए दिन, प्लान जितना पीछे तक पढ़ता है, नीचे देखें। Free: आज का अब तक का डेटा नहीं, और सबसे बड़े 15 मिनट की देरी से। पेड प्लान में आज का अब तक का डेटा जुड़ता है, और सबसे बड़े लाइव। |
| /v1/liquidations/heatmap/{coin} | हर प्लान | Free: बंद कॉलम, 15 मिनट की देरी से। पेड प्लान में लाइव कॉलम जुड़ता है, और Prop Syndicate में real, यानी असली Hyperliquid लेयर। |
| /v1/liquidations/lending, /v1/liquidations/lending/{coin} | हर प्लान | Free: हर pool जैसा 15 मिनट या उससे पहले पढ़ा गया। पेड प्लान: सबसे नया डेटा। |
| /v1/history/routes, /v1/history/routes/{id}, /v1/history/tape/days, /v1/history/tape/{day} | Starter Quant | इससे नीचे, 403: {"error":"Spread history is on Starter Quant and up."} |
| /v1/liquidations/by-price?window=7d | Starter Quant | हर प्लान पर पिछले 24 घंटे। इससे नीचे, 7 दिन की window 403 देती है, error में Forbidden के साथ। |
| format=csv: /v1/proof, /v1/liquidations/history, /v1/liquidations/by-price | Pro Trader | इससे नीचे, 403: {"error":"CSV export is on Pro Trader and up."} |
| /v1/events/proof | Pro Trader | इससे नीचे खाली। |
| /v1/stream | Pro Trader | इससे नीचे, 403: {"error":"The WebSocket feed is on Pro Trader and up."} |
| /v1/stream?topic=liquidations | Pro Trader | इससे नीचे, 403: {"error":"The liquidation stream is not on this plan."} |
| /v1/liquidations/radar | Prop Syndicate | इससे नीचे, 403: {"error":"The pre-squeeze radar is on Prop Syndicate and up."} |
प्लान के अनुसार इतिहास
तीन स्टोर इतिहास रखते हैं, हर एक की हर प्लान पर अपनी पहुंच है, इसलिए जिस endpoint को आप कॉल करते हैं उसकी row पढ़ें। प्लान की पहुंच से पुराना कुछ भी उस पर नहीं लौटता।
| डेटा | Free | Starter Quant | Pro Trader | Prop Syndicate |
|---|---|---|---|---|
ट्रैक रिकॉर्ड और सेव किए गए अवसर: /v1/proof, /v1/spread/:id | 14 दिन | 30 दिन | सब रखा जाता है | सब रखा जाता है |
Spread tape: /v1/history/routes | — | 30 दिन | 365 दिन | 365 दिन |
लिक्विडेशन इतिहास, बंद UTC दिन: /v1/liquidations/history | 30 दिन | 90 दिन | 365 दिन | 365 दिन |
- सब रखा जाता है का मतलब है ट्रैक रिकॉर्ड में जो कुछ है। यह अपनी सबसे पुरानी rows तभी हटाता है जब इसका स्टोरेज भर जाए।
- Spread tape किसी भी प्लान पर 365 दिन रखता है, स्टोरेज पहले भर जाए तो कम।
- Free प्लान ट्रैक रिकॉर्ड और सेव किए गए अवसर भी 15 मिनट की देरी से पढ़ता है।
Errors
हर इनकार के साथ एक JSON body आती है जिसमें एक फ़ील्ड होता है, error, सरल अंग्रेज़ी में: कारण, या फिर status का अपना नाम, जैसे Bad Request।
| Status | Body | कब |
|---|---|---|
| 400 | {"error":"Bad Request"} | कोई parameter गलत है या सीमा से बाहर है, जैसे मंज़ूर रकम से बाहर का साइज़ या खराब cursor। |
| 401 | {"error":"Invalid API key."} | Key गलत है, revoke हो चुकी है, या उसका प्लान खत्म हो गया है, या वह रुकी हुई है: प्लान की key limit से ज़्यादा होने पर, सबसे नई keys पहले। |
| 403 | {"error":"CSV export is on Pro Trader and up."}{"error":"Forbidden"} | प्लान में यह शामिल नहीं है, और मैसेज बताता है कि किस प्लान में है। हर endpoint के लिए प्लान देखें। |
| 404 | {"error":"Not Found"} | ऐसा कोई path नहीं, या उसमें दिए नाम के तहत कुछ नहीं: कोई अवसर जो कभी दर्ज नहीं हुआ, कोई कॉइन जो heatmap पर या किसी lending pool में नहीं, या कोई मार्केट जो खुला नहीं। |
| 405 | {"error":"Method Not Allowed"} | यह method मंज़ूर नहीं है। हर endpoint GET है, सिवाय POST /v1/proof/at के। |
| 429 | {"error":"Rate limit reached."}{"error":"Too many open sockets for this key."} | Rate limit से ज़्यादा, Retry-After और rate limit headers के साथ। या key के खुले sockets से ज़्यादा, Retry-After के बिना: पहले एक बंद करें। |
| 502 | {"error":"Bad Gateway"} | जिस एक्सचेंज को हम आपके लिए पढ़ते हैं वह पढ़ा नहीं जा सका, सिर्फ़ /v1/events/history और /v1/events/holders पर। थोड़ी देर में फिर कोशिश करें। |
| 503 | {"error":"API keys cannot be checked right now."}{"error":"Service Unavailable"} | अभी keys जांची नहीं जा सकतीं, Retry-After: 30 के साथ। फ़ीड भरी होने पर WebSocket upgrade को भी 503 मिलता है, error में Service Unavailable के साथ। |
फ़िल्टर करना
GET /v1/opportunities और key वाला /v1/stream ये query parameters लेते हैं। नाम case-sensitive हैं, और जो आप छोड़ देते हैं वह कुछ फ़िल्टर नहीं करता। फ़िल्टर सिर्फ़ उन rows को कम करता है जो आपका प्लान पढ़ता है।
size: पूरे डॉलर, 100 से 10,00,000। वे अवसर रखता है जो दोनों ऑर्डर बुक से इसे पूरा भर देते हैं, कम से कमminNetBpsनेट पर, या इसके बिना शून्य या ज़्यादा पर। Rows की कीमत दोबारा नहीं लगाई जाती:netUsdमें अब भी स्टैंडर्ड साइज़ होते हैं। सीमा से बाहर होने पर 400।minNetBps: bps में कम से कम नेट,sizeपर, या इसके बिना $1,000 पर। यह नेगेटिव हो सकता है।maxNetBps: bps में ज़्यादा से ज़्यादा नेट, ताकि जो सच होने के लिए बहुत अच्छा लगे उसे छोड़ा जा सके। 0 या ज़्यादा, वरना 400।strategy: एक ट्रेड प्रकार, जैसा Types में है।allमेंbasisशामिल नहीं होता, जो सिर्फ़ नाम से मांगने पर आता है। कोई भी फ़िल्टर न हो तो हर अवसर आता है,basisभी;strategyके बिना कोई और फ़िल्टरallमाना जाता है।networks: chains की comma वाली सूची, जैसेTRC20,SOL, ज़्यादा से ज़्यादा 200 नाम, हर एक ज़्यादा से ज़्यादा 40 अक्षर का। सिर्फ़ वे अवसर जो अपना कॉइन इनमें से किसी एक पर भेजते हैं, इसलिए बिना नेटवर्क वाला अवसर कोई फ़िल्टर पार नहीं करता।hedgeableOnly=true: सिर्फ़ वे अवसर जिनके कॉइन को ट्रांसफ़र के दौरान शॉर्ट किया जा सके।minWindowSec: सिर्फ़ वे अवसर जो आमतौर पर कम से कम इतने सेकंड खुले रहते हैं।includeNoHistory:minWindowSecके साथ, क्या ऐसा अवसर पास हो जिसकी अभी कोई window history नहीं है। डिफ़ॉल्ट रूप सेtrue।
curl -H "X-API-Key: $ARBITRAGEX_KEY" \ "https://api.arbitragex.io/v1/opportunities?strategy=spot_perp&size=25000&minNetBps=5&maxNetBps=200&networks=TRC20,SOL&minWindowSec=60&includeNoHistory=false"
पेजिनेशन
लंबी सूचियां पेजों में आती हैं। पेज साइज़ के लिए limit भेजें और अगले पेज के लिए cursor को पिछले पेज के next पर सेट करें, बाकी parameters वही रखें। आखिरी पेज पर next null होता है। format=csv के साथ, अगला cursor X-Next-Cursor header में होता है।
| Endpoint | डिफ़ॉल्ट | अधिकतम |
|---|---|---|
| /v1/proof | 50 | 500 |
| /v1/events/proof | 50 | 500 |
| /v1/history/routes | 500 | 2,000 |
| /v1/history/routes/{id} | 1,000 | 5,000 |
| /v1/events/markets | 25 | 50 |
एक loop जो हर पेज पढ़ता है और rate limits खत्म होने तक रुकता है:
import os, time, requests
KEY = os.environ["ARBITRAGEX_KEY"]
def get(path, params):
"""One request, waiting out Retry-After on 429 and 503."""
while True:
res = requests.get("https://api.arbitragex.io" + path, params=params,
headers={"X-API-Key": KEY}, timeout=10)
if res.status_code in (429, 503):
time.sleep(int(res.headers.get("Retry-After", "1")))
continue
res.raise_for_status()
return res.json()
# Every Verified row of the track record your plan reads, 500 at a time.
params = {"verified": "true", "limit": 500}
while True:
page = get("/v1/proof", params)
for row in page["rows"]:
print(row["id"], row["peakNetBps"], row["closedMs"])
if not page["next"]:
break
params["cursor"] = page["next"] # same filters, next pageOpenAPI
पूरा API एक स्थिर पते पर एक OpenAPI 3.1 document में बताया गया है। इसे Postman, Insomnia या Swagger UI में import करें, या इससे typed client बनाएं। इसमें हर endpoint के साथ नीचे दिए curl, Python और JavaScript उदाहरण हैं।
https://arbitragex.io/openapi.json
# A typed client, for example: npx openapi-typescript https://arbitragex.io/openapi.json -o arbitragex.d.ts openapi-python-client generate --url https://arbitragex.io/openapi.json
अपना AI जोड़ें (MCP)
अपने AI assistant को ArbitrageX पढ़ने दें: Claude या Cursor से सरल शब्दों में पूछें कि आपके साइज़ पर सबसे अच्छे अवसर कौन से हैं, कोई अवसर कैसा रहा, फंडिंग या लिक्विडेशन। इस पते को remote MCP server (Streamable HTTP) के रूप में जोड़ें:
https://arbitragex.io/api/mcp
अपनी API key को Authorization header में bearer token के रूप में इस्तेमाल करें, नीचे YOUR_KEY की जगह। हर tool इसी से API कॉल करता है, इसलिए आपका प्लान, rate limit और इतिहास ठीक REST की तरह लागू होते हैं, और इनकार आपके AI तक API की अपनी error के रूप में पहुंचता है। Keys Starter Quant और उससे ऊपर हर प्लान के साथ आती हैं, ट्रायल भी।
Claude Code, terminal में:
claude mcp add --transport http arbitragex https://arbitragex.io/api/mcp --header "Authorization: Bearer YOUR_KEY"
Cursor, ~/.cursor/mcp.json में (या किसी project में .cursor/mcp.json):
{
"mcpServers": {
"arbitragex": {
"url": "https://arbitragex.io/api/mcp",
"headers": { "Authorization": "Bearer YOUR_KEY" }
}
}
}Claude Desktop, claude_desktop_config.json में, mcp-remote bridge के ज़रिए (Node.js चाहिए):
{
"mcpServers": {
"arbitragex": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://arbitragex.io/api/mcp", "--header", "Authorization:${AUTH_HEADER}"],
"env": { "AUTH_HEADER": "Bearer YOUR_KEY" }
}
}
}Tools, हर एक एक API endpoint, उन्हीं parameters और limits के साथ। find_opportunities और funding_rates limit भी लेते हैं: आपके AI को दी जाने वाली rows, डिफ़ॉल्ट 50 और ज़्यादा से ज़्यादा 500, सूची में ऊपर से।
find_opportunities/v1/opportunitiesroute_history/v1/history/{id}route_convergence/v1/convergence/{id}coin_windows/v1/windows/{coin}funding_rates/v1/fundingfunding_history/v1/funding/historyliquidations/v1/liquidationstrack_record/v1/proofmonthly_reports/v1/reportsnew_listings/v1/listingsexchange_notices/v1/notices
सिर्फ़ पढ़ने के लिए: server मार्केट डेटा पढ़ता है और कभी ऑर्डर नहीं लगा सकता, फ़ंड नहीं भेज सकता या किसी एक्सचेंज अकाउंट को छू नहीं सकता।
Endpoint reference
हर REST endpoint, OpenAPI document से बनाया गया। हर उदाहरण आपकी key को ARBITRAGEX_KEY environment variable से पढ़ता है।
- /v1/opportunities Live opportunities
- /v1/listings New listings
- /v1/notices Exchange notices
- /v1/funding Funding rates
- /v1/funding/history Funding history
- /v1/premiums Regional premiums
- /v1/markets Volume and open interest
- /v1/fees Taker fees
- /v1/reliability Venue reliability
- /v1/speed Venue speed
- /v1/spread/{id} A route's spread over time
- /v1/history/routes/{id} A route's spread and top of book over time
- /v1/history/routes Routes with spread history
- /v1/history/tape/days Spread tape days to download
- /v1/history/tape/{day} One day of the spread tape as a Parquet file
- /v1/proof Track record
- /v1/proof/at Track record rows at given moments
- /v1/history/{id} How often a route opens
- /v1/convergence/{id} How often a hedged route's gap closed
- /v1/windows/{coin} How long a coin's routes stay open
- /v1/reports Monthly reports
- /v1/liquidations Liquidations now
- /v1/liquidations/history Liquidation history by day
- /v1/liquidations/hours One day's liquidations by hour
- /v1/liquidations/by-price Where liquidations happened, by price
- /v1/liquidations/heatmap Coins on the liquidation heatmap
- /v1/liquidations/heatmap/{coin} Estimated liquidation levels
- /v1/liquidations/lending Lending pool positions
- /v1/liquidations/lending/{coin} A coin's lending positions by liquidation price
- /v1/liquidations/radar Pre-squeeze radar
- /v1/events Prediction market routes
- /v1/events/proof Prediction market track record
- /v1/events/markets Prediction market browser
- /v1/events/history A market's odds over time
- /v1/events/holders A Polymarket market's holders and big bets
get/v1/opportunitiesLive opportunities
Every route on the feed right now, as the plan sees it. Reading it often is fine; the stream is better past a few times a minute.
strategyquery:allor one trade type.allleaves outbasisandcalendar, which come only by name. With no query at all every route comes,basisandcalendartoo; any other filter withoutstrategyreads asall.sizequery: Your capital in whole US dollars, from 100 to 1000000: the most put into one trade, per leg. Each route is read at its best size up to it, the size that nets the most dollars past the route's price step, never more thansizenor under $50 or the route's least fill, a tie going to the larger;takengives that size and its net. 100, 1000, 10000, 100000 and 1000000 read the row'snetUsdthere; any other size is priced exactly off the route's fill curve (breakdown.curve). Routes with no such size are left out.minNetBpsquery: Least net in basis points of each route's best size up tosize(default $1,000), astakengives it.maxNetBpsquery: Most net in basis points of each route's best size up tosize, to leave out spreads too wide to be real.minWindowSecquery: Routes whose middle finished window (medianWindowMs, never the average, which a few long windows carry) stayed profitable this many seconds or more.includeNoHistoryquery: WithminWindowSec, whether routes with no finished window yet stay in.trueby default.networksquery: Comma separated chain names: routes whosenetworkis one of them. A route with no network passes no list. At most 200 names of 40 characters.hedgeableOnlyquery:truekeeps routes markedhedgeable.coinsquery: Comma separated coins, any case: routes on one of them only. At most 200 names of 40 characters.excludeCoinsquery: Comma separated coins, any case, never shown. At most 200 names of 40 characters.venuesquery: Comma separated venues, by name or as rows show them, any case: routes both of whose legs are on them. At most 200 names of 40 characters.excludeVenuesquery: Comma separated venues, by name or as rows show them, any case: never a route with a leg on one. At most 200 names of 40 characters.verifiedOnlyquery:trueleaves out routes whosestatusiscaution.minSizeUsdquery: Routes whosemaxSizeUsdis at least this many dollars.maxTransferSecquery: Routes that move nothing, or whosetransferSecis known and at most this. A route with no estimate is left out.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/opportunities"
get/v1/listingsNew listings
Markets first seen in the last 72 hours, newest first, on Starter Quant and up (below it rows is empty), and listings exchanges have announced but don't list yet, also Starter Quant and up (below it upcoming is empty).
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/listings"
get/v1/noticesExchange notices
Delistings, deposit and withdrawal suspensions, maintenance, resumptions, announced listings and other notices still in effect, newest first. Starter Quant and up; below it, 403.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/notices"
get/v1/fundingFunding rates
Every perp's current funding rate, per interval and annualised. On a plan that reads routes live, each row also carries its best hedge at size: the market that holds the other side of the perp on the side its funding pays, priced from both books, with its round trip, funding per day, and its funding and net over the hold asked for (the next payment unless hold says longer), most net first.
sizequery: Dollars on the long leg, 100 to 1000000. Default 1,000. Read only on a plan that reads routes live; other plans ignore it.holdquery: How long each hedge is held: next (until the perp's next payment, the default), day or week. The next payment counts at the rate shown now, later ones at each leg's expected rate.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/funding"
get/v1/funding/historyFunding history
One coin's funding settlements over the last 30 days, oldest first. A stretch we did not record is read back from the venue's own funding history where it has one; what that cannot reach is listed in the market's gaps, never filled in.
coinquery, ज़रूरी: The coin, in any case. One no venue lists gives no rows.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/funding/history?coin=BTC"
get/v1/premiumsRegional premiums
Each coin's premium in each local currency over the USDT price on order book venues, priced through each venue's own USDT book. A premium is what can be captured at a route's smallest fill, never a mid: the local bid over the reference's ask above zero, the local ask under the reference's bid below zero, and 0 when the spreads overlap. Given with each currency's index and its 24 hours of 5-minute means. With coin, that coin's rows only, each with its own 24 hours. Pro Trader and up; below it, 403.
coinquery: One coin, as given, else in capitals.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/premiums"
get/v1/marketsVolume and open interest
One row per market, busiest first, as arrays: [venue, kind, coin, symbol, volumeUsd, oiUsd]. Null where the venue publishes no figure.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/markets"
get/v1/feesTaker fees
Each venue's published base taker fee, the rate net figures are priced at. Re-price a route at your own fees with the formula on /docs/api#fees.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/fees"
get/v1/reliabilityVenue reliability
Each venue's track record over the last 7 and 30 UTC days, from watched time only: uptime, outages, how fresh its prices were, the share of its routes that lasted 30 seconds, and wallet list changes. A figure with too little behind it is null, never a guess.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/reliability"
get/v1/speedVenue speed
How long a change at each venue takes to reach the feed over the last 15 minutes: the median and the slowest 1 in 100, with how each is measured. Measured venues first, quickest first, then the rest by name. The same on every plan, worked out at most every 15 seconds.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/speed"
get/v1/spread/{id}A route's spread over time
Net bps over time for one route. Without a range, the points of a route open now, up to 360, else its latest closed row, up to 72. With from or to, every row in that stretch, at most 2,000 points, keeping the peaks; from after to gives no points.
idpath, ज़रूरी: A route id, URL-encoded.fromquery: Earliest point, unix ms.toquery: Latest point, unix ms.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/spread/BTC%7CBinance%3Aspot%7COKX%3Aperp"
get/v1/history/routes/{id}A route's spread and top of book over time
Every recorded change of one route: gross and net, net at each size, max size, status, and both legs' best bid and ask with their sizes, at most one sample each 250 ms, taken only when something changed. Raw for the last 7 days, then one-minute bars to a year: barMs on each record says which, and a bar's min and max give the range over it. A record holds until the next; ended marks the route going. Stretches not recorded are listed in gaps, each started in samples by an unrecorded record, and nothing holds across one. Starter Quant and up, within the plan's history; below it 403. Kept for as long as disk allows: keptFromMs says how far back. Up to the last full minute, or to the moment of a stop. Follow next as cursor until it is null.
idpath, ज़रूरी: A route id, URL-encoded, at most 160 characters.fromquery: Earliest sample, unix ms.toquery: Latest sample, unix ms.stepquery: Milliseconds, 250 to 86,400,000: the last record of each step only, withminandmaxover the step. Without it, every record.limitquery: Samples per page, 1,000 by default, held to 1 to 5,000.cursorquery:nextfrom the previous page, with the same other parameters.formatquery:json, the default, orcsv, with the next cursor in theX-Next-Cursorheader.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/history/routes/BTC%7CBinance%3Aspot%7COKX%3Aperp?step=60000"
get/v1/history/routesRoutes with spread history
Routes with a recorded minute in the stretch, one coin's when asked, a page at a time. The same plans as /v1/history/routes/{id}.
coinquery: One coin, as given or in capitals, at most 160 characters.fromquery: Earliest minute, unix ms.toquery: Latest minute, unix ms.limitquery: Routes per page, 500 by default, held to 1 to 2,000.cursorquery:nextfrom the previous page.formatquery:json, the default, orcsv.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/history/routes?coin=BTC"
get/v1/history/tape/daysSpread tape days to download
Every closed UTC day of the spread tape kept as a file, oldest first, that starts inside the plan's history. A day is listed once it is closed and moved out, about an hour after midnight UTC. Raw samples for 7 days, then one-minute bars to a year, for as long as disk allows: barMs says which. The same plans as /v1/history/routes/{id}.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/history/tape/days"
get/v1/history/tape/{day}One day of the spread tape as a Parquet file
The whole day, every route, as one Parquet file (application/vnd.apache.parquet), sorted by route, then time, with statistics on route and t so a reader filtering one route reads only its pages. Columns: route, coin, strategy, buyVenue, sellVenue, t, status, barMs, the 16 figures named as in the CSV, then the bars' lows (minGrossBps to minNetUsd1000000) and highs (maxGrossBps to maxNetUsd1000000), null on raw samples. Figures to the cent (gross, net, net USD, max size and their lows and highs) are DECIMAL(18, 2), prices and sizes doubles, each exactly as recorded. A gap starts with an unrecorded row. A raw day runs to many gigabytes, so one byte range is served (Range, answered 206 with Content-Range); resume with If-Range set to the ETag, as a raw day becomes minute bars at 7 days under the same URL and a changed file is then sent whole. The same plans as /v1/history/routes/{id}, within the plan's history.
daypath, ज़रूरी: A UTC day, YYYY-MM-DD, as listed by /v1/history/tape/days.
curl -sf -C - -H "X-API-Key: $ARBITRAGEX_KEY" -o 2026-11-07.parquet "https://api.arbitragex.io/v1/history/tape/2026-11-07"
get/v1/proofTrack record
Closed opportunities that lasted at least 30 seconds, newest first unless sorted otherwise, with a cursor for the next page: what each route opened at, closed at and how long it lived. As far back as the plan reads; the free plan is 15 minutes behind. With format=csv (Pro Trader and up), the same page as CSV, one closed route a line.
limitquery: Rows per page, 50 by default, held to 1 to 500.fromquery: Earliest close, unix ms.toquery: Latest close, unix ms.coinquery: One coin, as given or in capitals.buyquery: The venue bought on, exact. Only withsell.sellquery: The venue sold on, exact. Only withbuy: the pair in that direction.strategyquery: A comma list of trade types or Opportunities tabs, keeping rows any of them takes: aStrategy, orarb(a price gap: the coin moves between exchanges, a triangle on one exchange, or both legs closed where they are once the two prices come back together),funding(held for funding) orexpiry(held to a future's expiry), asspot,triangularorarb. Tabs that were are still taken:quick(Arb's spot transfers and triangles),meet(Arb's hedges and margin sells, closed where they are) andinstant(triangles). A spot route with a margin sell is inmeet, every other spot route inquick. Any other name is 400.minNetBpsquery: Rows whose typical net (halfway between open and close net) is at least this, in bps. Rows without both ends are left out.verifiedquery:trueleaves out rows whosestatusiscaution.sortquery:ended, the default,net(the most dollars halfway between open and close net at a logged size, $100, $1,000 or $10,000, up tosize),size(the smaller of open and close size),lived,coin,routeorstatus. Rows without a net or size come last.sizequery: Your capital in USD, the most thenetorder reads each row at. $10,000 by default.dirquery:desc, the default, orasc.cursorquery:nextfrom the previous page, with the samesort,sizeand filters.formatquery:json, the default, orcsv, with the next cursor in theX-Next-Cursorheader.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/proof?limit=100&verified=true"
post/v1/proof/atTrack record rows at given moments
For each route and moment asked, the closed track record row that moment falls in, in the order asked, or null where none does: to match your own alerts to how each route ended. A read like the others, sent as a body because route ids hold characters a query would have to escape. The same plans as /v1/proof.
curl -s -X POST -H "X-API-Key: $ARBITRAGEX_KEY" -H "Content-Type: application/json" -d '{"items":[{"id":"BTC|Binance:spot|OKX:perp","atMs":1793000000000}]}' "https://api.arbitragex.io/v1/proof/at"get/v1/history/{id}How often a route opens
One route over the last 30 days, within the plan's history and delay: how many times it opened and lasted 30 seconds or more, how long the middle one lasted, at which UTC hours they opened, on how many of the last 7 days it was seen, and, while it is live, each perp leg's funding as forecast and as paid.
idpath, ज़रूरी: A route id, URL-encoded, at most 160 characters.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/history/BTC%7CBinance%3Aspot%7COKX%3Aperp"
get/v1/convergence/{id}How often a hedged route's gap closed
One spot-perp or perp-perp route that undoes each leg where it is, within the plan's history and delay: how many times its gap opened (the route was published, so it paid the whole round trip at some size), how many of those closed, how long closing took and how far the gap widened first. Closed means the buy leg's bid reached the sell leg's ask at the smallest fill, so undoing both legs cost no more than the exit fees. One whose books went unread for over 3 minutes, or that was open when the engine stopped, is counted as unobserved, not closed. Counting starts when the route was first watched, and the stretches no one watched, every stop and any stretch a crash left unsaved, are listed from the coverage ledger. The share that closed counts each opening only for as long as it was watched, so unwatched time never counts as the gap staying open. Times and widening need 5 closes, the share 5 openings.
idpath, ज़रूरी: A route id, URL-encoded, at most 160 characters.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/convergence/BTC%7CBinance%3Aspot%7COKX%3Aperp"
get/v1/windows/{coin}How long a coin's routes stay open
How long the coin's last finished windows stayed profitable, on average, with their average peak, over every route of the coin and for each route with a finished window, live or not, most samples first. The figures on each live row, for one coin. The free plan sees none newer than its delay.
coinpath, ज़रूरी: The coin, as given, else in capitals.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/windows/BTC"
get/v1/reportsMonthly reports
Each UTC month's Verified track record rows that lasted 30 seconds or more, summed: signals, days, coins and pairs, average net and lifetime, by trade type, and the top pairs and coins. Newest first; a month is listed an hour after it ends. The same on every plan.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/reports"
get/v1/liquidationsLiquidations now
Liquidations as each exchange publishes them: totals over the last 1, 4, 12 and 24 hours by venue and coin, the largest of the last 24 hours, the latest, and what each exchange's feed covers. The free plan gets the 24-hour totals and the largest, 15 minutes behind, and no latest; Starter Quant and up get every window live.
coinquery: One coin.venuequery: One exchange, as named here, in any case.sidequery:all, the default,longorshort: the position liquidated.minUsdquery: Liquidations of at least this many dollars.limitquery: How many of the latest to return, 50 by default, held to 1 to 200; it also capslargest, which is at most 20.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/liquidations?coin=BTC"
get/v1/liquidations/historyLiquidation history by day
Each closed UTC day's liquidations as the exchanges published them, oldest first, as far back as the plan reads (the free plan 30 days, Starter Quant 90, Pro Trader and up 365; this is liquidation history only, not the track record or spread history), with today so far and the largest since counting began. A day the engine did not run is absent. With format=csv, the closed days alone.
coinquery: One coin, in any case.venuequery: One exchange, as named here, in any case. With a coin, the coin at that exchange.daysquery: Closed days back, held to 1 to the plan's reach, which is the default.formatquery:json, the default, orcsv.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/liquidations/history?coin=BTC"
get/v1/liquidations/hoursOne day's liquidations by hour
One UTC day's liquidations as the exchanges published them, hour by hour, for every coin or one, at every exchange or one. Any closed day the plan's history reaches, once it has been closed 15 minutes on the free plan, and today so far on Starter Quant and up. Each hour's figures add up to the day's in history.
dayquery, ज़रूरी: The UTC day, YYYY-MM-DD.coinquery: One coin, in any case.venuequery: One exchange, in any case.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/liquidations/hours?day=2026-11-15&coin=BTC"
get/v1/liquidations/by-priceWhere liquidations happened, by price
One coin's liquidations summed by the price each exchange published (bankruptcy or fill price), at every exchange or one, over the last 24 hours or 7 days, in the smallest 1, 2 or 5 step that gives at most 60 buckets. Liquidations that happened, never an estimate.
coinquery, ज़रूरी: The coin, in any case.venuequery: One exchange, as named here, in any case. Every exchange when absent.windowquery:24h, the default, or7d: the last 6 closed UTC days and today so far, on Starter Quant and up.formatquery:json, the default, orcsv.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/liquidations/by-price?coin=BTC"
get/v1/liquidations/heatmapCoins on the liquidation heatmap
The coins whose estimated liquidation levels are modelled, most open interest first. The same on every plan.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/liquidations/heatmap"
get/v1/liquidations/heatmap/{coin}Estimated liquidation levels
Where one coin's open positions would be liquidated, estimated from open interest and each exchange's leverage tiers, over 24 hours in 5-minute columns or 7 days in hourly ones. A model, never data an exchange publishes. The free plan gets the closed columns 15 minutes behind; Starter Quant and up add the live column; Prop Syndicate adds real, the liquidation prices of the Hyperliquid accounts read.
coinpath, ज़रूरी: A coin from /v1/liquidations/heatmap.rangequery:24h, the default, or7d.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/liquidations/heatmap/BTC"
get/v1/liquidations/lendingLending pool positions
The lending pools read, Aave v3, Compound v3 and Morpho Blue on Ethereum, Arbitrum and Base, each with its last block and how complete its borrower list is, and the collateral, debt and positions their borrowers hold in each coin, most collateral first. Real positions read from chain, not an estimate. The free plan gets each pool as read 15 minutes ago or more; Starter Quant and up the latest read.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/liquidations/lending"
get/v1/liquidations/lending/{coin}A coin's lending positions by liquidation price
One coin's borrower positions across the lending pools, summed by the price of the coin that liquidates them, in rows from half to twice its price, with those already liquidatable, those past the rows, and those no price of the coin alone liquidates. long is an account liquidated as the coin falls, holding more of it as collateral than it owes; short, one liquidated as it rises, owing more of it than its collateral in it covers. The same plans as /v1/liquidations/lending.
coinpath, ज़रूरी: The coin.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/liquidations/lending/ETH"
get/v1/liquidations/radarPre-squeeze radar
Large clusters of real Hyperliquid liquidation prices, each 1% of the coin's open interest there or more, nearest the mark first in hourly ranges. On Prop Syndicate.
coinquery: One coin.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/liquidations/radar"
get/v1/eventsPrediction market routes
Sets of contracts on Polymarket, Polymarket US and Kalshi that cost less after fees than they pay at settlement (payoutPerSet), best net first, on Pro Trader and up (below it the list is empty). Every cross and matrix route has status caution: each exchange settles by its own rules, attached in rules.
kindquery:all, the default, or one route kind.sizequery: Dollars every net is read at, from 100 to 1000000, priced off the route'scurve: keeps routes that net above zero with all of it filled. WithminNetBpsand no size, $1,000.minNetBpsquery: Least net in basis points atsize. A route the size doesn't fill is left out.venuesquery: Comma separated venues, any case, spaces and dashes aside: routes every leg of which is on them. At most 200 names of 40 characters.daysquery: Routes whosedaysis at most this.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/events"
get/v1/events/proofPrediction market track record
Prediction market routes that ended after lasting at least 30 seconds, newest first unless sorted otherwise, with a cursor for the next page, within the plan's history. Pro Trader and up; below it the rows are empty. Kept a year.
limitquery: Rows per page, 50 by default, at most 500.fromquery: Earliest close, unix ms.toquery: Latest close, unix ms.kindquery:all, the default, or one route kind.sortquery:ended, the default, ornet: the most net at close first.cursorquery:nextfrom the previous page, with the samesort.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/events/proof?limit=100"
get/v1/events/marketsPrediction market browser
Every open market on Polymarket, Polymarket US and Kalshi, routes or not, joined into events so each venue's odds for the same outcome stand side by side. Odds are YES's probability, 0 to 1. With group, one event whole; with markets, the events holding those markets. Pro Trader and up; below it, 403.
qquery: Every word in the title, outcomes or questions. At most 100 characters.categoryquery: One category.venuequery: Events on this venue.daysquery: An outcome resolving within this many days.sortquery:volume, the default,closing,moversorgap(the widest gap between two exchanges that pair on any outcome).limitquery: Rows per page, 25 by default, at most 50.cursorquery:nextfrom the previous page.groupquery: One event's id, for all its outcomes.marketsquery: Up to 50<venue>|<market id>, comma separated.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/events/markets?category=crypto&sort=closing"
get/v1/events/historyA market's odds over time
YES's probability over a day, week or month, oldest first: from the venue where it keeps a history, else sampled by us. Pro Trader and up; below it, 403.
venuequery, ज़रूरी: The market's venue.marketquery, ज़रूरी: The market id, as in a quote'smarketId.rangequery:1d,1w, the default, or1m.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/events/history?venue=Kalshi&market=MARKET_ID"
get/v1/events/holdersA Polymarket market's holders and big bets
The top 10 holders of each outcome and the latest 20 bets of $1,000 or more, as Polymarket's public data states them. Pro Trader and up; below it, 403.
marketquery, ज़रूरी: Polymarket's condition id.
curl -s -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/events/holders?market=CONDITION_ID"
अवसर
GET /v1/opportunities वे लाइव rows लौटाता है जो आपका प्लान पढ़ता है, नीचे दिए आकार में। फ़िल्टर इन्हें कम करते हैं: उदाहरण के लिए size=166000 सिर्फ़ वे अवसर रखता है जो इसे पूरा मुनाफ़े पर भर देते हैं। Rows की कीमत आपके साइज़ पर दोबारा नहीं लगाई जाती, इसलिए netUsd में स्टैंडर्ड साइज़ रहते हैं।
{
"rows": [
{
"id": "BTC|Binance:spot|OKX:perp",
"coin": "BTC",
"strategy": "spot_perp",
"buy": { "venue": "Binance", "kind": "spot", "symbol": "BTCUSDT", "price": 68250.1,
"sizeUsd": 41200, "ageMs": 120, "fundingBps8h": null, "nextFundingMs": null,
"url": "https://...", "takerBps": 10, "needs": "Needs USDT on Binance to buy",
"withdrawUsd": null, "transferMin": null, "depth": null },
"sell": { "venue": "OKX", "kind": "perp", "symbol": "BTC-USDT-SWAP", "price": 68471.2,
"sizeUsd": 38900, "ageMs": 240, "fundingBps8h": 1.2, "nextFundingMs": 1793577600000,
"url": "https://...", "takerBps": 5, "needs": "Needs USDT margin on OKX",
"withdrawUsd": null, "transferMin": null, "depth": null },
"grossBps": 32.4,
"netBps": 2.1,
"netUsd": { "100": 0.02, "1000": 0.21, "10000": 1.6, "100000": null, "1000000": null },
"maxSizeUsd": 21400,
"exitBps": 6.2,
"transfer": "not_needed",
"network": null,
"status": "verified",
"reasons": [],
"firstSeenMs": 1793570209670,
"updatedMs": 1793570229670,
"spark": [2.0, 2.1],
"depthAgeMs": 240,
"avgWindowMs": 41000,
"avgPeakNetBps": 3.4,
"windowSamples": 12,
"coinAvgWindowMs": 38000,
"coinAvgPeakNetBps": 4.1,
"coinWindowSamples": 87,
"settle": "close",
"fundingNext8hBps": 1.2,
"fundingNextMs": 1793577600000,
"tradfi": false,
"bestSizeUsd": 15000,
"bestNetUsd": 1.95
}
],
"delayedMs": 0
}फंडिंग
GET /v1/funding हर पर्प का मौजूदा फंडिंग रेट लौटाता है। लाइव प्लान पर हर row में hedge भी होता है: size पर दूसरा लेग रखने के लिए सबसे अच्छा मार्केट, उसकी round trip, प्रति दिन फंडिंग और मांगे गए hold में उसका नेट।
{ "rows": [ { "coin": "BTC", "venue": "Binance", "symbol": "BTCUSDT", "ratePct": 0.01,
"hours": 8, "aprPct": 10.95, "nextFundingMs": 1793577600000,
"realised7dPct": 0.21, "realised30dPct": 0.88, "settled7d": 21, "settled30d": 90 } ] }फ़ीस
GET /v1/fees हर एक्सचेंज की घोषित टेकर फ़ीस bps में लौटाता है, प्रति फ़िल। नेट आंकड़े बेस रेट इस्तेमाल करते हैं। साइज़ S पर अपनी फ़ीस से नेट निकालने के लिए:
{ "rows": [ { "venue": "Binance", "spotTakerBps": 10, "perpTakerBps": 5 } ] }
fills = 1 if strategy == "spot" else 2 # a hedged route pays again to close
shift = fills * ((paid_buy - mine) + (paid_sell - mine) * (1 + grossBps / 10000))
net = netUsd[S] + S * shift / 10000Spread
GET /v1/spread/:id किसी अवसर का नेट लौटाता है, खुला रहने तक लाइव और बंद होने के बाद जैसा सेव हुआ। id को URL-encode करें। उस रेंज में अवसर का पूरा सेव किया गया इतिहास पढ़ने के लिए unix milliseconds में from या to जोड़ें: ज़्यादा से ज़्यादा 2,000 पॉइंट, सबसे पुराने पहले, peaks बनाए रखते हुए।
curl -H "X-API-Key: $ARBITRAGEX_KEY" \
"https://api.arbitragex.io/v1/spread/BTC%7CBinance%3Aspot%7COKX%3Aperp"
{ "points": [ { "t": 1793570209670, "netBps": 2.1 } ], "historyFromMs": 0 }GET /v1/history/routes/:id spread tape है, Starter Quant और ऊपर पर: किसी अवसर के नेट और दोनों लेग के best bid और ask का हर बदलाव, पिछले 7 दिनों का raw, फिर minute bars में, आपके प्लान के इतिहास के भीतर। CSV के लिए format=csv जोड़ें। विवरण endpoint reference में।
curl -H "X-API-Key: $ARBITRAGEX_KEY" \ "https://api.arbitragex.io/v1/history/routes/BTC%7CBinance%3Aspot%7COKX%3Aperp?step=60000&format=csv"
Spread tape के पूरे दिन फ़ाइलों के रूप में डाउनलोड होते हैं, Starter Quant और ऊपर पर: GET /v1/history/tape/days आपके प्लान के इतिहास में हर बंद UTC दिन की सूची देता है, और GET /v1/history/tape/YYYY-MM-DD उस दिन को हर अवसर की एक Parquet फ़ाइल के रूप में भेजता है, पिछले 7 दिनों के raw samples, फिर minute bars। एक raw दिन कई गीगाबाइट का होता है, इसलिए रुका हुआ डाउनलोड byte range से फिर शुरू होता है। विवरण endpoint reference में।
curl -H "X-API-Key: $ARBITRAGEX_KEY" "https://api.arbitragex.io/v1/history/tape/days" curl -f -C - -H "X-API-Key: $ARBITRAGEX_KEY" -o 2026-11-07.parquet \ "https://api.arbitragex.io/v1/history/tape/2026-11-07"
ट्रैक रिकॉर्ड
GET /v1/proof?limit=50 वे बंद अवसर लौटाता है जो कम से कम 30 सेकंड चले, सबसे नए पहले। limit ज़्यादा से ज़्यादा 500 है। जो अवसर 5 मिनट के भीतर लौट आता है वह अपनी आखिरी row को बढ़ा देता है, इसलिए कोई row वापस ऊपर आ सकती है।
from,to: unix milliseconds, row बंद होने के समय पर।coin: एक कॉइन।buy,sell: एक दिशा में एक प्लेटफ़ॉर्म जोड़ी, हमेशा दोनों, नाम हूबहू।strategy: एक ट्रेड प्रकार।minNetBps: वे rows जिनका सामान्य नेट, खुलने और बंद होने के बीच में, कम से कम इतना हो।verified=true: सिर्फ़ वे rows जिनकाstatusverifiedहो।sort:ended(डिफ़ॉल्ट),net,size,lived,coin,routeयाstatus।dir:desc(डिफ़ॉल्ट) याasc। Cursor के साथ आगे बढ़ते समय वही sort और फ़िल्टर रखें।cursor: पिछले पेज काnextमान। आखिरी पेज परnextnull होता है।
{ "rows": [ { "id": "BTC|Binance:spot|OKX:perp", "coin": "BTC", "strategy": "spot_perp",
"buyVenue": "Binance", "sellVenue": "OKX", "buyKind": "spot", "sellKind": "perp",
"peakNetBps": 4.2, "maxSizeUsd": 21400,
"openNetBps": 3.8, "openSizeUsd": 18200, "closeNetBps": 1.1, "closeSizeUsd": 9600,
"openPricedUsd": 1000, "closePricedUsd": 1000,
"openNetBpsAt": [4, 3.8, null], "closeNetBpsAt": [1, 1.1, null],
"status": "verified", "openedMs": 1793570209670, "closedMs": 1793570389670 } ],
"next": "1793570389670:48121", "historyFromMs": 0 }वही पेज CSV में पाने के लिए format=csv जोड़ें, Pro Trader और ऊपर पर: हर लाइन में एक बंद अवसर, उसके लेग, कब खुला और बंद हुआ, कितनी देर चला, खुलने और बंद होने पर उसका नेट और साइज़, उसका peak, उसका अधिकतम साइज़ और उसका status। अगला cursor X-Next-Cursor header में होता है। कॉलम endpoint reference में।
curl -H "X-API-Key: $ARBITRAGEX_KEY" \ "https://api.arbitragex.io/v1/proof?buy=Binance&sell=OKX&minNetBps=5&verified=true&limit=500&format=csv"
लिक्विडेशन
GET /v1/liquidations कुल, सबसे बड़े और सबसे नए लिक्विडेशन देता है, जैसे हर एक्सचेंज उन्हें प्रकाशित करता है। GET /v1/liquidations/history हर बंद UTC दिन देता है, और GET /v1/liquidations/by-price बताता है कि एक कॉइन के लिक्विडेशन किस कीमत पर हुए, हर एक उतना पीछे तक जितना आपका प्लान पढ़ता है। GET /v1/liquidations/heatmap अनुमानित लिक्विडेशन लेवल वाले कॉइन की सूची देता है, हर एक अपने path पर पढ़ा जाता है; GET /v1/liquidations/lending lending pools में borrowers की असली पोज़िशन देता है; और GET /v1/liquidations/radar असली Hyperliquid लिक्विडेशन कीमतों के बड़े clusters। विवरण endpoint reference में।
CSV के लिए history या by-price में format=csv जोड़ें, Pro Trader और ऊपर पर।
curl -H "X-API-Key: $ARBITRAGEX_KEY" \ "https://api.arbitragex.io/v1/liquidations/history?coin=BTC&format=csv"
WebSocket
Pro Trader और ऊपर पर, X-API-Key header में key के साथ wss://api.arbitragex.io/v1/stream से कनेक्ट करें। वही फ़िल्टर query parameters के रूप में काम करते हैं। आपको हर row का एक snapshot मिलता है, फिर हर बार जब हम मार्केट्स का एक दौर पूरा करते हैं तो बदलावों का एक batch। जो client लगभग 4 सेकंड पीछे रह जाता है वह बंद कर दिया जाता है, और दोबारा कनेक्ट होने पर उसे नया snapshot मिलता है।
import WebSocket from "ws";
const rows = new Map();
function connect() {
const socket = new WebSocket("wss://api.arbitragex.io/v1/stream?minNetBps=10", {
headers: { "X-API-Key": process.env.ARBITRAGEX_KEY },
});
socket.on("message", (data) => {
const message = JSON.parse(data);
if (message.type === "snapshot") {
rows.clear();
for (const row of message.rows) rows.set(row.id, row);
}
if (message.type === "upsert") for (const row of message.rows) rows.set(row.id, row);
if (message.type === "remove") for (const id of message.ids) rows.delete(id);
});
// A refused upgrade (403, 429, 503) also ends here: wait before trying again.
socket.on("close", () => setTimeout(connect, 5000));
socket.on("error", () => {});
}
connect();snapshot:{ type, rows, delayedMs }, हमेशा पहले।upsert:{ type, rows }, नई या बदली हुई rows, एक batch में ज़्यादा से ज़्यादा 50, याfields=coreके साथ 400, जो छोटी rows भेजता है।remove:{ type, ids }, वे rows जो हट गईं।health:{ type, venues, medianLatencyMs }, हर 5 सेकंड।topic=eventsइसकी जगह प्रेडिक्शन मार्केट के अवसर stream करता है, औरtopic=liquidationsलिक्विडेशन। कोई औरtopicयाfieldsमान 400 देता है। दोनों हर 5 सेकंड एकhealthमैसेज भी भेजते हैं, ताकि client शांत stream और बंद stream में फ़र्क कर सके।
Types
strategy:spot,spot_perp,perp_perp,funding_spread,carry,basis,calendarयाtriangular।status:verifiedयाcaution,reasonsमें सरल शब्दों के साथ।transfer:open,unknownयाnot_needed।netUsd: हर साइज़ पर अनुमानित मुनाफ़ा।nullका मतलब है बुक इसे नहीं भर सकतीं।netBps: $1,000 पर लागत के बाद, या सबसे मुनाफ़े वाले साइज़ पर जहां वह छोटा हो या $1,000 पर कुछ नेट न बने, कभी $50 या किसी भी लेग के न्यूनतम ऑर्डर से कम नहीं।breakdown.sizeUsdसाइज़ बताता है।- समय unix milliseconds में हैं। कीमतें प्रति पूरे कॉइन USDT में हैं।
नेट आंकड़े अनुमान हैं, असली फ़िल नहीं। देखें नेट कैसे निकाला जाता है। आप जो कुछ भी automate करते हैं उसकी ज़िम्मेदारी आपकी है।