Subscriptions

List all active alerts

/v4/subscription

List all active alerts.

get/v4/subscription

Request

  • Base URL
    https://api.tatum.io
  • URL
    https://api.tatum.io/v4/subscription
  • Auth
    API key in header x-api-key

Query parameters

pageSizenumber required
Example:10

Max number of items per page is 50.

offsetnumber

Offset to obtain next page of the data.

addressstring

Value for filtering by address

typeSubscriptionType[]

Filter by alert type. Multiple values can be passed as a comma-separated list.

[
  "ADDRESS_EVENT"
]
chainstring[]

Filter by public chain name. Use chain names such as ethereum-mainnet, not currency symbols such as ETH. Multiple values can be passed as a comma-separated list.

[
  "ethereum-mainnet"
]
status'active' | 'paused'
Example:active

Filter by alert status.

Response

OK

type'ADDRESS_EVENT' | 'CONTRACT_ADDRESS_LOG_EVENT' | 'INCOMING_NATIVE_TX' | 'OUTGOING_NATIVE_TX' | 'OUTGOING_FAILED_TX' | 'PAID_FEE' | 'INCOMING_INTERNAL_TX' | 'OUTGOING_INTERNAL_TX' | 'INCOMING_FUNGIBLE_TX' | 'OUTGOING_FUNGIBLE_TX' | 'INCOMING_NFT_TX' | 'OUTGOING_NFT_TX' | 'INCOMING_MULTITOKEN_TX' | 'OUTGOING_MULTITOKEN_TX' | 'MINT_TX' | 'BURN_TX' | 'SWAP_TX' | 'FAILED_TXS_PER_BLOCK' | 'PRICE_CHANGE' required

Type of the alert.

idstring required

ID of the alert

timestampnumber

Alert creation time

referencePricestring

PRICE_CHANGE only: what the next move is measured from. atPrice — the watched level; pctChange with 1m — the price at creation, or for RECURRING alerts the price at the last fire; pctChange with 1h/1d/1w — the current candle's opening price.

periodStartnumber

PRICE_CHANGE with candleTimeFrame 1h/1d/1w only: start (milliseconds, UTC) of the candle the current reference price belongs to.

status'ACTIVE' | 'PAUSED' | 'TRIGGERED'

PRICE_CHANGE only: lifecycle state. TRIGGERED — a ONE_TIME alert that has already fired; terminal and immutable.

pausednumber

PRICE_CHANGE only: timestamp (ms) since when the alert is paused.

triggeredAtnumber

PRICE_CHANGE only: timestamp (ms) when a ONE_TIME alert fired.

notestring

Any other relevant information such as important updates

Example response

[
  {
    "type": "ADDRESS_EVENT",
    "id": "7c21ed165e294db78b95f0f1",
    "timestamp": 1653320900353,
    "attr": {
      "chain": "ethereum-mainnet",
      "symbol": "BTC",
      "frequency": "RECURRING",
      "direction": "BOTH",
      "alertCondition": {
        "atPrice": 110000
      }
    },
    "referencePrice": "100000",
    "periodStart": 1784678400000
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.