glassnode 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,95 @@
1
+ module Glassnode
2
+ module RESTv1Mining
3
+
4
+ #Tier: 1
5
+ #Params
6
+ # a: asset symbol
7
+ # c: ["NATIVE"]
8
+ # i: ["1h", "24h", "10m", "1month", "1w"]
9
+ def difficulty_mean(params={})
10
+ authenticated_get("metrics/mining/difficulty_mean", params: params).body
11
+ end
12
+
13
+ #Tier: 1
14
+ #Params
15
+ # a: asset symbol
16
+ # c: ["NATIVE"]
17
+ # i: ["1h", "24h", "10m", "1month", "1w"]
18
+ def difficulty_latest(params={})
19
+ authenticated_get("metrics/mining/difficulty_latest", params: params).body
20
+ end
21
+
22
+ #Tier: 1
23
+ #Params
24
+ # a: asset symbol
25
+ # c: ["NATIVE"]
26
+ # i: ["1h", "24h", "10m", "1month", "1w"]
27
+ def hash_rate_mean(params={})
28
+ authenticated_get("metrics/mining/hash_rate_mean", params: params).body
29
+ end
30
+
31
+ #Tier: 2
32
+ #Params
33
+ # a: asset symbol
34
+ # c: ["NATIVE", "USD"]
35
+ # i: ["1h", "24h"]
36
+ def revenue_sum(params={})
37
+ authenticated_get("metrics/mining/revenue_sum", params: params).body
38
+ end
39
+
40
+ #Tier: 2
41
+ #Params
42
+ # a: asset symbol
43
+ # c: ["NATIVE"]
44
+ # i: ["1h", "24h", "10m"]
45
+ def revenue_from_fees(params={})
46
+ authenticated_get("metrics/mining/revenue_from_fees", params: params).body
47
+ end
48
+
49
+ #Tier: 2
50
+ #Params
51
+ # a: asset symbol
52
+ # c: ["NATIVE"]
53
+ # i: ["1h", "24h", "10m"]
54
+ def volume_mined_sum(params={})
55
+ authenticated_get("metrics/mining/volume_mined_sum", params: params).body
56
+ end
57
+
58
+ #Tier: 3
59
+ #Params
60
+ # a: asset symbol
61
+ # c: ["NATIVE"]
62
+ # i: ["1h", "24h", "10m"]
63
+ def miners_outflow_multiple(params={})
64
+ authenticated_get("metrics/mining/miners_outflow_multiple", params: params).body
65
+ end
66
+
67
+ #Tier: 2
68
+ #Params
69
+ # a: asset symbol
70
+ # c: ["USD"]
71
+ # i: ["1h", "24h"]
72
+ def thermocap(params={})
73
+ authenticated_get("metrics/mining/thermocap", params: params).body
74
+ end
75
+
76
+ #Tier: 2
77
+ #Params
78
+ # a: asset symbol
79
+ # c: ["NATIVE"]
80
+ # i: ["1h", "24h"]
81
+ def marketcap_thermocap_ratio(params={})
82
+ authenticated_get("metrics/mining/marketcap_thermocap_ratio", params: params).body
83
+ end
84
+
85
+ #Tier: 3
86
+ #Params
87
+ # a: asset symbol
88
+ # c: ["NATIVE", "USD"]
89
+ # i: ["1month", "1w", "24h", "1h", "10m"]
90
+ def miners_unspent_supply(params={})
91
+ authenticated_get("metrics/mining/miners_unspent_supply", params: params).body
92
+ end
93
+
94
+ end
95
+ end
@@ -0,0 +1,32 @@
1
+ module Glassnode
2
+ module RESTv1Protocols
3
+
4
+ #Tier: 1
5
+ #Params
6
+ # a: asset symbol
7
+ # c: ["NATIVE"]
8
+ # i: ["24h", "1h"]
9
+ def uniswap_transaction_count(params={})
10
+ authenticated_get("metrics/protocols/uniswap_transaction_count", params: params).body
11
+ end
12
+
13
+ #Tier: 1
14
+ #Params
15
+ # a: asset symbol
16
+ # c: ["NATIVE", "USD"]
17
+ # i: ["24h"]
18
+ def uniswap_liquidity_latest(params={})
19
+ authenticated_get("metrics/protocols/uniswap_liquidity_latest", params: params).body
20
+ end
21
+
22
+ #Tier: 1
23
+ #Params
24
+ # a: asset symbol
25
+ # c: ["NATIVE", "USD"]
26
+ # i: ["24h", "1h"]
27
+ def uniswap_volume_sum(params={})
28
+ authenticated_get("metrics/protocols/uniswap_volume_sum", params: params).body
29
+ end
30
+
31
+ end
32
+ end
@@ -0,0 +1,437 @@
1
+ module Glassnode
2
+ module RESTv1Supply
3
+
4
+ #Tier: 3
5
+ #Params
6
+ # a: asset symbol
7
+ # c: ["NATIVE", "USD"]
8
+ # i: ["24h"]
9
+ def liquid_illiquid_sum(params={})
10
+ authenticated_get("metrics/supply/liquid_illiquid_sum", params: params).body
11
+ end
12
+
13
+ #Tier: 3
14
+ #Params
15
+ # a: asset symbol
16
+ # c: ["NATIVE", "USD"]
17
+ # i: ["24h"]
18
+ def liquid_sum(params={})
19
+ authenticated_get("metrics/supply/liquid_sum", params: params).body
20
+ end
21
+
22
+ #Tier: 3
23
+ #Params
24
+ # a: asset symbol
25
+ # c: ["NATIVE", "USD"]
26
+ # i: ["24h"]
27
+ def highly_liquid_sum(params={})
28
+ authenticated_get("metrics/supply/highly_liquid_sum", params: params).body
29
+ end
30
+
31
+ #Tier: 3
32
+ #Params
33
+ # a: asset symbol
34
+ # c: ["NATIVE", "USD"]
35
+ # i: ["24h"]
36
+ def illiquid_sum(params={})
37
+ authenticated_get("metrics/supply/illiquid_sum", params: params).body
38
+ end
39
+
40
+ #Tier: 3
41
+ #Params
42
+ # a: asset symbol
43
+ # c: ["NATIVE"]
44
+ # i: ["24h"]
45
+ def liquid_change(params={})
46
+ authenticated_get("metrics/supply/liquid_change", params: params).body
47
+ end
48
+
49
+ #Tier: 3
50
+ #Params
51
+ # a: asset symbol
52
+ # c: ["NATIVE"]
53
+ # i: ["24h"]
54
+ def illiquid_change(params={})
55
+ authenticated_get("metrics/supply/illiquid_change", params: params).body
56
+ end
57
+
58
+ #Tier: 1
59
+ #Params
60
+ # a: asset symbol
61
+ # c: ["USD", "NATIVE"]
62
+ # i: ["1h", "24h", "10m", "1w", "1month"]
63
+ def current(params={})
64
+ authenticated_get("metrics/supply/current", params: params).body
65
+ end
66
+
67
+ #Tier: 2
68
+ #Params
69
+ # a: asset symbol
70
+ # c: ["NATIVE", "USD"]
71
+ # i: ["10m", "1h", "24h", "1w", "1month"]
72
+ def minted(params={})
73
+ authenticated_get("metrics/supply/minted", params: params).body
74
+ end
75
+
76
+ #Tier: 2
77
+ #Params
78
+ # a: asset symbol
79
+ # c: ["NATIVE", "USD"]
80
+ # i: ["10m", "1h", "24h", "1w", "1month"]
81
+ def burned(params={})
82
+ authenticated_get("metrics/supply/burned", params: params).body
83
+ end
84
+
85
+ #Tier: 2
86
+ #Params
87
+ # a: asset symbol
88
+ # c: ["USD", "NATIVE"]
89
+ # i: ["1h", "24h", "10m"]
90
+ def issued(params={})
91
+ authenticated_get("metrics/supply/issued", params: params).body
92
+ end
93
+
94
+ #Tier: 2
95
+ #Params
96
+ # a: asset symbol
97
+ # c: ["NATIVE"]
98
+ # i: ["1h", "24h"]
99
+ def inflation_rate(params={})
100
+ authenticated_get("metrics/supply/inflation_rate", params: params).body
101
+ end
102
+
103
+ #Tier: 3
104
+ #Params
105
+ # a: asset symbol
106
+ # c: ["NATIVE", "USD"]
107
+ # i: ["1h", "24h", "10m"]
108
+ def revived_more_1y_sum(params={})
109
+ authenticated_get("metrics/supply/revived_more_1y_sum", params: params).body
110
+ end
111
+
112
+ #Tier: 3
113
+ #Params
114
+ # a: asset symbol
115
+ # c: ["NATIVE", "USD"]
116
+ # i: ["1h", "24h", "10m"]
117
+ def revived_more_2y_sum(params={})
118
+ authenticated_get("metrics/supply/revived_more_2y_sum", params: params).body
119
+ end
120
+
121
+ #Tier: 3
122
+ #Params
123
+ # a: asset symbol
124
+ # c: ["NATIVE", "USD"]
125
+ # i: ["1h", "24h", "10m"]
126
+ def revived_more_3y_sum(params={})
127
+ authenticated_get("metrics/supply/revived_more_3y_sum", params: params).body
128
+ end
129
+
130
+ #Tier: 3
131
+ #Params
132
+ # a: asset symbol
133
+ # c: ["NATIVE", "USD"]
134
+ # i: ["1h", "24h", "10m"]
135
+ def revived_more_5y_sum(params={})
136
+ authenticated_get("metrics/supply/revived_more_5y_sum", params: params).body
137
+ end
138
+
139
+ #Tier: 2
140
+ #Params
141
+ # a: asset symbol
142
+ # c: ["NATIVE", "USD"]
143
+ # i: ["1h", "24h"]
144
+ def active_24h(params={})
145
+ authenticated_get("metrics/supply/active_24h", params: params).body
146
+ end
147
+
148
+ #Tier: 2
149
+ #Params
150
+ # a: asset symbol
151
+ # c: ["NATIVE", "USD"]
152
+ # i: ["1h", "24h"]
153
+ def active_1d_1w(params={})
154
+ authenticated_get("metrics/supply/active_1d_1w", params: params).body
155
+ end
156
+
157
+ #Tier: 2
158
+ #Params
159
+ # a: asset symbol
160
+ # c: ["NATIVE", "USD"]
161
+ # i: ["1h", "24h"]
162
+ def active_1w_1m(params={})
163
+ authenticated_get("metrics/supply/active_1w_1m", params: params).body
164
+ end
165
+
166
+ #Tier: 2
167
+ #Params
168
+ # a: asset symbol
169
+ # c: ["NATIVE", "USD"]
170
+ # i: ["1h", "24h"]
171
+ def active_1m_3m(params={})
172
+ authenticated_get("metrics/supply/active_1m_3m", params: params).body
173
+ end
174
+
175
+ #Tier: 2
176
+ #Params
177
+ # a: asset symbol
178
+ # c: ["NATIVE", "USD"]
179
+ # i: ["1h", "24h"]
180
+ def active_3m_6m(params={})
181
+ authenticated_get("metrics/supply/active_3m_6m", params: params).body
182
+ end
183
+
184
+ #Tier: 2
185
+ #Params
186
+ # a: asset symbol
187
+ # c: ["NATIVE", "USD"]
188
+ # i: ["1h", "24h"]
189
+ def active_6m_12m(params={})
190
+ authenticated_get("metrics/supply/active_6m_12m", params: params).body
191
+ end
192
+
193
+ #Tier: 2
194
+ #Params
195
+ # a: asset symbol
196
+ # c: ["NATIVE", "USD"]
197
+ # i: ["1h", "24h"]
198
+ def active_1y_2y(params={})
199
+ authenticated_get("metrics/supply/active_1y_2y", params: params).body
200
+ end
201
+
202
+ #Tier: 2
203
+ #Params
204
+ # a: asset symbol
205
+ # c: ["NATIVE", "USD"]
206
+ # i: ["1h", "24h"]
207
+ def active_2y_3y(params={})
208
+ authenticated_get("metrics/supply/active_2y_3y", params: params).body
209
+ end
210
+
211
+ #Tier: 2
212
+ #Params
213
+ # a: asset symbol
214
+ # c: ["NATIVE", "USD"]
215
+ # i: ["1h", "24h"]
216
+ def active_3y_5y(params={})
217
+ authenticated_get("metrics/supply/active_3y_5y", params: params).body
218
+ end
219
+
220
+ #Tier: 2
221
+ #Params
222
+ # a: asset symbol
223
+ # c: ["NATIVE", "USD"]
224
+ # i: ["1h", "24h"]
225
+ def active_5y_7y(params={})
226
+ authenticated_get("metrics/supply/active_5y_7y", params: params).body
227
+ end
228
+
229
+ #Tier: 2
230
+ #Params
231
+ # a: asset symbol
232
+ # c: ["NATIVE", "USD"]
233
+ # i: ["1h", "24h"]
234
+ def active_7y_10y(params={})
235
+ authenticated_get("metrics/supply/active_7y_10y", params: params).body
236
+ end
237
+
238
+ #Tier: 2
239
+ #Params
240
+ # a: asset symbol
241
+ # c: ["NATIVE", "USD"]
242
+ # i: ["1h", "24h"]
243
+ def active_more_10y(params={})
244
+ authenticated_get("metrics/supply/active_more_10y", params: params).body
245
+ end
246
+
247
+ #Tier: 2
248
+ #Params
249
+ # a: asset symbol
250
+ # c: ["NATIVE"]
251
+ # i: ["24h"]
252
+ def hodl_waves(params={})
253
+ authenticated_get("metrics/supply/hodl_waves", params: params).body
254
+ end
255
+
256
+ #Tier: 1
257
+ #Params
258
+ # a: asset symbol
259
+ # c: ["NATIVE"]
260
+ # i: ["1h", "24h"]
261
+ def active_more_1y_percent(params={})
262
+ authenticated_get("metrics/supply/active_more_1y_percent", params: params).body
263
+ end
264
+
265
+ #Tier: 2
266
+ #Params
267
+ # a: asset symbol
268
+ # c: ["NATIVE"]
269
+ # i: ["1h", "24h"]
270
+ def active_more_2y_percent(params={})
271
+ authenticated_get("metrics/supply/active_more_2y_percent", params: params).body
272
+ end
273
+
274
+ #Tier: 2
275
+ #Params
276
+ # a: asset symbol
277
+ # c: ["NATIVE"]
278
+ # i: ["1h", "24h"]
279
+ def active_more_3y_percent(params={})
280
+ authenticated_get("metrics/supply/active_more_3y_percent", params: params).body
281
+ end
282
+
283
+ #Tier: 2
284
+ #Params
285
+ # a: asset symbol
286
+ # c: ["NATIVE"]
287
+ # i: ["1h", "24h"]
288
+ def active_more_5y_percent(params={})
289
+ authenticated_get("metrics/supply/active_more_5y_percent", params: params).body
290
+ end
291
+
292
+ #Tier: 2
293
+ #Params
294
+ # a: asset symbol
295
+ # c: ["NATIVE"]
296
+ # i: ["24h"]
297
+ def rcap_hodl_waves(params={})
298
+ authenticated_get("metrics/supply/rcap_hodl_waves", params: params).body
299
+ end
300
+
301
+ #Tier: 3
302
+ #Params
303
+ # a: asset symbol
304
+ # c: ["USD"]
305
+ # i: ["1h", "24h"]
306
+ def sth_lth_realized_value_ratio(params={})
307
+ authenticated_get("metrics/supply/sth_lth_realized_value_ratio", params: params).body
308
+ end
309
+
310
+ #Tier: 2
311
+ #Params
312
+ # a: asset symbol
313
+ # c: ["NATIVE", "USD"]
314
+ # i: ["1h", "24h"]
315
+ def current_adjusted(params={})
316
+ authenticated_get("metrics/supply/current_adjusted", params: params).body
317
+ end
318
+
319
+ #Tier: 2
320
+ #Params
321
+ # a: asset symbol
322
+ # c: ["USD"]
323
+ # i: ["1h", "24h"]
324
+ def profit_sum(params={})
325
+ authenticated_get("metrics/supply/profit_sum", params: params).body
326
+ end
327
+
328
+ #Tier: 2
329
+ #Params
330
+ # a: asset symbol
331
+ # c: ["USD"]
332
+ # i: ["1h", "24h"]
333
+ def loss_sum(params={})
334
+ authenticated_get("metrics/supply/loss_sum", params: params).body
335
+ end
336
+
337
+ #Tier: 2
338
+ #Params
339
+ # a: asset symbol
340
+ # c: ["NATIVE"]
341
+ # i: ["1h", "24h"]
342
+ def profit_relative(params={})
343
+ authenticated_get("metrics/supply/profit_relative", params: params).body
344
+ end
345
+
346
+ #Tier: 3
347
+ #Params
348
+ # a: asset symbol
349
+ # c: ["NATIVE", "USD"]
350
+ # i: ["24h"]
351
+ def sth_sum(params={})
352
+ authenticated_get("metrics/supply/sth_sum", params: params).body
353
+ end
354
+
355
+ #Tier: 3
356
+ #Params
357
+ # a: asset symbol
358
+ # c: ["NATIVE", "USD"]
359
+ # i: ["24h"]
360
+ def lth_sum(params={})
361
+ authenticated_get("metrics/supply/lth_sum", params: params).body
362
+ end
363
+
364
+ #Tier: 3
365
+ #Params
366
+ # a: asset symbol
367
+ # c: ["NATIVE", "USD"]
368
+ # i: ["24h"]
369
+ def sth_loss_sum(params={})
370
+ authenticated_get("metrics/supply/sth_loss_sum", params: params).body
371
+ end
372
+
373
+ #Tier: 3
374
+ #Params
375
+ # a: asset symbol
376
+ # c: ["NATIVE", "USD"]
377
+ # i: ["24h"]
378
+ def lth_loss_sum(params={})
379
+ authenticated_get("metrics/supply/lth_loss_sum", params: params).body
380
+ end
381
+
382
+ #Tier: 3
383
+ #Params
384
+ # a: asset symbol
385
+ # c: ["NATIVE", "USD"]
386
+ # i: ["24h"]
387
+ def sth_profit_sum(params={})
388
+ authenticated_get("metrics/supply/sth_profit_sum", params: params).body
389
+ end
390
+
391
+ #Tier: 3
392
+ #Params
393
+ # a: asset symbol
394
+ # c: ["NATIVE", "USD"]
395
+ # i: ["24h"]
396
+ def lth_profit_sum(params={})
397
+ authenticated_get("metrics/supply/lth_profit_sum", params: params).body
398
+ end
399
+
400
+ #Tier: 3
401
+ #Params
402
+ # a: asset symbol
403
+ # c: ["NATIVE"]
404
+ # i: ["24h"]
405
+ def lth_sth_profit_loss_relative(params={})
406
+ authenticated_get("metrics/supply/lth_sth_profit_loss_relative", params: params).body
407
+ end
408
+
409
+ #Tier: 3
410
+ #Params
411
+ # a: asset symbol
412
+ # c: ["NATIVE"]
413
+ # i: ["24h"]
414
+ def lth_net_change(params={})
415
+ authenticated_get("metrics/supply/lth_net_change", params: params).body
416
+ end
417
+
418
+ #Tier: 3
419
+ #Params
420
+ # a: asset symbol
421
+ # c: ["NATIVE"]
422
+ # i: ["24h"]
423
+ def sth_profit_loss_ratio(params={})
424
+ authenticated_get("metrics/supply/sth_profit_loss_ratio", params: params).body
425
+ end
426
+
427
+ #Tier: 2
428
+ #Params
429
+ # a: asset symbol
430
+ # c: ["USD"]
431
+ # i: ["24h"]
432
+ def supply_by_txout_type(params={})
433
+ authenticated_get("metrics/supply/supply_by_txout_type", params: params).body
434
+ end
435
+
436
+ end
437
+ end