PageSourceSearch

https://www.investagrams.com/Javascript/AngularApp/Services/Api/st…adingGroundsApiService.js?i_1.68.9760.35196

js investagrams.com collected 2026-09-24 08:47:00 UTC 5,846 bytes, 138 lines download raw bytes

1(function (module) {
2
3    var apiService = function (httpService) {
4
5        var baseHost = socialApiHost;
6
7
8        function getITGProfile() {
9            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/GetITGProfile");
10        }
11
12        function getMyRankings() {
13            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/GetMyRankings");
14        }
15
16        function getMatchHistory(lastMatchId) {
17            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/GetMatchHistory?lastMatchId=" + lastMatchId);
18        }
19
20        function getRandomStockForGame(start, stockToIgnore) {
21            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/GetRandomStockForGame?start=" + start + "&stockToIgnore=" + stockToIgnore);
22        }
23
24        function saveTradesResults(data) {
25            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/SaveTradesResults", data);
26        }
27
28        function randomUserChallenge() {
29            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/RandomUserChallenge");
30        }
31
32        function requestChallenge(data) {
33            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/RequestChallenge", data);
34        }
35
36        function sendResultChallenge(data) {
37            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/SendResultChallenge", data);
38        }
39
40        function revealStockCodeAndExchange(encryptedStockCodeAndExchange) {
41            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/RevealStockCodeAndExchange?encryptedStockCodeAndExchange=" + encryptedStockCodeAndExchange);
42        }
43
44        function initializeChallenge(data) {
45            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/InitializeChallenge", data);
46        }
47
48        function acceptChallenge(matchId) {
49            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/AcceptChallenge?matchId=" + matchI
49d);
50        }
51
52        function declineChallenge(matchId) {
53            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/DeclineChallenge?matchId=" + matchId);
54        }
55
56        function forfeitChallenge(matchId) {
57            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/ForfeitChallenge?matchId=" + matchId);
58        }
59
60        function getPendingChallengesByUser(lastMatchId) {
61            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/GetPendingChallengesByUser?lastMatchId=" + lastMatchId);
62        }
63
64        function getPendingChallengers(lastMatchId) {
65            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/GetPendingChallengers?lastMatchId=" + lastMatchId);
66        }
67
68        function getRandomRecentOnline(limit) {
69            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/GetRandomRecentOnline?limit=" + limit);
70        }
71
72        function getRankingsShortTerm(page) {
73            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/GetRankingsShortTerm?page=" + page);
74        }
75
76        function getRankingsMediumTerm(page) {
77            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/GetRankingsMediumTerm?page=" + page);
78        }
79
80        function getRankingsAllTime(page) {
81            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/GetRankingsAllTime?page=" + page);
82        }
83
84        function getRankingsCustom(page) {
85            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/GetRankingsCustom?page=" + page);
86        }
87
88        function getTgSettings() {
89            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/GetTgSettings");
90        }
91
92        function updateTgAllowChallengeInvite(isAllow) {
93            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/UpdateTgAllowChallengeInvite?isAllow=" + isAllow);
94        }
95
96        function getITGChangelog() {
97            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/GetITGChangelog");
98        }
99
100        function viewResults(matchId) {
101            return httpService.post(baseHost, "/InvestaApi/StockTradingGrounds/ViewResults?matchId=" + matchI
101d);
102        }
103
104
105
106
107
108        return {
109            getITGProfile: getITGProfile,
110            getMyRankings: getMyRankings,
111            getMatchHistory: getMatchHistory,
112            getRandomStockForGame: getRandomStockForGame,
113            saveTradesResults: saveTradesResults,
114            randomUserChallenge: randomUserChallenge,
115            requestChallenge: requestChallenge,
116            sendResultChallenge: sendResultChallenge,
117            revealStockCodeAndExchange: revealStockCodeAndExchange,
118            initializeChallenge: initializeChallenge,
119            acceptChallenge: acceptChallenge,
120            declineChallenge: declineChallenge,
121            forfeitChallenge: forfeitChallenge,
122            getPendingChallengesByUser: getPendingChallengesByUser,
123            getPendingChallengers: getPendingChallengers,
124            getRandomRecentOnline: getRandomRecentOnline,
125            getRankingsShortTerm: getRankingsShortTerm,
126            getRankingsMediumTerm: getRankingsMediumTerm,
127            getRankingsAllTime: getRankingsAllTime,
128            getRankingsCustom: getRankingsCustom,
129            getTgSettings: getTgSettings,
130            updateTgAllowChallengeInvite: updateTgAllowChallengeInvite,
131            getITGChangelog: getITGChangelog,
132            viewResults: viewResults
133        };
134    };
135
136    module.factory("stockTradingGroundsApiService", apiService);
137
138}(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.