وصفات Webhook
التنبيهات تخبرك بما يفعله السوق. Webhooks والـ API هي طريقتك للتصرف بناءً عليه، بأدواتك وحساباتك الخاصة. نحن لا نتداول نيابةً عنك أبدًا، ولا نحتفظ بأموال، ولا نطلب مفاتيح API مفعّل فيها التداول.
البدء السريع
- من صفحة التنبيهات، أضف Webhook بصيغة JSON مخصصة. يشمله Pro Trader وما فوقها.
- انسخ سر التوقيع. يُعرض مرة واحدة.
- تحقّق من التوقيع في كل طلب بأحد الأمثلة تحت تحقّق من التوقيع.
- اضغط «أرسل اختبارًا» وتحقّق من أن نقطة الوصول لديك تستلمه.
- وجّه قاعدة إلى الوجهة. التنبيه الافتراضي يذهب إليها أيضًا ما دام مفعّلًا.
أجب بأي 2xx خلال 8 ثوانٍ. الإرسالات الفاشلة تُعاد بنفس id، فأزل التكرار بناءً عليه. كل مقتطف أدناه جُرّب على تسليم حقيقي موقّع. أنت مسؤول عن كل ما تؤتمته من هذه الأحداث.
الترويسات
كل تسليم هو طلب POST إلى عنوان https الخاص بك مع هذه الترويسات:
| الترويسة | القيمة |
|---|---|
| X-ArbitrageX-Event | معرّف الحدث، نفس id في الجسم. إعادة المحاولة تحتفظ به، فأزل التكرار بناءً عليه. |
| X-ArbitrageX-Timestamp | ثواني unix عند توقيع هذه المحاولة. كل إعادة محاولة تُوقَّع من جديد، بطابع زمني وتوقيع جديدين. |
| X-ArbitrageX-Signature | sha256= ثم HMAC-SHA256 بصيغة hex بأحرف صغيرة للطابع الزمني ونقطة والجسم الخام. |
| Content-Type | application/json |
| User-Agent | ArbitrageX-Webhooks/1.0 |
تحقّق من التوقيع
كل طلب يحمل X-ArbitrageX-Timestamp وX-ArbitrageX-Signature، وهو sha256= مع HMAC-SHA256 بصيغة hex لـ 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);
}مثال اختبار
قبل التشغيل الفعلي، اختبر الكود على هذا المثال: توقيع الطابع الزمني والجسم الخام أدناه بهذا السر يجب أن يعطي التوقيع أدناه. السر لهذه الصفحة فقط. الطابع الزمني قديم، لذا سيرفضه فحص الدقائق الخمس لديك: اختبر خطوة 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: معرّف الحدث، يبقى نفسه عبر إعادة المحاولات.type: أحد الأنواع أدناه.test:trueفقط من «أرسل اختبارًا».sentAt: وقت إرسال هذه المحاولة، بصيغة ISO 8601 بتوقيت UTC.rule: القاعدة التي طابقت، كـidوname، والمعرّفdefaultلـ التنبيه الافتراضي. null حيث لا ترسله أي قاعدة.routeId: معرّف الفرصة كما يستخدمه الـ API، أو null حيث لا توجد فرصة.links: صفحات التداول التي يشير إليها التنبيه، كلٌّ معsideوvenueوurl.apiVersion: إصدار هذه الحمولة، حاليًا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 عندما لا تكون تجزئة المعاملة معروفة.
{
"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ولا تتصرف بناءً على تنبيه صار قديمًا بالنسبة لك.
أدوات التنفيذ
كل مثال أدناه هو الجسم الذي تتوقعه أداة ما، مكتوبًا على أساس حمولتنا القياسية: كل قيمة بين قوسين زاويين هي الحقل من حقولنا الذي يوضع هناك. ابنه في خطوة 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، لذا يذهب هذا إلى script strategy صغيرة من كتابتك، أو إلى جسر لواجهة 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 في المحادثة التي تُفتح. انظر وثائق التنبيهات.