정홍주

Delete another file for merge

1 -/node_modules
2 -apikey
3 -test.*
4 -README.md
...\ No newline at end of file ...\ No newline at end of file
1 -{
2 - "name": "coin-trade-assistant",
3 - "version": "1.0.0",
4 - "lockfileVersion": 1,
5 - "requires": true,
6 - "dependencies": {
7 - "@types/node": {
8 - "version": "15.6.1",
9 - "resolved": "https://registry.npmjs.org/@types/node/-/node-15.6.1.tgz",
10 - "integrity": "sha512-7EIraBEyRHEe7CH+Fm1XvgqU6uwZN8Q7jppJGcqjROMT29qhAuuOxYB1uEY5UMYQKEmA5D+5tBnhdaPXSsLONA=="
11 - },
12 - "accepts": {
13 - "version": "1.3.7",
14 - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz",
15 - "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==",
16 - "requires": {
17 - "mime-types": "~2.1.24",
18 - "negotiator": "0.6.2"
19 - }
20 - },
21 - "array-flatten": {
22 - "version": "1.1.1",
23 - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
24 - "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI="
25 - },
26 - "body-parser": {
27 - "version": "1.19.0",
28 - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz",
29 - "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==",
30 - "requires": {
31 - "bytes": "3.1.0",
32 - "content-type": "~1.0.4",
33 - "debug": "2.6.9",
34 - "depd": "~1.1.2",
35 - "http-errors": "1.7.2",
36 - "iconv-lite": "0.4.24",
37 - "on-finished": "~2.3.0",
38 - "qs": "6.7.0",
39 - "raw-body": "2.4.0",
40 - "type-is": "~1.6.17"
41 - }
42 - },
43 - "bytes": {
44 - "version": "3.1.0",
45 - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz",
46 - "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg=="
47 - },
48 - "content-disposition": {
49 - "version": "0.5.3",
50 - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz",
51 - "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==",
52 - "requires": {
53 - "safe-buffer": "5.1.2"
54 - }
55 - },
56 - "content-type": {
57 - "version": "1.0.4",
58 - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz",
59 - "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA=="
60 - },
61 - "cookie": {
62 - "version": "0.4.0",
63 - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz",
64 - "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg=="
65 - },
66 - "cookie-signature": {
67 - "version": "1.0.6",
68 - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
69 - "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw="
70 - },
71 - "debug": {
72 - "version": "2.6.9",
73 - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
74 - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
75 - "requires": {
76 - "ms": "2.0.0"
77 - }
78 - },
79 - "depd": {
80 - "version": "1.1.2",
81 - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
82 - "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak="
83 - },
84 - "destroy": {
85 - "version": "1.0.4",
86 - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz",
87 - "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA="
88 - },
89 - "ee-first": {
90 - "version": "1.1.1",
91 - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
92 - "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="
93 - },
94 - "encodeurl": {
95 - "version": "1.0.2",
96 - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
97 - "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k="
98 - },
99 - "escape-html": {
100 - "version": "1.0.3",
101 - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
102 - "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg="
103 - },
104 - "etag": {
105 - "version": "1.8.1",
106 - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
107 - "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc="
108 - },
109 - "express": {
110 - "version": "4.17.1",
111 - "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz",
112 - "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==",
113 - "requires": {
114 - "accepts": "~1.3.7",
115 - "array-flatten": "1.1.1",
116 - "body-parser": "1.19.0",
117 - "content-disposition": "0.5.3",
118 - "content-type": "~1.0.4",
119 - "cookie": "0.4.0",
120 - "cookie-signature": "1.0.6",
121 - "debug": "2.6.9",
122 - "depd": "~1.1.2",
123 - "encodeurl": "~1.0.2",
124 - "escape-html": "~1.0.3",
125 - "etag": "~1.8.1",
126 - "finalhandler": "~1.1.2",
127 - "fresh": "0.5.2",
128 - "merge-descriptors": "1.0.1",
129 - "methods": "~1.1.2",
130 - "on-finished": "~2.3.0",
131 - "parseurl": "~1.3.3",
132 - "path-to-regexp": "0.1.7",
133 - "proxy-addr": "~2.0.5",
134 - "qs": "6.7.0",
135 - "range-parser": "~1.2.1",
136 - "safe-buffer": "5.1.2",
137 - "send": "0.17.1",
138 - "serve-static": "1.14.1",
139 - "setprototypeof": "1.1.1",
140 - "statuses": "~1.5.0",
141 - "type-is": "~1.6.18",
142 - "utils-merge": "1.0.1",
143 - "vary": "~1.1.2"
144 - }
145 - },
146 - "finalhandler": {
147 - "version": "1.1.2",
148 - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz",
149 - "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==",
150 - "requires": {
151 - "debug": "2.6.9",
152 - "encodeurl": "~1.0.2",
153 - "escape-html": "~1.0.3",
154 - "on-finished": "~2.3.0",
155 - "parseurl": "~1.3.3",
156 - "statuses": "~1.5.0",
157 - "unpipe": "~1.0.0"
158 - }
159 - },
160 - "forwarded": {
161 - "version": "0.1.2",
162 - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz",
163 - "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ="
164 - },
165 - "fresh": {
166 - "version": "0.5.2",
167 - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
168 - "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac="
169 - },
170 - "http-errors": {
171 - "version": "1.7.2",
172 - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz",
173 - "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==",
174 - "requires": {
175 - "depd": "~1.1.2",
176 - "inherits": "2.0.3",
177 - "setprototypeof": "1.1.1",
178 - "statuses": ">= 1.5.0 < 2",
179 - "toidentifier": "1.0.0"
180 - }
181 - },
182 - "iconv-lite": {
183 - "version": "0.4.24",
184 - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
185 - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
186 - "requires": {
187 - "safer-buffer": ">= 2.1.2 < 3"
188 - }
189 - },
190 - "inherits": {
191 - "version": "2.0.3",
192 - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
193 - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
194 - },
195 - "ipaddr.js": {
196 - "version": "1.9.1",
197 - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
198 - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g=="
199 - },
200 - "media-typer": {
201 - "version": "0.3.0",
202 - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
203 - "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g="
204 - },
205 - "merge-descriptors": {
206 - "version": "1.0.1",
207 - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
208 - "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E="
209 - },
210 - "methods": {
211 - "version": "1.1.2",
212 - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
213 - "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4="
214 - },
215 - "mime": {
216 - "version": "1.6.0",
217 - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
218 - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="
219 - },
220 - "mime-db": {
221 - "version": "1.47.0",
222 - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.47.0.tgz",
223 - "integrity": "sha512-QBmA/G2y+IfeS4oktet3qRZ+P5kPhCKRXxXnQEudYqUaEioAU1/Lq2us3D/t1Jfo4hE9REQPrbB7K5sOczJVIw=="
224 - },
225 - "mime-types": {
226 - "version": "2.1.30",
227 - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.30.tgz",
228 - "integrity": "sha512-crmjA4bLtR8m9qLpHvgxSChT+XoSlZi8J4n/aIdn3z92e/U47Z0V/yl+Wh9W046GgFVAmoNR/fmdbZYcSSIUeg==",
229 - "requires": {
230 - "mime-db": "1.47.0"
231 - }
232 - },
233 - "ms": {
234 - "version": "2.0.0",
235 - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
236 - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
237 - },
238 - "negotiator": {
239 - "version": "0.6.2",
240 - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz",
241 - "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw=="
242 - },
243 - "node-fetch": {
244 - "version": "2.6.1",
245 - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz",
246 - "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw=="
247 - },
248 - "on-finished": {
249 - "version": "2.3.0",
250 - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",
251 - "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=",
252 - "requires": {
253 - "ee-first": "1.1.1"
254 - }
255 - },
256 - "parseurl": {
257 - "version": "1.3.3",
258 - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
259 - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ=="
260 - },
261 - "path-to-regexp": {
262 - "version": "0.1.7",
263 - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
264 - "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w="
265 - },
266 - "proxy-addr": {
267 - "version": "2.0.6",
268 - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz",
269 - "integrity": "sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw==",
270 - "requires": {
271 - "forwarded": "~0.1.2",
272 - "ipaddr.js": "1.9.1"
273 - }
274 - },
275 - "qs": {
276 - "version": "6.7.0",
277 - "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz",
278 - "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ=="
279 - },
280 - "range-parser": {
281 - "version": "1.2.1",
282 - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
283 - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="
284 - },
285 - "raw-body": {
286 - "version": "2.4.0",
287 - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz",
288 - "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==",
289 - "requires": {
290 - "bytes": "3.1.0",
291 - "http-errors": "1.7.2",
292 - "iconv-lite": "0.4.24",
293 - "unpipe": "1.0.0"
294 - }
295 - },
296 - "safe-buffer": {
297 - "version": "5.1.2",
298 - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
299 - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
300 - },
301 - "safer-buffer": {
302 - "version": "2.1.2",
303 - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
304 - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
305 - },
306 - "send": {
307 - "version": "0.17.1",
308 - "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz",
309 - "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==",
310 - "requires": {
311 - "debug": "2.6.9",
312 - "depd": "~1.1.2",
313 - "destroy": "~1.0.4",
314 - "encodeurl": "~1.0.2",
315 - "escape-html": "~1.0.3",
316 - "etag": "~1.8.1",
317 - "fresh": "0.5.2",
318 - "http-errors": "~1.7.2",
319 - "mime": "1.6.0",
320 - "ms": "2.1.1",
321 - "on-finished": "~2.3.0",
322 - "range-parser": "~1.2.1",
323 - "statuses": "~1.5.0"
324 - },
325 - "dependencies": {
326 - "ms": {
327 - "version": "2.1.1",
328 - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
329 - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg=="
330 - }
331 - }
332 - },
333 - "serve-static": {
334 - "version": "1.14.1",
335 - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz",
336 - "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==",
337 - "requires": {
338 - "encodeurl": "~1.0.2",
339 - "escape-html": "~1.0.3",
340 - "parseurl": "~1.3.3",
341 - "send": "0.17.1"
342 - }
343 - },
344 - "setprototypeof": {
345 - "version": "1.1.1",
346 - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz",
347 - "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw=="
348 - },
349 - "statuses": {
350 - "version": "1.5.0",
351 - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz",
352 - "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow="
353 - },
354 - "toidentifier": {
355 - "version": "1.0.0",
356 - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz",
357 - "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw=="
358 - },
359 - "type-is": {
360 - "version": "1.6.18",
361 - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
362 - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
363 - "requires": {
364 - "media-typer": "0.3.0",
365 - "mime-types": "~2.1.24"
366 - }
367 - },
368 - "unpipe": {
369 - "version": "1.0.0",
370 - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
371 - "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw="
372 - },
373 - "utils-merge": {
374 - "version": "1.0.1",
375 - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
376 - "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM="
377 - },
378 - "vary": {
379 - "version": "1.1.2",
380 - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
381 - "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw="
382 - },
383 - "ws": {
384 - "version": "7.4.6",
385 - "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz",
386 - "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A=="
387 - }
388 - }
389 -}
1 -{
2 - "name": "coin-trade-assistant",
3 - "version": "1.0.0",
4 - "description": "",
5 - "main": "test.js",
6 - "scripts": {
7 - "test": "echo \"Error: no test specified\" && exit 1"
8 - },
9 - "repository": {
10 - "type": "git",
11 - "url": "http://khuhub.khu.ac.kr/2018102235/Coin-trade-assistant.git"
12 - },
13 - "author": "",
14 - "license": "ISC",
15 - "dependencies": {
16 - "@types/node": "^15.6.1",
17 - "express": "^4.17.1",
18 - "node-fetch": "^2.6.1",
19 - "ws": "^7.4.6"
20 - }
21 -}
1 -const express = require('express');
2 -const app = express();
3 -
4 -const fetch = require('node-fetch');
5 -const api_key = '';//Delete before commit API ddaro bonae jum.
6 -
7 -const url = 'https://api.whale-alert.io/v1/status?api_key=' + api_key;
8 -const options = {method: 'GET', headers: {Accept: 'application/json'}};
9 -
10 -fetch(url, options)
11 - .then(res => res.json())
12 - .then(json => console.log(json))
13 - .catch(err => console.error('error:' + err));
14 -
15 -
16 -const url2 = 'https://api.whale-alert.io/v1/transactions?api_key=' + api_key;
17 -
18 -function data_collector(data){
19 - var ret = '';
20 - var str = '';
21 - for(var i = 0; i < data.transactions.length; i++){
22 - str = '#' + (i+1)+' ChainName: '+data.transactions[i].blockchain+'\tAmount: '+data.transactions[i].amount+' USD'
23 - if(data.transactions[i].amount > 1000000){
24 - str = '=====!WARNING!=====\n</br>' + str + '\n</br>=====!WARNING!====='
25 - console.log(str)
26 - }
27 - else{
28 - console.log(str)
29 - }
30 - ret += '</br>' + str;
31 - }
32 - console.log(data.transactions)
33 - console.log(typeof(data.transactions))
34 - return ret;
35 -}
36 -
37 -app.get('/', function (req, res) {
38 - result = ""
39 - if(req.query.hi == "hi"){
40 - result = "yes!"
41 - }
42 - else{
43 - result = "no!"
44 - }
45 - res.send(result)
46 -})
47 -
48 -var server = app.listen(23023)
...\ No newline at end of file ...\ No newline at end of file