PageSourceSearch

https://www.investagrams.com/Javascript/AngularApp/Services/Api/watchlistApiService.js?i_1.68.9760.35196

js investagrams.com collected 2026-09-24 08:47:18 UTC 6,266 bytes, 123 lines download raw bytes

1(function (module) {
2
3    var apiService = function (httpService) {
4
5        var baseHost = apiHost;
6
7
8        function getAllWatchlistStockIdsByUserId() {
9            return httpService.post(baseHost, "/InvestaApi/Watchlist/GetAllWatchlistStockIdsByUserId");
10        }
11
12        function getAllWatchlistGroupByUserId(irt, loadStocks) {
13            return httpService.post(baseHost, "/InvestaApi/Watchlist/GetAllWatchlistGroupByUserId?irt=" + irt + "&loadStocks=" + loadStocks);
14        }
15
16        function getAllWatchlistGroupsWithStockByUserIdAndStockId(irt, stockId) {
17            return httpService.post(baseHost, "/InvestaApi/Watchlist/GetAllWatchlistGroupsWithStockByUserIdAndStockId?irt=" + irt + "&stockId=" + stockId);
18        }
19
20        function getWatchlistGroupBasicInfoByUserId(includeStockIds) {
21            return httpService.post(baseHost, "/InvestaApi/Watchlist/GetWatchlistGroupBasicInfoByUserId?includeStockIds=" + includeStockIds);
22        }
23
24        function getDefaultWatchlistByUserId(irt) {
25            return httpService.post(baseHost, "/InvestaApi/Watchlist/GetDefaultWatchlistByUserId?irt=" + irt);
26        }
27
28        function getWatchlistByWatchlistId(watchlistId, irt) {
29            return httpService.post(baseHost, "/InvestaApi/Watchlist/GetWatchlistByWatchlistId?watchlistId=" + watchlistId + "&irt=" + irt);
30        }
31
32        function insertWatchlist(data) {
33            return httpService.post(baseHost, "/InvestaApi/Watchlist/InsertWatchlist", data);
34        }
35
36        function updateWatchlist(data) {
37            return httpService.post(baseHost, "/InvestaApi/Watchlist/UpdateWatchlist", data);
38        }
39
40        function deleteWatchlist(watchlistId) {
41            return httpService.post(baseHost, "/InvestaApi/Watchlist/DeleteWatchlist?watchlistId=" + watchlistId);
42        }
43
44        function insertWatchlistStock(data) {
45            return httpService.post(baseHost, "/InvestaApi/Watchlist/InsertWatchlistStock", data);
46        }
47
48        function updateWatchlistStock(data) {
49            return httpService.post(baseHost, "/InvestaApi/Watchlist/UpdateWatchlistStock", data);
50        }
51
52        function resetWatchlistStockAllAlerts(watchlistId, stockId, isPriceAlert) {
53            return httpService.post(baseHost, "/InvestaApi/Watchlist/ResetWatchlistStockAllAlerts?watchlistId=" + watchlistId + "&stockId=" + stockId + "&isPriceAlert=" + isPriceAlert);
54        }
55
56        function resetAllWatchlistStockAlerts(watchlistId, isPriceAlert) {
57            return httpService.post(baseHost, "/InvestaApi/Watchlist/ResetAllWatchlistStockAlerts?watchlistId=" + watchlistId + "&isPriceAlert=" + isPriceAlert);
58        }
59
60        function deleteWatchlistStock(watchlistId, stockId, exchange, stockCode) {
61            return httpService.post(baseHost, "/InvestaApi/Watchlist/DeleteWatchlistStock?watchlistId=" + watchlistId + "&stockId=" + stockId + "&exchange=" + exchange + "&stockCode=" + stockCode);
62        }
63
64        function getWatchlistDetailByStockId(stockId) {
65            return httpService.post(baseHost, "/InvestaApi/Watchlist/GetWatchlistDetailByStockId?stockId=" + stockId);
66        }
67
68        function getWatchlistDetailBasicPriceByStockCodeAndExchange(stockCodeAndExchange) {
69            return httpService.post(baseHost, "/InvestaApi/Watchlist/GetWatchlistDetailBasicPriceByStockCodeAndExchange?stockCodeAndExchange=" + stockCodeAndExchange);
70        }
71
72        function getWatchlistStockByWatchlistIdAndStockId(watchlistId, stockId, irt) {
73            return httpService.post(baseHost, "/InvestaApi/Watchlist/GetWatchlistStockByWatchlistIdAndStockId?watchlistId=" + watchlistId + "&stockId=" + stockId + "&irt=" + irt);
74        }
75
76        function getAllWatchlistIdByStock(stockId) {
77            return httpService.post(baseHost, "/InvestaApi/Watchlist/GetAllWatchlistIdByStock?stockId=" + stockId);
78        }
79
80        function getWatchlistDetailIndicatorPreData() {
81            return httpService.post(baseHost, "/InvestaApi/Watchlist/GetWatchlistDetailIndicatorPreData");
82        }
83
84        function getWatchlistDetailIndicatorByUserIdAndStockId(stockId) {
85            return httpService.post(baseHost, "/InvestaApi/Watchlist/GetWatchlistDetailIndicatorByUserIdAndStockId?stockId=" + stockId);
86        }
87
88        //function getWatcherAlertLog(lastWatcherAlertLogId) {
89        //    return httpService.post(baseHost, "/InvestaApi/Watchlist/GetWatcherAlertLog?lastWatcherAlertLogId=" + lastWatcherAlertLogId);
90        //}
91
92
93
94
95
96        return {
97            getAllWatchlistStockIdsByUserId: getAllWatchlistStockIdsByUserId,
98            getAllWatchlistGroupByUserId: getAllWatchlistGroupByUserId,
99            getAllWatchlistGroupsWithStockByUserIdAndStockId: getAllWatchlistGroupsWithStockByUserIdAndStockId,
100            getWatchlistGroupBasicInfoByUserId: getWatchlistGroupBasicInfoByUserId,
101            getDefaultWatchlistByUserId: getDefaultWatchlistByUserId,
102            getWatchlistByWatchlistId: getWatchlistByWatchlistId,
103            insertWatchlist: insertWatchlist,
104            updateWatchlist: updateWatchlist,
105            deleteWatchlist: deleteWatchlist,
106            insertWatchlistStock: insertWatchlistStock,
107            updateWatchlistStock: updateWatchlistStock,
108            resetWatchlistStockAllAlerts: resetWatchlistStockAllAlerts,
109            resetAllWatchlistStockAlerts: resetAllWatchlistStockAlerts,
110            deleteWatchlistStock: deleteWatchlistStock,
111            getWatchlistDetailByStockId: getWatchlistDetailByStockId,
112            getWatchlistDetailBasicPriceByStockCodeAndExchange: getWatchlistDetailBasicPriceByStockCodeAndExchange,
113            getWatchlistStockByWatchlistIdAndStockId: getWatchlistStockByWatchlistIdAndStockId,
114            getAllWatchlistIdByStock: getAllWatchlistIdByStock,
115            getWatchlistDetailIndicatorPreData: getWatchlistDetailIndicatorPreData,
116            getWatchlistDetailIndicatorByUserIdAndStockId: getWatchlistDetailIndicatorByUserIdAndStockId,
117            //getWatcherAlertLog: getWatcherAlertLog
118        };
119    };
120
121    module.factory("watchlistApiService", apiService);
122
123}(angular.module("investagramsAngularApp")));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.