Przepisy na webhooki
Alerty mówią, co robi rynek. Webhooki i API pozwalają na to zareagować, własnymi narzędziami i na własnych kontach. Nigdy nie handlujemy za ciebie, nigdy nie przechowujemy środków i nigdy nie prosimy o klucze API z uprawnieniem do handlu.
Szybki start
- Na stronie Alerty dodaj webhook Custom JSON. Jest w planie Pro Trader i wyższych.
- Skopiuj sekret do podpisu. Jest pokazywany tylko raz.
- Sprawdzaj podpis każdego zapytania jednym z przykładów w sekcji Sprawdź podpis.
- Naciśnij Wyślij test i sprawdź, czy twój endpoint go odebrał.
- Skieruj regułę na to miejsce docelowe. Domyślny alert też do niego trafia, gdy jest włączony.
Odpowiedz dowolnym 2xx w ciągu 8 sekund. Nieudane wysyłki są ponawiane z tym samym id, więc deduplikuj po nim. Każdy fragment kodu poniżej uruchomiono na prawdziwej podpisanej dostawie. Odpowiadasz za wszystko, co automatyzujesz na podstawie tych zdarzeń.
Nagłówki
Każda dostawa to POST na twój adres https z tymi nagłówkami:
| Nagłówek | Wartość |
|---|---|
| X-ArbitrageX-Event | Id zdarzenia, takie samo jak id w treści. Ponowienie je zachowuje, więc deduplikuj po nim. |
| X-ArbitrageX-Timestamp | Sekundy unix, kiedy ta próba została podpisana. Każde ponowienie jest podpisywane od nowa, z nowym znacznikiem czasu i podpisem. |
| X-ArbitrageX-Signature | sha256= i HMAC-SHA256 w małych literach hex ze znacznika czasu, kropki i surowej treści. |
| Content-Type | application/json |
| User-Agent | ArbitrageX-Webhooks/1.0 |
Sprawdź podpis
Każde zapytanie zawiera X-ArbitrageX-Timestamp i X-ArbitrageX-Signature, czyli sha256= plus HMAC-SHA256 w hex z timestamp.rawBody, z kluczem w postaci całego sekretu do podpisu, łącznie z whsec_. Sprawdzaj go na surowych bajtach, przed parsowaniem, bo sparsowany i ponownie zakodowany JSON nie będzie pasował, i porównuj w stałym czasie. Odrzucaj znaczniki czasu odległe o więcej niż 5 min od teraz, by zapobiec powtórkom. Każdy przykład poniżej robi to wszystko.
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);
}Wektor testowy
Zanim uruchomisz to na produkcji, sprawdź swój kod na tym przykładzie: podpisanie poniższego znacznika czasu i surowej treści tym sekretem musi dać poniższy podpis. Sekret jest tylko dla tej strony. Znacznik czasu jest stary, więc twoja kontrola 5 minut go odrzuci: przetestuj sam krok 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
Wspólne pola
Każde zdarzenie ma te pola, obok własnych. Ich nazwy i kolejność nigdy się nie zmieniają, a nowe pola dochodzą tylko na końcu.
id: id zdarzenia, zachowane przy ponowieniach.type: jeden z typów poniżej.test:truetylko z Wyślij test.sentAt: kiedy wysłano tę próbę, jako czas ISO 8601 w UTC.rule: reguła, która pasowała, jakoidiname, z iddefaultdla Domyślny alert. Null, gdy żadna reguła tego nie wysyła.routeId: id okazji używane przez API albo null, gdy nie ma okazji.links: strony handlu, do których prowadzi alert, każda zside,venueiurl.apiVersion: wersja tego payloadu, obecnie2026-11-04.appUrl: strona alertu w aplikacji.atSize: tylko wopportunity.alert,listing.alertialert.test, netto przy wielkości, przy której ocenia ją reguła, jakosizeUsd,netUsdinetBps.
Zdarzenia
Każdy typ, jaki może dostać własny webhook, z wymaganym planem i przykładową treścią zbudowaną tym samym kodem co prawdziwa dostawa. Własny webhook jest w planie Pro Trader i wyższych, a niektóre typy wymagają wyższego planu. Wartości są zmyślone.
- 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 i wyższe
opportunity.alert: okazja pasuje do reguły lub domyślnego alertu. rule.id to default dla domyślnego alertu.
{
"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 i wyższe
opportunity.closed: okazja, o której dostałeś alert, została zamknięta, jeśli reguła o to prosi.
{
"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 i wyższe
listing.alert: właśnie wylistowano rynek, jedno zdarzenie na listing.
{
"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 i wyższe
position.alert: coś się stało w śledzonej transakcji.
{
"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 i wyższe
notice.alert: giełda ogłosiła delisting, wstrzymanie wpłat lub wypłat, prace serwisowe albo listing, w Domyślny alert. tracked mówi, że dotyczy transakcji, którą śledzisz.
{
"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 i wyższe
prediction.alert: okazja z rynku predykcyjnego pasuje do twojej reguły.
{
"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 i wyższe
prediction.signal: rynek predykcyjny ruszył tak, jak obserwuje twoja reguła, np. jego kursy.
{
"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 i wyższe
liquidation.alert: likwidacja pasuje do twojej reguły, np. powyżej danej wielkości.
{
"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 i wyższe
liquidation.cluster: cena zbliża się do skupiska pozycji, które zostałyby zlikwidowane, z radaru przed squeezem.
{
"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 i wyższe
positioning.alert: pozycjonowanie top traderów na coinie zmieniło się tak, jak obserwuje twoja reguła, np. odwróciło się ich nachylenie.
{
"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 i wyższe
wallet.alert: obserwowany przez ciebie trader otworzył, zmienił lub zamknął pozycję.
{
"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 i wyższe
watch.alert: obserwowany portfel otrzymał lub wysłał transfer, w Domyślny alert. event.tx to null, gdy hash transakcji nie jest znany.
{
"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 i wyższe
polymarket.alert: obserwowany przez ciebie trader Polymarket zawarł transakcję.
{
"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 i wyższe
consensus.alert: kilka obserwowanych portfeli zajęło tę samą stronę na coinie w krótkim czasie.
{
"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 i wyższe
alert.test: z Wyślij test, z "test": true i fikcyjnym coinem o nazwie 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
}
}Pełne pola są w dokumentacji webhooków.
Dostarczanie i ponowienia
- Odpowiedz dowolnym 2xx w ciągu 8. Wolniejsza odpowiedź liczy się jako niepowodzenie.
- Timeout, błąd połączenia, 429 lub dowolne 5xx są ponawiane, łącznie do 5 prób, z przerwą po każdej: 5 sekund, 20 sekund, 1 minuta, 5 minut.
Retry-Afterw sekundach może wydłużyć oczekiwanie, do 5 minut. - Inne 4xx nie są ponawiane, podobnie 3xx: przekierowania nie są obsługiwane, więc podaj nam docelowy URL.
- 8 niepowodzeń z rzędu wstrzymuje miejsce docelowe i anuluje to, co na nie czeka. 429 się do tego nie liczy, a jedno powodzenie zeruje licznik.
- Przed każdą próbą sprawdzamy ponownie, czy miejsce docelowe jest włączone, reguła nadal istnieje, twój plan nadal obejmuje ten typ i czy nie trwają twoje godziny ciszy. Alert o okazji lub listingu, który wciąż czeka, gdy okazja prawdopodobnie się zamknęła, jest odrzucany jako przeterminowany.
- Najwyżej 30 alertów na minutę na konto. Ponad to dodatkowe alerty są pomijane, a dziennik dostaw to odnotowuje.
- Dostawa może przyjść z opóźnieniem, dwa razy lub w złej kolejności, więc deduplikuj po
idi nie reaguj na alert, który dla ciebie jest już nieaktualny.
Narzędzia do realizacji
Każdy przykład poniżej to treść, jakiej oczekuje narzędzie, napisana na podstawie naszego standardowego payloadu: każda wartość w nawiasach ostrych to nasze pole, które trzeba tam wstawić. Zbuduj ją w kroku Zapier lub Make po catch webhooku albo we własnym przekaźniku, np. odbiorniku z sekcji Uruchom własny skrypt, i wyślij na URL webhooka narzędzia. Wartości wielkimi literami są twoje. Do narzędzia powinny trafiać tylko opportunity.alert i listing.alert: odfiltruj test i każdy inny typ, by powiadomienie o zamknięciu nie otworzyło transakcji. Nigdy nie handlujemy: co narzędzie zrobi z wiadomością, zależy od ciebie i od narzędzia.
Każde narzędzie z czasem zmienia swoje pola. Zanim zaczniesz polegać na przykładzie, porównaj go z aktualną dokumentacją narzędzia.
3Commas signal bot
Dla własnego webhooka signal bota 3Commas, z jego sekretem i UUID bota z ustawień wiadomości bota. Signal bot handluje na jednej giełdzie, więc ogranicz regułę do okazji, które tam kupują, filtrem giełd w regule.
{
"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 przyjmuje polecenia przez własne interfejsy, a nie webhook, więc to trafia do twojej małej strategii skryptowej albo mostu do jego interfejsu MQTT. Użyj nazwy własnego konektora.
{
"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
Zwykły tekst w układzie sygnałów Cornix, dla adresu webhooka, który Cornix daje botowi TradingView. Ustaw własny stop i porównaj układ z aktualnym przewodnikiem 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
Nazwy pól, które wysyła alert TradingView, dla narzędzi zbudowanych do odbierania alertów 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
Każda wartość na najwyższym poziomie, dla arkusza kalkulacyjnego, n8n lub bazy danych.
{
"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>"
}Inne kanały
Każdy kanał poniżej ustawiasz na stronie Alerty, każdy ma przycisk Wyślij test i niesie ten sam tekst alertu co pozostałe kanały, w języku konta. Reguły, limity powtórzeń, godziny ciszy, limit zapytań i automatyczne wstrzymanie działają we wszystkich tak samo.
- Slack (Starter Quant i wyższe): dodaj aplikację Incoming Webhooks do kanału w Slacku i wklej URL
hooks.slack.com, który poda. - ntfy (Starter Quant i wyższe): darmowe powiadomienia na telefonie i komputerze. Wklej URL tematu, np.
https://ntfy.sh/your-topic, albo na własnym serwerze, i zasubskrybuj ten sam temat w aplikacji ntfy. Każdy, kto zna nazwę publicznego tematu, może go czytać, więc wybierz długą losową nazwę albo dodaj token dostępu dla chronionego tematu. Każdy alert ma przyciski do obu giełd. - Podsumowanie email (Starter Quant i wyższe): jeden mail na adres konta ze wszystkimi alertami od poprzedniego, co godzinę o pełnej godzinie albo codziennie o 08:00 UTC. Gdy nie ma nic nowego, nic nie wysyłamy.
WhatsApp nie daje usługom darmowego sposobu na wysyłanie wiadomości, więc go nie oferujemy. Do wszystkiego innego własny webhook to zwykły JSON przez https.
Wysyłaj na Slack
Cloudflare Worker bez serwera do utrzymania. Ustaw ARBITRAGEX_SECRET i SLACK_WEBHOOK_URL jako sekrety, a URL Workera podaj jako miejsce docelowe. Ten sam kod działa wszędzie, gdzie jest 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 });
},
};Prowadź arkusz kalkulacyjny
Dopisuje jeden wiersz na alert do pliku CSV, który otworzysz w dowolnym arkuszu kalkulacyjnym, korzystając wyłącznie ze standardowej biblioteki Pythona. Umieść go za https: wysyłamy tylko na publiczne adresy 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()Uruchom własny skrypt
Odbiornik bez zależności, który od razu odpowiada i przekazuje każdy alert jednej twojej funkcji. To, co robi ta funkcja, piszesz ty i ty za to odpowiadasz. Alerty to szacunki z danych rynkowych, a okazja może się zamknąć, zanim dotrze cokolwiek, co uruchomisz.
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 i Make
Własny webhook to zwykły POST z JSON, więc URL catch webhooka z każdego z nich działa jako miejsce docelowe. Dodaj krok filtra na type i test, potem zmapuj pola, np. opportunity.coin i opportunity.netBps. Te kroki nie sprawdzają za ciebie naszego podpisu, więc traktuj URL catch jak hasło i nie uruchamiaj tam niczego, czego nie pozwoliłbyś uruchomić obcej osobie.
Telegram
Jeśli chcesz tylko alertów na telefonie, pomiń to wszystko. Naciśnij Połącz Telegram na stronie Alerty, a potem Start w czacie, który się otworzy. Zobacz dokumentację alertów.