{"id":598,"date":"2020-03-16T19:12:46","date_gmt":"2020-03-16T13:42:46","guid":{"rendered":"https:\/\/chartink.com\/articles\/?p=598"},"modified":"2021-06-02T22:22:40","modified_gmt":"2021-06-02T16:52:40","slug":"webhook-support-for-alerts","status":"publish","type":"post","link":"https:\/\/chartink.com\/articles\/alerts\/webhook-support-for-alerts\/","title":{"rendered":"Webhook support for Alerts"},"content":{"rendered":"<p>We&#8217;ve added the ability to <strong>add webhook&#8217;s for your alerts.\u00a0<\/strong>A webhook is an<strong> HTTP call-back triggered<\/strong> by a specific event(in our case a alert), these can be used by your own application to <span style=\"text-decoration: underline;\"><em><strong>monitor, place automatic orders<\/strong><\/em><\/span>.. etc. You can add webhooks for any given alerts by entering the URL for your web address(prefixed by http, https), this can be done by clicking on &#8220;Create\/Modify Alert&#8221; right below your scans:<\/p>\n<p><img loading=\"lazy\" class=\"size-full wp-image-599 alignleft\" src=\"https:\/\/chartink.com\/articles\/wp-content\/uploads\/2020\/03\/web-hook-details.jpg\" alt=\"\" width=\"800\" height=\"332\" \/><\/p>\n<h5>SAMPLE Post Data(json)<\/h5>\n<pre>{\r\n\u00a0 \u00a0 \"stocks\": \"SEPOWER,ASTEC,EDUCOMP,KSERASERA,IOLCP,GUJAPOLLO,EMCO\",\r\n\u00a0 \u00a0 \"trigger_prices\": \"3.75,541.8,2.1,0.2,329.6,166.8,1.25\",\r\n\u00a0 \u00a0 \"triggered_at\": \"2:34 pm\",\r\n\u00a0 \u00a0 \"scan_name\": \"Short term breakouts\",\r\n\u00a0 \u00a0 \"scan_url\": \"short-term-breakouts\",\r\n\u00a0 \u00a0 \"alert_name\": \"Alert for Short term breakouts\",\r\n\u00a0 \u00a0 \"webhook_url\": \"http:\/\/your-web-hook-url.com\"\r\n}<\/pre>\n<p>Webhooks will triggered along side your alert settings, eg: sending alerts over Email\/SmS\/Desktop would continue as normal<\/p>\n<p><strong>Note on automating trades with webhooks<\/strong>, requires some programming logic so that you can incoporate our webhooks within your application which is alreadying using <strong>API&#8217;s from the stockbrokers<\/strong> to place orders. Your system\/application must be deployed on the internet and reachable by a domain or a IP address, this requires your <strong>application to support the ability to receive incoming POST request<\/strong>&#8216;s so that we can send our JSON data for the alert<\/p>\n<p>We recommend using a service like\u00a0<a href=\"https:\/\/hookbin.com\/\" target=\"_blank\" rel=\"noopener\" data-cke-saved-href=\"https:\/\/hookbin.com\/\">Hookbin<\/a>\u00a0to test the webhooks feature, it allows you to create a endpoint, which you can add in our &#8220;webhook url&#8221; field within the alert form. An HTTP\u00a0POST\u00a0request will be made to the URL you have specified along with the data corresponding to the alert.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve added the ability to add webhook&#8217;s for your alerts.\u00a0A webhook is an HTTP call-back triggered by a specific event(in our case a alert), these can be used by your own application to monitor, place automatic orders.. etc. You can add webhooks for any given alerts by entering the URL for your web address(prefixed by &hellip; <a href=\"https:\/\/chartink.com\/articles\/alerts\/webhook-support-for-alerts\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Webhook support for Alerts&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[47],"tags":[],"_links":{"self":[{"href":"https:\/\/chartink.com\/articles\/wp-json\/wp\/v2\/posts\/598"}],"collection":[{"href":"https:\/\/chartink.com\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chartink.com\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chartink.com\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chartink.com\/articles\/wp-json\/wp\/v2\/comments?post=598"}],"version-history":[{"count":5,"href":"https:\/\/chartink.com\/articles\/wp-json\/wp\/v2\/posts\/598\/revisions"}],"predecessor-version":[{"id":735,"href":"https:\/\/chartink.com\/articles\/wp-json\/wp\/v2\/posts\/598\/revisions\/735"}],"wp:attachment":[{"href":"https:\/\/chartink.com\/articles\/wp-json\/wp\/v2\/media?parent=598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chartink.com\/articles\/wp-json\/wp\/v2\/categories?post=598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chartink.com\/articles\/wp-json\/wp\/v2\/tags?post=598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}