מתכונים ל-webhook
התראות מראות לכם מה השוק עושה. Webhooks וה-API הם הדרך לפעול על זה, עם הכלים והחשבונות שלכם. אנחנו אף פעם לא סוחרים בשבילכם, לא מחזיקים כספים ולא מבקשים מפתחות API עם הרשאת מסחר.
התחלה מהירה
- בעמוד ההתראות, הוסיפו webhook של JSON מותאם. הוא כלול מ-Pro Trader ומעלה.
- העתיקו את סוד החתימה. הוא מוצג פעם אחת בלבד.
- בדקו את החתימה בכל בקשה בעזרת אחת הדוגמאות תחת בדיקת החתימה.
- לחצו על שליחת בדיקה ובדקו שה-endpoint שלכם מקבל אותה.
- כוונו כלל ליעד. גם ההתראה המוגדרת כברירת מחדל נשלחת אליו כל עוד היא פעילה.
השיבו בכל קוד 2xx תוך 8 שניות. שליחות שנכשלו נשלחות שוב עם אותו id, לכן סננו כפילויות לפיו. כל קטע קוד למטה הורץ מול שליחה חתומה אמיתית. האחריות על כל מה שאתם מבצעים אוטומטית מהאירועים האלה היא שלכם.
כותרות
כל שליחה היא POST לכתובת ה-https שלכם עם הכותרות האלה:
| כותרת | ערך |
|---|---|
| X-ArbitrageX-Event | ה-id של האירוע, זהה ל-id בגוף. ניסיון חוזר שומר עליו, לכן סננו כפילויות לפיו. |
| X-ArbitrageX-Timestamp | שניות unix מהרגע שבו הניסיון הזה נחתם. כל ניסיון חוזר נחתם מחדש, עם חותמת זמן וחתימה חדשות. |
| X-ArbitrageX-Signature | sha256= ואחריו ה-HMAC-SHA256 בהקסדצימלי באותיות קטנות של חותמת הזמן, נקודה והגוף הגולמי. |
| Content-Type | application/json |
| User-Agent | ArbitrageX-Webhooks/1.0 |
בדיקת החתימה
כל בקשה נושאת X-ArbitrageX-Timestamp ו-X-ArbitrageX-Signature, שהוא sha256= ועוד ה-HMAC-SHA256 בהקסדצימלי של timestamp.rawBody, עם סוד החתימה המלא כמפתח, כולל whsec_. בדקו אותה על הבייטים הגולמיים, לפני הפענוח, כי JSON שפוענח וקודד מחדש לא יתאים, והשוו בזמן קבוע. דחו חותמות זמן שרחוקות יותר מ-5 דקות מעכשיו, כדי למנוע שליחה חוזרת. כל דוגמה למטה עושה את כל זה.
import { createHmac, timingSafeEqual } from "node:crypto";
export function verify(rawBody, headers, secret) {
const ts = headers["x-arbitragex-timestamp"];
if (!(Math.abs(Date.now() / 1000 - Number(ts)) <= 300)) return false;
const expected =
"sha256=" + createHmac("sha256", secret).update(`${ts}.${rawBody}`).digest("hex");
const given = Buffer.from(String(headers["x-arbitragex-signature"]));
const wanted = Buffer.from(expected);
return given.length === wanted.length && timingSafeEqual(given, wanted);
}וקטור בדיקה
לפני שעולים לאוויר, בדקו את הקוד שלכם מול הדוגמה הזו: חתימה של חותמת הזמן והגוף הגולמי שלמטה עם הסוד הזה חייבת לתת את החתימה שלמטה. הסוד מיועד לעמוד הזה בלבד. חותמת הזמן ישנה, כך שבדיקת 5 הדקות שלכם תדחה אותה: בדקו את שלב ה-HMAC בנפרד.
whsec_docsExampleOnly0000000000000000000000000000
1793707200
{"id":"evt_0f2a4c6e8b0d2f4a6c8e0b2d","type":"alert.test","test":true,"sentAt":"2026-11-03T12:00:00.000Z","rule":null,"window":null,"opportunity":{"id":"TEST|TestBuy:spot|TestSell:spot","coin":"TEST","strategy":"spot","buy":{"venue":"TEST BUY","kind":"spot","symbol":"TESTUSDT","price":1,"sizeUsd":1000,"ageMs":0,"fundingBps8h":null,"nextFundingMs":null,"takerBps":25,"needs":"","withdrawUsd":null,"transferMin":null,"depth":null,"url":"https://arbitragex.io/docs#webhooks"},"sell":{"venue":"TEST SELL","kind":"spot","symbol":"TESTUSDT","price":1.01,"sizeUsd":1000,"ageMs":0,"fundingBps8h":null,"nextFundingMs":null,"takerBps":25,"needs":"","withdrawUsd":null,"transferMin":null,"depth":null,"url":"https://arbitragex.io/docs#webhooks"},"grossBps":100,"netBps":50,"netUsd":{"100":0.5,"1000":5,"10000":null,"100000":null,"1000000":null},"maxSizeUsd":1000,"exitBps":null,"transfer":"not_needed","network":null,"status":"verified","reasons":["TEST event, not market data"],"firstSeenMs":1793707200000,"updatedMs":1793707200000,"spark":[]},"routeId":"TEST|TestBuy:spot|TestSell:spot","links":[],"apiVersion":"2026-11-04","appUrl":"https://arbitragex.io/app/alerts","atSize":{"sizeUsd":1000,"netUsd":5,"netBps":50,"myTakerBps":null,"coins":null,"avgBuyPrice":null,"avgSellPrice":null,"parts":null,"lockedBps":null,"forecastBps":null,"forecast":null,"marginSell":false,"borrow":null,"hold":null,"capitalUsd":1000}}sha256=d062e683f11aa8bca4086d8d45ebe4ba6bcfc4e6457604f12c733083be7eeea8
שדות משותפים
לכל אירוע יש את השדות האלה, לצד השדות שלו. השמות והסדר שלהם לא משתנים לעולם, ושדות חדשים מתווספים רק אחרי כל השאר.
id: ה-id של האירוע, נשמר בניסיונות חוזרים.type: אחד מהסוגים שלמטה.test:trueרק משליחת בדיקה.sentAt: מתי הניסיון הזה נשלח, כזמן ISO 8601 ב-UTC.rule: הכלל שהתאים, כ-idו-name, עם ה-iddefaultעבור התראת ברירת מחדל. null כשאין כלל ששולח אותו.routeId: ה-id של ההזדמנות כפי שה-API משתמש בו, או null כשאין הזדמנות.links: עמודי המסחר שההתראה מפנה אליהם, כל אחד עםside,venueו-url.apiVersion: הגרסה של ה-payload הזה, כרגע2026-11-04.appUrl: העמוד של ההתראה באפליקציה.atSize: ב-opportunity.alert,listing.alertו-alert.testבלבד, הנטו בגודל שלפיו הכלל שפט אותה, כ-sizeUsd,netUsdו-netBps.
אירועים
כל סוג ש-webhook מותאם יכול לקבל, עם המסלול שהוא דורש וגוף לדוגמה שנבנה באותו קוד כמו שליחה אמיתית. webhook מותאם זמין מ-Pro Trader ומעלה, וחלק מהסוגים דורשים מסלול גבוה יותר. הנתונים בדויים.
- opportunity.alert
- opportunity.closed
- listing.alert
- position.alert
- notice.alert
- prediction.alert
- prediction.signal
- premium.alert
- liquidation.alert
- liquidation.cluster
- positioning.alert
- wallet.alert
- watch.alert
- polymarket.alert
- consensus.alert
- alert.test
opportunity.alertPro Trader ומעלה
opportunity.alert: הזדמנות התאימה לכלל או להתראה המוגדרת כברירת מחדל. rule.id הוא default עבור ההתראה המוגדרת כברירת מחדל.
{
"id": "evt_3f9a1c7e2b8d4f6a0c5e9b1d",
"type": "opportunity.alert",
"test": false,
"sentAt": "2026-11-03T12:00:00.000Z",
"rule": {
"id": "6f1c2b9e-4d3a-4e8b-9a7f-2c5d8e1b0a34",
"name": "BTC over 0.15%"
},
"window": {
"sizeUsd": 1000,
"openMs": 95000,
"avgWindowMs": 240000,
"avgPeakNetBps": 22.1,
"windowSamples": 7
},
"opportunity": {
"id": "BTC|Binance:spot|OKX:spot",
"coin": "BTC",
"strategy": "spot",
"buy": {
"venue": "Binance",
"kind": "spot",
"symbol": "BTCUSDT",
"price": 64000.5,
"sizeUsd": 5000,
"ageMs": 120,
"fundingBps8h": null,
"nextFundingMs": null,
"takerBps": 10,
"needs": "Needs USDT on Binance to buy",
"withdrawUsd": 1.5,
"transferMin": null,
"depth": null,
"url": "https://www.binance.com/en/trade/BTC_USDT"
},
"sell": {
"venue": "OKX",
"kind": "spot",
"symbol": "BTC-USDT",
"price": 64210.25,
"sizeUsd": 5000,
"ageMs": 80,
"fundingBps8h": null,
"nextFundingMs": null,
"takerBps": 8,
"needs": "Needs BTC already on OKX: a spot sale cannot go short",
"withdrawUsd": null,
"transferMin": null,
"depth": null,
"url": "https://www.okx.com/trade-spot/btc-usdt"
},
"grossBps": 32.7,
"netBps": 18.4,
"netUsd": {
"100": 0.18,
"1000": 1.84,
"10000": 12.5,
"100000": null,
"1000000": null
},
"maxSizeUsd": 12345.6,
"exitBps": null,
"transfer": "open",
"network": "BTC",
"status": "verified",
"reasons": [],
"firstSeenMs": 1793707110000,
"updatedMs": 1793707110000,
"spark": [
17.9,
18.4
],
"avgWindowMs": 240000,
"medianWindowMs": 240000,
"windowSamples": 7
},
"routeId": "BTC|Binance:spot|OKX:spot",
"links": [
{
"side": "buy",
"venue": "Binance",
"url": "https://www.binance.com/en/trade/BTC_USDT"
},
{
"side": "sell",
"venue": "OKX",
"url": "https://www.okx.com/trade-spot/btc-usdt"
}
],
"apiVersion": "2026-11-04",
"appUrl": "https://arbitragex.io/app?t=arb&route=BTC%7CBinance%3Aspot%7COKX%3Aspot",
"atSize": {
"sizeUsd": 1000,
"netUsd": 1.84,
"netBps": 18.4,
"myTakerBps": null,
"coins": null,
"avgBuyPrice": null,
"avgSellPrice": null,
"parts": null,
"lockedBps": null,
"forecastBps": null,
"forecast": null,
"marginSell": false,
"borrow": null,
"hold": null,
"capitalUsd": 1000
}
}opportunity.closedPro Trader ומעלה
opportunity.closed: הזדמנות שקיבלתם עליה התראה נסגרה, אם הכלל מבקש זאת.
{
"id": "evt_8c2e4a6f1b3d5c7e9a0b2d4f",
"type": "opportunity.closed",
"test": false,
"sentAt": "2026-11-03T12:00:00.000Z",
"rule": {
"id": "6f1c2b9e-4d3a-4e8b-9a7f-2c5d8e1b0a34",
"name": "BTC over 0.15%"
},
"closed": {
"alertId": "evt_3f9a1c7e2b8d4f6a0c5e9b1d",
"alertedAt": 1793706600000,
"closedAt": 1793707170000
},
"opportunity": {
"id": "BTC|Binance:spot|OKX:spot",
"coin": "BTC",
"strategy": "spot",
"buy": {
"venue": "Binance",
"kind": "spot",
"symbol": "BTCUSDT",
"price": 64000.5,
"sizeUsd": 5000,
"ageMs": 120,
"fundingBps8h": null,
"nextFundingMs": null,
"takerBps": 10,
"needs": "Needs USDT on Binance to buy",
"withdrawUsd": 1.5,
"transferMin": null,
"depth": null,
"url": "https://www.binance.com/en/trade/BTC_USDT"
},
"sell": {
"venue": "OKX",
"kind": "spot",
"symbol": "BTC-USDT",
"price": 64210.25,
"sizeUsd": 5000,
"ageMs": 80,
"fundingBps8h": null,
"nextFundingMs": null,
"takerBps": 8,
"needs": "Needs BTC already on OKX: a spot sale cannot go short",
"withdrawUsd": null,
"transferMin": null,
"depth": null,
"url": "https://www.okx.com/trade-spot/btc-usdt"
},
"grossBps": 32.7,
"netBps": 18.4,
"netUsd": {
"100": 0.18,
"1000": 1.84,
"10000": 12.5,
"100000": null,
"1000000": null
},
"maxSizeUsd": 12345.6,
"exitBps": null,
"transfer": "open",
"network": "BTC",
"status": "verified",
"reasons": [],
"firstSeenMs": 1793707110000,
"updatedMs": 1793707110000,
"spark": [
17.9,
18.4
],
"avgWindowMs": 240000,
"medianWindowMs": 240000,
"windowSamples": 7
},
"routeId": "BTC|Binance:spot|OKX:spot",
"links": [
{
"side": "buy",
"venue": "Binance",
"url": "https://www.binance.com/en/trade/BTC_USDT"
},
{
"side": "sell",
"venue": "OKX",
"url": "https://www.okx.com/trade-spot/btc-usdt"
}
],
"apiVersion": "2026-11-04",
"appUrl": "https://arbitragex.io/app?t=arb&route=BTC%7CBinance%3Aspot%7COKX%3Aspot"
}listing.alertPro Trader ומעלה
listing.alert: שוק נרשם הרגע למסחר, עם אירוע אחד לכל רישום.
{
"id": "evt_1a3c5e7b9d2f4a6c8e0b1d3f",
"type": "listing.alert",
"test": false,
"sentAt": "2026-11-03T12:00:00.000Z",
"rule": {
"id": "6f1c2b9e-4d3a-4e8b-9a7f-2c5d8e1b0a34",
"name": "BTC over 0.15%"
},
"listing": {
"venue": "Bybit",
"kind": "spot",
"symbol": "NEWUSDT",
"listedMs": 1793707140000,
"coin": "NEW"
},
"window": {
"sizeUsd": 1000,
"openMs": 4000,
"avgWindowMs": null,
"avgPeakNetBps": null,
"windowSamples": 0
},
"opportunity": {
"id": "NEW|Bybit:spot|Gate:spot",
"coin": "NEW",
"strategy": "spot",
"buy": {
"venue": "Bybit",
"kind": "spot",
"symbol": "NEWUSDT",
"price": 0.4812,
"sizeUsd": 5000,
"ageMs": 120,
"fundingBps8h": null,
"nextFundingMs": null,
"takerBps": 10,
"needs": "Needs USDT on Binance to buy",
"withdrawUsd": 1.5,
"transferMin": null,
"depth": null,
"url": "https://www.bybit.com/en/trade/spot/NEW/USDT"
},
"sell": {
"venue": "Gate",
"kind": "spot",
"symbol": "NEW_USDT",
"price": 0.4975,
"sizeUsd": 5000,
"ageMs": 80,
"fundingBps8h": null,
"nextFundingMs": null,
"takerBps": 8,
"needs": "Needs BTC already on OKX: a spot sale cannot go short",
"withdrawUsd": null,
"transferMin": null,
"depth": null,
"url": "https://www.gate.com/trade/NEW_USDT"
},
"grossBps": 338.7,
"netBps": 287.2,
"netUsd": {
"100": 2.87,
"1000": 24.1,
"10000": null,
"100000": null,
"1000000": null
},
"maxSizeUsd": 3410,
"exitBps": null,
"transfer": "open",
"network": "BEP20",
"status": "verified",
"reasons": [],
"firstSeenMs": 1793707110000,
"updatedMs": 1793707110000,
"spark": [
17.9,
18.4
],
"avgWindowMs": null,
"medianWindowMs": null,
"windowSamples": 0
},
"routeId": "NEW|Bybit:spot|Gate:spot",
"links": [
{
"side": "buy",
"venue": "Bybit",
"url": "https://www.bybit.com/en/trade/spot/NEW/USDT"
},
{
"side": "sell",
"venue": "Gate",
"url": "https://www.gate.com/trade/NEW_USDT"
}
],
"apiVersion": "2026-11-04",
"appUrl": "https://arbitragex.io/app?t=arb&route=NEW%7CBybit%3Aspot%7CGate%3Aspot",
"atSize": {
"sizeUsd": 1000,
"netUsd": 24.1,
"netBps": 241,
"myTakerBps": null,
"coins": null,
"avgBuyPrice": null,
"avgSellPrice": null,
"parts": null,
"lockedBps": null,
"forecastBps": null,
"forecast": null,
"marginSell": false,
"borrow": null,
"hold": null,
"capitalUsd": 1000
}
}position.alertPro Trader ומעלה
position.alert: משהו קרה בעסקה במעקב.
{
"id": "evt_5b7d9f1a3c5e7b9d2f4a6c8e",
"type": "position.alert",
"test": false,
"sentAt": "2026-11-03T12:00:00.000Z",
"rule": null,
"position": {
"id": "pos_4e2a9c",
"coin": "ETH",
"strategy": "spot",
"buyVenue": "Kraken",
"sellVenue": "Bybit",
"sizeUsd": 2500,
"entrySpreadBps": 41.2,
"targetBps": 10,
"spreadBps": 9.5,
"estPnlUsd": 7.93,
"estFundingUsd": 0,
"estimated": true,
"routeId": "ETH|Kraken:spot|Bybit:spot",
"buyUrl": "https://pro.kraken.com/app/trade/eth-usdt",
"sellUrl": "https://www.bybit.com/en/trade/spot/ETH/USDT"
},
"alert": {
"kind": "target",
"title": "ETH spread reached your target",
"detail": "Spread 0.10%, at or under your 0.10% target."
},
"routeId": "ETH|Kraken:spot|Bybit:spot",
"links": [
{
"side": "buy",
"venue": "Kraken",
"url": "https://pro.kraken.com/app/trade/eth-usdt"
},
{
"side": "sell",
"venue": "Bybit",
"url": "https://www.bybit.com/en/trade/spot/ETH/USDT"
}
],
"apiVersion": "2026-11-04",
"appUrl": "https://arbitragex.io/app/watchlist?tab=tracking"
}notice.alertPro Trader ומעלה
notice.alert: בורסה הודיעה על הסרה מהמסחר, השעיית הפקדות או משיכות, תחזוקה או רישום למסחר, ב-התראת ברירת מחדל. tracked אומר שזה נוגע לעסקה שאתם עוקבים אחריה.
{
"id": "evt_9d1f3a5c7e9b2d4f6a8c0e1b",
"type": "notice.alert",
"test": false,
"sentAt": "2026-11-03T12:00:00.000Z",
"rule": {
"id": "default",
"name": "Default alert"
},
"notice": {
"seq": 4812,
"venue": "Binance",
"kind": "delisting",
"market": "spot",
"coins": [
"XYZ"
],
"title": "Binance Will Delist XYZ on 2026-11-10",
"url": "https://www.binance.com/en/support/announcement",
"publishedMs": 1793703600000,
"seenMs": 1793703660000
},
"tracked": true,
"keywords": [
"delist"
],
"alert": {
"title": "Binance: delisting XYZ",
"detail": "On a tracked trade's leg."
},
"routeId": null,
"links": [],
"apiVersion": "2026-11-04",
"appUrl": "https://arbitragex.io/app/alerts?tab=fired"
}prediction.alertPro Trader ומעלה
prediction.alert: הזדמנות בשוק תחזיות התאימה לכלל שלכם.
{
"id": "evt_2c4e6a8b0d1f3a5c7e9b1d3f",
"type": "prediction.alert",
"test": false,
"sentAt": "2026-11-03T12:00:00.000Z",
"rule": {
"id": "6f1c2b9e-4d3a-4e8b-9a7f-2c5d8e1b0a34",
"name": "Fed markets"
},
"prediction": {
"id": "cross:5d0c6b1e8f2a4c7d9e3b1a0f6c2d8e4b",
"kind": "cross",
"title": "Fed cuts rates in December?",
"category": "economy",
"legs": [
{
"venue": "Polymarket",
"marketId": "0x8a3f",
"outcome": "Yes",
"side": "yes",
"avgPrice": 0.412,
"size": 500,
"url": "https://polymarket.com/event/fed-decision-in-december",
"rule": 0,
"readMs": null,
"deadlineMs": 1799755200000
},
{
"venue": "Kalshi",
"marketId": "KXFEDDECISION-26DEC-C25",
"outcome": "Cut",
"side": "no",
"avgPrice": 0.569,
"size": 500,
"url": "https://kalshi.com/markets/kxfeddecision",
"rule": 1,
"readMs": 1793707196000,
"deadlineMs": 1797768000000
}
],
"costPerSet": 0.981,
"payoutPerSet": 1,
"netBps": 193.7,
"netUsd": {
"100": 1.94,
"1000": null,
"10000": null,
"100000": null,
"1000000": null
},
"maxSizeUsd": 490.5,
"resolvesMs": 1797163200000,
"latestResolvesMs": 1799755200000,
"days": 40,
"yearlyBps": 1767.5,
"status": "caution",
"rules": [
{
"venue": "Polymarket",
"text": "Resolves Yes if the target range is lowered at the December meeting.",
"source": "federalreserve.gov"
},
{
"venue": "Kalshi",
"text": "Resolves to Cut if the upper bound is lowered at the December meeting.",
"source": "federalreserve.gov"
}
],
"reasons": [
"Two exchanges, each settling by its own rules: read both before trading.",
"Paired by title and resolution date, not by the exchanges."
],
"matrix": null,
"curve": {
"sets": 500,
"legs": [
{
"fee": 0,
"minQty": 1,
"asks": [
[
0.41,
300
],
[
0.415,
200
]
]
},
{
"fee": 0.07,
"minQty": 1,
"asks": [
[
0.565,
500
]
]
}
]
},
"firstSeenMs": 1793706600000,
"updatedMs": 1793707198000,
"checkedMs": 1793707198000
},
"alert": {
"title": "Prediction: Fed cuts rates in December? · +$9.50 (+1.94%) at $491",
"detail": "Buy YES Yes on Polymarket @ $0.4120\nBuy NO Cut on Kalshi @ $0.5690\n500 sets cost $490.50, fees in, and pay $500.00 at settlement\nPaid at resolution in 40 days, +17.68% a year"
},
"routeId": "cross:5d0c6b1e8f2a4c7d9e3b1a0f6c2d8e4b",
"links": [
{
"side": "buy",
"venue": "Polymarket",
"url": "https://polymarket.com/event/fed-decision-in-december"
},
{
"side": "buy",
"venue": "Kalshi",
"url": "https://kalshi.com/markets/kxfeddecision"
}
],
"apiVersion": "2026-11-04",
"appUrl": "https://arbitragex.io/app?m=prediction&route=cross%3A5d0c6b1e8f2a4c7d9e3b1a0f6c2d8e4b",
"atSize": null,
"access": []
}prediction.signalPro Trader ומעלה
prediction.signal: שוק תחזיות זז כפי שהכלל שלכם עוקב אחריו, כמו הסיכויים שלו.
{
"id": "evt_6e8a0c2d4f6b8d0e2a4c6e8a",
"type": "prediction.signal",
"test": false,
"sentAt": "2026-11-03T12:00:00.000Z",
"rule": {
"id": "6f1c2b9e-4d3a-4e8b-9a7f-2c5d8e1b0a34",
"name": "Fed markets"
},
"signal": {
"seq": 918204,
"kind": "odds_move",
"venue": "Kalshi",
"marketId": "KXFEDDECISION-26DEC-C25",
"title": "Fed decision in December",
"outcome": "Cut",
"url": "https://kalshi.com/markets/kxfeddecision",
"prob": 0.47,
"fromProb": 0.39,
"windowMs": 1800000,
"side": null,
"size": null,
"usd": null,
"atMs": 1793707195000
},
"alert": {
"title": "Odds moved: Fed decision in December: Cut",
"detail": "Kalshi · YES 39% → 47% within 30m"
},
"routeId": null,
"links": [],
"apiVersion": "2026-11-04",
"appUrl": "https://arbitragex.io/app/odds"
}liquidation.alertPro Trader ומעלה
liquidation.alert: ליקווידציה התאימה לכלל שלכם, כמו ליקווידציה מעל גודל מסוים.
{
"id": "evt_4f6b8d0a2c4e6f8b0d2a4c6e",
"type": "liquidation.alert",
"test": false,
"sentAt": "2026-11-03T12:00:00.000Z",
"rule": {
"id": "6f1c2b9e-4d3a-4e8b-9a7f-2c5d8e1b0a34",
"name": "BTC liquidations over $1M"
},
"liquidation": {
"seq": 1793707200000000,
"venue": "Binance",
"coin": "BTC",
"contract": "BTCUSDT",
"market": "perp",
"side": "long",
"price": 63950.1,
"size": 23.456,
"valueUsd": 1500036.5,
"exchangeMs": 1793707199600,
"receivedMs": 1793707200000,
"url": "https://arbitragex.io/app/liquidations?coin=BTC"
},
"alert": {
"title": "BTC long liquidated: $1,500,037 on Binance",
"detail": "23.46 BTC at $63,950.10 · BTCUSDT · Nov 3, 11:59 UTC"
},
"routeId": null,
"links": [],
"apiVersion": "2026-11-04",
"appUrl": "https://arbitragex.io/app/liquidations?coin=BTC"
}liquidation.clusterProp Syndicate ומעלה
liquidation.cluster: המחיר מתקרב לאשכול פוזיציות שיעברו ליקווידציה, ממכ"ם טרום-הסקוויז.
{
"id": "evt_8a0c2e4b6d8f0a2c4e6b8d0f",
"type": "liquidation.cluster",
"test": false,
"sentAt": "2026-11-03T12:00:00.000Z",
"rule": {
"id": "6f1c2b9e-4d3a-4e8b-9a7f-2c5d8e1b0a34",
"name": "BTC radar"
},
"cluster": {
"seq": 1793707200000000,
"coin": "BTC",
"side": "long",
"nearPx": 64600,
"farPx": 64100,
"usd": 40250000,
"positions": 37,
"markPx": 65780,
"markMs": 1793707200000,
"distance": 0.0179,
"atr": 0.012,
"reach": 1.49,
"oiUsd": 3100000000,
"oiShare": 0.013,
"readFromMs": 1793706660000,
"readToMs": 1793707198000,
"atMs": 1793707200000,
"url": "https://arbitragex.io/app/liquidations?coin=BTC"
},
"alert": {
"title": "BTC: $40,250,000 of longs liquidate 1.8% below price",
"detail": "37 positions between $64,600.00 and $64,100.00, mark $65,780.00.\n1.3% of Hyperliquid open interest, 1.5x a typical hour's move away.\nRead Nov 3, 11:51 to Nov 3, 11:59 UTC."
},
"routeId": null,
"links": [],
"apiVersion": "2026-11-04",
"appUrl": "https://arbitragex.io/app/liquidations?coin=BTC"
}positioning.alertProp Syndicate ומעלה
positioning.alert: הפוזיציות של הסוחרים המובילים במטבע השתנו כפי שהכלל שלכם עוקב אחריו, כמו היפוך בנטייה שלהם.
{
"id": "evt_1c3e5a7d9f1b3d5f7a9c1e3b",
"type": "positioning.alert",
"test": false,
"sentAt": "2026-11-03T12:00:00.000Z",
"rule": {
"id": "6f1c2b9e-4d3a-4e8b-9a7f-2c5d8e1b0a34",
"name": "ETH lean"
},
"positioning": {
"kind": "flip",
"coin": "ETH",
"url": "https://arbitragex.io/app/wallets/positioning?coin=ETH",
"atMs": 1793707170000,
"longShareUsd": 0.38,
"traders": 212,
"lean": "short",
"prevSinceMs": 1793613600000,
"movePts": null,
"address": null,
"size": null,
"markPx": null,
"liquidationPx": null,
"distance": null,
"valueUsd": null,
"group": null,
"side": null,
"eachUsd": null,
"wallets": null,
"totalUsd": null,
"avgEntryPx": null,
"reachedMs": null
},
"alert": {
"title": "Top traders flipped short on ETH",
"detail": "38% long by size among 212 ranked traders · leaned the other way since Nov 2, 10:00"
},
"routeId": null,
"links": [],
"apiVersion": "2026-11-04",
"appUrl": "https://arbitragex.io/app/wallets/positioning?coin=ETH"
}wallet.alertProp Syndicate ומעלה
wallet.alert: סוחר שאתם עוקבים אחריו פתח, שינה או סגר פוזיציה.
{
"id": "evt_5e7a9c1f3b5d7f9a1c3e5b7d",
"type": "wallet.alert",
"test": false,
"sentAt": "2026-11-03T12:00:00.000Z",
"rule": null,
"wallet": {
"address": "0x7b4a1f0c9d2e3b5a6c8d0e1f2a3b4c5d6e7f8091",
"coin": "BTC",
"kind": "opened",
"size": 2,
"prevSize": 0,
"entryPx": 64000,
"valueUsd": 128000,
"atMs": 1793707195000,
"leverage": 5,
"liquidationPx": 51840
},
"alert": {
"title": "0x7b4a…8091 opened a BTC long",
"detail": "2 BTC at $64,000, about $128,000."
},
"routeId": null,
"links": [],
"apiVersion": "2026-11-04",
"appUrl": "https://arbitragex.io/app/wallets/0x7b4a1f0c9d2e3b5a6c8d0e1f2a3b4c5d6e7f8091"
}watch.alertProp Syndicate ומעלה
watch.alert: ארנק שאתם עוקבים אחריו קיבל או שלח העברה, ב-התראת ברירת מחדל. event.tx הוא null כשה-hash של העסקה לא ידוע.
{
"id": "evt_9a1c3e5b7d9f1a3c5e7b9d1f",
"type": "watch.alert",
"test": false,
"sentAt": "2026-11-03T12:00:00.000Z",
"rule": {
"id": "default",
"name": "Default alert"
},
"wallet": {
"chain": "ethereum",
"address": "0x1111111111111111111111111111111111111111",
"label": "Treasury"
},
"event": {
"tx": "0xabababababababababababababababababababababababababababababababab",
"kind": "token",
"token": "USDC",
"amount": 1000000,
"direction": "out",
"counterparty": "0x2222222222222222222222222222222222222222",
"usd": 1000000,
"atMs": 1793707185000
},
"alert": {
"title": "Treasury sent 1,000,000 USDC",
"detail": "To 0x2222…2222."
},
"routeId": null,
"links": [],
"apiVersion": "2026-11-04",
"appUrl": "https://arbitragex.io/app/alerts?tab=fired"
}polymarket.alertProp Syndicate ומעלה
polymarket.alert: סוחר Polymarket שאתם עוקבים אחריו ביצע עסקה.
{
"id": "evt_3b5d7f9a1c3e5b7d9f1a3c5e",
"type": "polymarket.alert",
"test": false,
"sentAt": "2026-11-03T12:00:00.000Z",
"rule": null,
"trader": {
"address": "0x56687bf447db6ffa42ffe2204a05edaa20f55839",
"market": {
"title": "Fed decision in December",
"outcome": "Yes",
"eventSlug": "fed-decision-in-december",
"condition": "0x8a3f"
},
"url": "https://polymarket.com/event/fed-decision-in-december",
"kind": "opened",
"size": 25000,
"prevSize": 0,
"avgPrice": 0.41,
"valueUsd": 10250,
"atMs": 1793707140000
},
"alert": {
"title": "Polymarket trader 0x5668…5839 bought Yes on Fed decision in December",
"detail": "25,000 shares. Average price $0.41. Worth about $10k."
},
"routeId": null,
"links": [],
"apiVersion": "2026-11-04",
"appUrl": "https://arbitragex.io/app/alerts?tab=fired"
}consensus.alertProp Syndicate ומעלה
consensus.alert: כמה ארנקים שאתם עוקבים אחריהם לקחו את אותו צד במטבע בתוך זמן קצר.
{
"id": "evt_7d9f1b3c5e7a9d1f3b5c7e9a",
"type": "consensus.alert",
"test": false,
"sentAt": "2026-11-03T12:00:00.000Z",
"rule": null,
"consensus": {
"coin": "SOL",
"side": "long",
"wallets": [
"0x1f2e3d4c5b6a79880716253443526170f8e9d0c1",
"0x2a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d",
"0x9c8b7a6f5e4d3c2b1a0f9e8d7c6b5a4f3e2d1c0b"
],
"windowMs": 3600000,
"atMs": 1793707180000
},
"alert": {
"title": "3 wallets you follow went long on SOL",
"detail": "Each added to SOL long within 1h of the others, as last read: 0x1f2e…d0c1, 0x2a3b…4c5d, 0x9c8b…1c0b."
},
"routeId": null,
"links": [],
"apiVersion": "2026-11-04",
"appUrl": "https://arbitragex.io/app/alerts?tab=fired"
}alert.testPro Trader ומעלה
alert.test: משליחת בדיקה, עם "test": true ומטבע מדומה בשם TEST.
{
"id": "evt_0f2a4c6e8b0d2f4a6c8e0b2d",
"type": "alert.test",
"test": true,
"sentAt": "2026-11-03T12:00:00.000Z",
"rule": null,
"window": null,
"opportunity": {
"id": "TEST|TestBuy:spot|TestSell:spot",
"coin": "TEST",
"strategy": "spot",
"buy": {
"venue": "TEST BUY",
"kind": "spot",
"symbol": "TESTUSDT",
"price": 1,
"sizeUsd": 1000,
"ageMs": 0,
"fundingBps8h": null,
"nextFundingMs": null,
"takerBps": 25,
"needs": "",
"withdrawUsd": null,
"transferMin": null,
"depth": null,
"url": "https://arbitragex.io/docs#webhooks"
},
"sell": {
"venue": "TEST SELL",
"kind": "spot",
"symbol": "TESTUSDT",
"price": 1.01,
"sizeUsd": 1000,
"ageMs": 0,
"fundingBps8h": null,
"nextFundingMs": null,
"takerBps": 25,
"needs": "",
"withdrawUsd": null,
"transferMin": null,
"depth": null,
"url": "https://arbitragex.io/docs#webhooks"
},
"grossBps": 100,
"netBps": 50,
"netUsd": {
"100": 0.5,
"1000": 5,
"10000": null,
"100000": null,
"1000000": null
},
"maxSizeUsd": 1000,
"exitBps": null,
"transfer": "not_needed",
"network": null,
"status": "verified",
"reasons": [
"TEST event, not market data"
],
"firstSeenMs": 1793707200000,
"updatedMs": 1793707200000,
"spark": []
},
"routeId": "TEST|TestBuy:spot|TestSell:spot",
"links": [],
"apiVersion": "2026-11-04",
"appUrl": "https://arbitragex.io/app/alerts",
"atSize": {
"sizeUsd": 1000,
"netUsd": 5,
"netBps": 50,
"myTakerBps": null,
"coins": null,
"avgBuyPrice": null,
"avgSellPrice": null,
"parts": null,
"lockedBps": null,
"forecastBps": null,
"forecast": null,
"marginSell": false,
"borrow": null,
"hold": null,
"capitalUsd": 1000
}
}כל השדות מפורטים בתיעוד ה-webhook.
שליחה וניסיונות חוזרים
- השיבו בכל קוד 2xx תוך 8. תשובה איטית יותר נחשבת לכישלון.
- פסק זמן, שגיאת חיבור, 429 או כל 5xx נשלחים שוב, עד 5 ניסיונות בסך הכול, בהמתנה של 5 שניות, 20 שניות, דקה אחת, 5 דקות אחרי כל אחד.
Retry-Afterבשניות יכול להאריך המתנה, עד 5. - כל 4xx אחר לא נשלח שוב, וגם לא 3xx: איננו עוקבים אחרי הפניות, לכן תנו לנו את ה-URL הסופי.
- 8 כישלונות ברצף משהים את היעד ומבטלים את מה שממתין לו. 429 לא נספר לצורך זה, והצלחה אחת מאפסת את הספירה.
- לפני כל ניסיון אנחנו בודקים שוב שהיעד פעיל, שהכלל עדיין קיים, שהמסלול שלכם עדיין כולל את הסוג ושלא מדובר בשעות השקטות שלכם. התראת הזדמנות או רישום שעדיין ממתינה כשההזדמנות כנראה כבר נסגרה נמחקת כפגת תוקף.
- לכל היותר 30 התראות לדקה לכל חשבון. מעבר לזה, ההתראות העודפות מדולגות ויומן השליחות מציין זאת.
- שליחה יכולה להגיע באיחור, פעמיים או לא לפי הסדר, לכן סננו כפילויות לפי
idואל תפעלו על התראה שכבר לא עדכנית עבורכם.
כלי ביצוע
כל דוגמה למטה היא הגוף שכלי מצפה לו, כתוב לפי ה-payload הרגיל שלנו: כל ערך בסוגריים משולשים הוא השדה שלנו שיש לשים שם. בנו אותו בשלב של Zapier או Make אחרי catch webhook, או בממסר משלכם כמו המקלט תחת הרצת סקריפט משלכם, ושלחו אותו לכתובת ה-webhook של הכלי. ערכים באותיות גדולות הם שלכם. רק opportunity.alert ו-listing.alert צריכים להגיע לכלי: סננו החוצה את test ואת כל סוג אחר, כדי שהודעת סגירה לא תוכל לפתוח עסקה. אנחנו אף פעם לא סוחרים: מה כלי עושה עם הודעה תלוי בכם ובכלי.
כל כלי משנה את השדות שלו עם הזמן. בדקו דוגמה מול התיעוד העדכני של הכלי לפני שאתם סומכים עליה.
3Commas signal bot
ל-webhook המותאם של signal bot ב-3Commas, עם הסוד וה-UUID של הבוט מהגדרות ההודעות שלו. signal bot סוחר בבורסה אחת, לכן הגבילו את הכלל להזדמנויות שקונות שם בעזרת סינון הבורסות של הכלל.
{
"secret": "YOUR_3COMMAS_SECRET",
"bot_uuid": "YOUR_BOT_UUID",
"max_lag": "300",
"timestamp": "<sentAt>",
"trigger_price": "<opportunity.buy.price>",
"tv_exchange": "<opportunity.buy.venue in capitals, e.g. BINANCE>",
"tv_instrument": "<opportunity.coin>USDT",
"action": "enter_long"
}Hummingbot
Hummingbot מקבל פקודות דרך הממשקים שלו ולא דרך webhook, לכן זה נשלח לאסטרטגיית סקריפט קטנה שלכם, או לגשר לממשק ה-MQTT שלו. השתמשו בשם של ה-connector שלכם.
{
"connector": "<opportunity.buy.venue in lower case, e.g. binance>",
"trading_pair": "<opportunity.coin>-USDT",
"side": "BUY",
"price": <opportunity.buy.price>,
"amount_usd": <atSize.sizeUsd>,
"hedge_connector": "<opportunity.sell.venue in lower case>",
"hedge_price": <opportunity.sell.price>,
"net_bps": <atSize.netBps>,
"event_id": "<id>"
}Cornix signal
טקסט פשוט במבנה האיתותים של Cornix, לכתובת ה-webhook ש-Cornix נותן לבוט של TradingView. הגדירו סטופ משלכם, ובדקו את המבנה מול המדריך העדכני של Cornix.
#<opportunity.coin>/USDT Exchanges: <opportunity.buy.venue> Signal Type: Regular (Long) Entry Targets: 1) <opportunity.buy.price> Take-Profit Targets: 1) <opportunity.sell.price> Stop Targets: 1) YOUR_STOP_PRICE
TradingView-style JSON
שמות השדות שהתראת TradingView שולחת, לכלים שנבנו לקבל התראות TradingView.
{
"ticker": "<opportunity.coin>USDT",
"exchange": "<opportunity.buy.venue in capitals>",
"action": "buy",
"price": <opportunity.buy.price>,
"time": "<sentAt>",
"message": "<opportunity.coin> <opportunity.buy.venue> to <opportunity.sell.venue>, net <atSize.netBps> bps at $<atSize.sizeUsd>"
}Flat JSON
כל נתון ברמה העליונה, לגיליון אלקטרוני, ל-n8n או למסד נתונים.
{
"id": "<id>",
"coin": "<opportunity.coin>",
"size_usd": <atSize.sizeUsd>,
"net_usd": <atSize.netUsd>,
"net_bps": <atSize.netBps>,
"max_size_usd": <opportunity.maxSizeUsd>,
"buy_exchange": "<opportunity.buy.venue>",
"buy_price": <opportunity.buy.price>,
"buy_url": "<opportunity.buy.url>",
"sell_exchange": "<opportunity.sell.venue>",
"sell_price": <opportunity.sell.price>,
"sell_url": "<opportunity.sell.url>"
}ערוצים נוספים
כל ערוץ למטה מוגדר בעמוד ההתראות, יש לו כפתור שליחת בדיקה, והוא נושא את אותו טקסט התראה כמו כל ערוץ אחר, בשפת החשבון. כללים, מגבלות חזרה, שעות שקטות, מגבלת הקצב והשהיה אוטומטית עובדים אותו דבר בכולם.
- Slack (מ-Starter Quant ומעלה): הוסיפו את אפליקציית Incoming Webhooks לערוץ ב-Slack והדביקו את כתובת ה-
hooks.slack.comשהיא נותנת לכם. - ntfy (מ-Starter Quant ומעלה): התראות חינמיות בטלפון ובמחשב. הדביקו כתובת topic כמו
https://ntfy.sh/your-topic, או כזו בשרת שלכם, והירשמו לאותו topic באפליקציית ntfy. כל מי שיודע את השם של topic ציבורי יכול לקרוא אותו, לכן בחרו שם ארוך ואקראי, או הוסיפו access token ל-topic מוגן. לכל התראה יש כפתורים לשתי הבורסות. - סיכום באימייל (מ-Starter Quant ומעלה): אימייל אחד לכתובת החשבון שלכם עם כל ההתראות מאז הקודם, כל שעה עגולה או כל יום ב-08:00 UTC. כשאין שום דבר חדש, לא נשלח כלום.
ל-WhatsApp אין דרך חינמית ששירות ישלח לכם הודעות, לכן הוא לא מוצע. לכל דבר אחר, webhook מותאם הוא JSON פשוט מעל https.
פרסום ב-Slack
Cloudflare Worker בלי שרת להפעיל. הגדירו את ARBITRAGEX_SECRET ואת SLACK_WEBHOOK_URL כסודות, ואז השתמשו ב-URL של ה-Worker כיעד. אותו קוד רץ בכל מקום שיש בו Web Crypto.
async function verify(rawBody, headers, secret) {
const ts = headers.get("x-arbitragex-timestamp");
if (!(Math.abs(Date.now() / 1000 - Number(ts)) <= 300)) return false;
const encoder = new TextEncoder();
const key = await crypto.subtle.importKey(
"raw", encoder.encode(secret), { name: "HMAC", hash: "SHA-256" }, false, ["verify"],
);
const given = (headers.get("x-arbitragex-signature") ?? "").replace("sha256=", "");
if (!/^[0-9a-f]{64}$/.test(given)) return false;
const bytes = Uint8Array.from(given.match(/../g), (pair) => parseInt(pair, 16));
return crypto.subtle.verify("HMAC", key, bytes, encoder.encode(`${ts}.${rawBody}`));
}
export default {
async fetch(request, env) {
const rawBody = await request.text();
if (!(await verify(rawBody, request.headers, env.ARBITRAGEX_SECRET))) {
return new Response("bad signature", { status: 401 });
}
const event = JSON.parse(rawBody);
if (event.type === "opportunity.alert" || event.type === "listing.alert") {
const { coin, buy, sell } = event.opportunity;
// The net at your size and taker fee, as the alert and the app state it.
const { sizeUsd, netBps } = event.atSize;
const net = netBps === null ? "not filled" : `${netBps.toFixed(1)} bps`;
await fetch(env.SLACK_WEBHOOK_URL, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
text: `${coin}: ${buy.venue} to ${sell.venue}, net ${net} at $${sizeUsd}`,
}),
});
}
return new Response(null, { status: 204 });
},
};ניהול גיליון אלקטרוני
מוסיף שורה אחת לכל התראה לקובץ CSV שאפשר לפתוח בכל גיליון אלקטרוני, עם הספרייה הסטנדרטית של Python בלבד. שימו אותו מאחורי https: אנחנו שולחים רק לכתובות https ציבוריות.
import csv
import json
from http.server import BaseHTTPRequestHandler, HTTPServer
import hashlib
import hmac
import time
def verify(raw_body: bytes, headers: dict, secret: str) -> bool:
ts = headers.get("x-arbitragex-timestamp", "")
try:
if abs(time.time() - int(ts)) > 300:
return False
except ValueError:
return False
signed = ts.encode() + b"." + raw_body
expected = "sha256=" + hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected.encode(), headers.get("x-arbitragex-signature", "").encode())
SECRET = "your signing secret"
seen = set()
class Receiver(BaseHTTPRequestHandler):
def do_POST(self):
raw_body = self.rfile.read(int(self.headers["Content-Length"]))
headers = {key.lower(): value for key, value in self.headers.items()}
if not verify(raw_body, headers, SECRET):
self.send_response(401)
self.end_headers()
return
self.send_response(204)
self.end_headers()
event = json.loads(raw_body)
if event["test"] or event["id"] in seen or "opportunity" not in event:
return
seen.add(event["id"])
row = event["opportunity"]
# The net at your size and taker fee, as the alert states it.
at = event.get("atSize") or {}
with open("alerts.csv", "a", newline="") as file:
csv.writer(file).writerow(
[event["sentAt"], event["type"], row["coin"], row["buy"]["venue"], row["sell"]["venue"], at.get("sizeUsd"), at.get("netUsd"), at.get("netBps")]
)
if __name__ == "__main__":
HTTPServer(("127.0.0.1", 8000), Receiver).serve_forever()הרצת סקריפט משלכם
מקלט בלי תלויות, שמשיב מיד ומעביר כל התראה לפונקציה אחת שלכם. מה הפונקציה הזו עושה, את זה אתם כותבים ועל זה אתם אחראים. התראות הן הערכות מנתוני שוק, והזדמנות יכולה להיסגר לפני שמשהו שהפעלתם מגיע.
import { createServer } from "node:http";
import { createHmac, timingSafeEqual } from "node:crypto";
function verify(rawBody, headers, secret) {
const ts = headers["x-arbitragex-timestamp"];
if (!(Math.abs(Date.now() / 1000 - Number(ts)) <= 300)) return false;
const expected =
"sha256=" + createHmac("sha256", secret).update(`${ts}.${rawBody}`).digest("hex");
const given = Buffer.from(String(headers["x-arbitragex-signature"]));
const wanted = Buffer.from(expected);
return given.length === wanted.length && timingSafeEqual(given, wanted);
}
const seen = new Set();
function onAlert(event) {
// Your code goes here. You decide what happens next, and we never see it.
// atSize is the net at your size and taker fee, as the alert states it.
console.log(event.type, event.opportunity.coin, event.atSize?.sizeUsd, event.atSize?.netBps);
}
export const server = createServer((req, res) => {
const parts = [];
req.on("data", (part) => parts.push(part));
req.on("end", () => {
const rawBody = Buffer.concat(parts).toString("utf8");
if (!verify(rawBody, req.headers, process.env.ARBITRAGEX_SECRET)) {
return res.writeHead(401).end();
}
const event = JSON.parse(rawBody);
// Answer first: anything slower than 8 seconds counts as a failed delivery.
res.writeHead(204).end();
if (event.test || seen.has(event.id)) return;
seen.add(event.id);
if (event.type === "opportunity.alert" || event.type === "listing.alert") onAlert(event);
});
});Zapier ו-Make
webhook מותאם הוא POST פשוט של JSON, כך שכתובת catch webhook מכל אחד מהם עובדת כיעד. הוסיפו שלב סינון על type ועל test, ואז מפו שדות כמו opportunity.coin ו-opportunity.netBps. השלבים האלה לא בודקים את החתימה שלנו בשבילכם, לכן התייחסו לכתובת ה-catch כאל סיסמה ואל תפעילו שם שום דבר שלא הייתם נותנים לזר להפעיל.
Telegram
אם אתם רוצים רק התראות בטלפון, דלגו על כל זה. לחצו על חיבור Telegram בעמוד ההתראות ואז על Start בצ'אט שנפתח. ראו את תיעוד ההתראות.