Obserwowane i alerty
Utwórz alert cenowy
Dowiedz się w chwili, gdy cena osiągnie Twój cel albo zmieni się o wybraną wartość w ciągu 24 godzin.
curl --request POST \
--url "https://reirex.com/api/v1/alerts" \
--header "GX-API-KEY: $GX_API_KEY" \
--header "GX-API-TIMESTAMP: $TIMESTAMP" \
--header "GX-API-SIGN: $SIGNATURE" \
--header "Content-Type: application/json" \
--data '{"symbol":"BTC","mode":"price","target":"80000","currency":"EUR","direction":"above","repeat":"once","channels":["push","email"]}'201 Createdapplication/json
{
"alertId": 12,
"symbol": "BTC",
"mode": "price",
"target": "80000",
"currency": "EUR",
"direction": "above",
"move": null,
"repeat": "once",
"channels": ["push", "email"],
"createdAt": "2026-10-14T16:14:15.412Z"
}Alert price wymaga target, currency i direction; alert move wymaga move w procentach. Alerty przychodzą jako push, e-mail lub oba naraz.
Treśćapplication/json
symbolstringwymaganyInstrument.
modestringwymaganypricedla ceny docelowej,movedla zmiany w ciągu 24 godzin.Jedna z
pricemovetargetstringCena, na którą czekasz, jako ciąg dziesiętny.
currencystringWaluta
target, np.EURlubUSD.directionstringabovedla wzrostu do celu,belowdla spadku do niego.Jedna z
abovebelowmovestringZmiana w procentach, w dowolną stronę, np.
5.repeatstringwymaganyoncealboalways, aby dostawać powiadomienie za każdym razem.Jedna z
oncealwayschannelsstring[]wymaganypush,emaillub oba.Jedna z
pushemail
Odpowiedź
alertIdintegerNasz identyfikator alertu.
symbolstringInstrument, który obserwuje.
modestringpricelubmove.targetstring | nullCena docelowa;
nulldla alertu ruchu.currencystring | nullWaluta celu;
nulldla alertu ruchu.directionstring | nullabovelubbelow;nulldla alertu ruchu.movestring | nullRuch w procentach;
nulldla alertu ceny.repeatstringoncelubalways.channelsstring[]Jak się o nim dowiesz:
push,emaillub oba.createdAtstringKiedy go ustawiono.

