Przejdź do treści
Zarejestruj się

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.

POST/api/v1/alertsZdobądź klucz
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

  • symbolstringwymagany

    Instrument.

  • modestringwymagany

    price dla ceny docelowej, move dla zmiany w ciągu 24 godzin.

    Jedna zpricemove

  • targetstring

    Cena, na którą czekasz, jako ciąg dziesiętny.

  • currencystring

    Waluta target, np. EUR lub USD.

  • directionstring

    above dla wzrostu do celu, below dla spadku do niego.

    Jedna zabovebelow

  • movestring

    Zmiana w procentach, w dowolną stronę, np. 5.

  • repeatstringwymagany

    once albo always, aby dostawać powiadomienie za każdym razem.

    Jedna zoncealways

  • channelsstring[]wymagany

    push, email lub oba.

    Jedna zpushemail

Odpowiedź

  • alertIdinteger

    Nasz identyfikator alertu.

  • symbolstring

    Instrument, który obserwuje.

  • modestring

    price lub move.

  • targetstring | null

    Cena docelowa; null dla alertu ruchu.

  • currencystring | null

    Waluta celu; null dla alertu ruchu.

  • directionstring | null

    above lub below; null dla alertu ruchu.

  • movestring | null

    Ruch w procentach; null dla alertu ceny.

  • repeatstring

    once lub always.

  • channelsstring[]

    Jak się o nim dowiesz: push, email lub oba.

  • createdAtstring

    Kiedy go ustawiono.