How to use Volume Alerts webhooks?

How to use Volume Alerts webhooks?

HTTP Webhooks allow you to receive Volume Alerts as soon as they happen. Instead of polling our REST API  constantly, you can receive the alerts directly on your server as they are generated. There are a few requirements to work with HTTP Webhooks on Xypher.


Xypher requirements

  1. A HTTP Webhook delivery endpoint
  1. Configure Volume Alerts settings to point alerts to the webhook

Server Requirements:

  1. Your server should accept connections from our backend IP addresses. You can find a list of our addresses here.
  1. Your server must properly configured to answer our POST requests with a 200 status code. Failure to do so will deactivate your endpoint in our backend after 3 failed deliveries
  1. A basic request looks like this
{
    "MarketName": "DNTBUSD", // str() exchange symbol
"exchange": "Binance", // str() titled exchange name
"MainMarket": "BUSD", // str() quote market
"CoinName": "DNT", // str() base market
"NewVol": 10939865.8, // float() volume at activity close
"OldVol": 9851419.22, // float() volume at activity start
"VolDiff": 11, // int() difference in volume
"Amount": 1088446.58, // float() amount traded in quote market
"AmountFiat": 1088446.58, // float() amount traded in USD
"NewBid": 0.0403, // float() bid price at activity start
"NewAsk": 0.0408, // float() ask price at activity close
"OldUnix": 1666599533, // int() unix timestamp in seconds at activity start
"NewUnix": 1666600095, // int() unix timestamp in seconds at activity close
"OldBid": 0.036, // float() bid price at activity start
"OldAsk": 0.0362, // float() ask price at activity start
"trend": "bear" // str() bear for selling activity, bull for buying, neut for neutral
}

You can get a sample POST request from our delivery endpoints page


How to calculate the price difference?

We use the new bid price to display this data on alerts. Formula:

      ((new_bid - old_bid) / old_bid) * 100


How to get “Last alert: 1 month ago”?

This data is not pushed on alerts. You would need to keep your own records or query our REST API for this data



    • Related Articles

    • Do I need a subscription to use webhooks or the REST API?

      Yes, here are the current subscription requirements Product Subscription required DeFi Alerts HTTP Webhooks Xypher Pro++ Whale Sniper HTTP Webhooks Xypher Pro++ Xypher & Xylens REST API Xypher Pro
    • How to use DeFi Alerts webhooks?

      HTTP Webhooks allow you to receive DeFi Alerts as soon as they happen. Instead of polling the API constantly, you can receive the alerts directly on your server as soon as they happen. There are a few requirements to work with HTTP Webhooks on ...
    • Do you have an API?

      Yes, you can find the most up-to-date documentation on https://xypher-api.readthedocs.io/en/latest/