glassnode 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/lib/rest/v1/addresses.rb +39 -39
- data/lib/rest/v1/assets.rb +1 -1
- data/lib/rest/v1/blockchain.rb +18 -18
- data/lib/rest/v1/defi.rb +1 -1
- data/lib/rest/v1/derivatives.rb +39 -39
- data/lib/rest/v1/distribution.rb +15 -15
- data/lib/rest/v1/entities.rb +18 -18
- data/lib/rest/v1/eth2.rb +8 -8
- data/lib/rest/v1/fees.rb +16 -16
- data/lib/rest/v1/indicators.rb +99 -99
- data/lib/rest/v1/institutions.rb +32 -32
- data/lib/rest/v1/lightning.rb +10 -10
- data/lib/rest/v1/market.rb +15 -15
- data/lib/rest/v1/mempool.rb +10 -10
- data/lib/rest/v1/mining.rb +10 -10
- data/lib/rest/v1/protocols.rb +3 -3
- data/lib/rest/v1/supply.rb +48 -48
- data/lib/rest/v1/transactions.rb +53 -53
- data/lib/rest/v2/endpoints.rb +1 -1
- metadata +2 -2
data/lib/rest/v1/protocols.rb
CHANGED
@@ -6,7 +6,7 @@ module Glassnode
|
|
6
6
|
# a: asset symbol
|
7
7
|
# c: ["NATIVE"]
|
8
8
|
# i: ["24h", "1h"]
|
9
|
-
def
|
9
|
+
def protocols_uniswap_transaction_count(params={})
|
10
10
|
authenticated_get("metrics/protocols/uniswap_transaction_count", params: params).body
|
11
11
|
end
|
12
12
|
|
@@ -15,7 +15,7 @@ module Glassnode
|
|
15
15
|
# a: asset symbol
|
16
16
|
# c: ["NATIVE", "USD"]
|
17
17
|
# i: ["24h"]
|
18
|
-
def
|
18
|
+
def protocols_uniswap_liquidity_latest(params={})
|
19
19
|
authenticated_get("metrics/protocols/uniswap_liquidity_latest", params: params).body
|
20
20
|
end
|
21
21
|
|
@@ -24,7 +24,7 @@ module Glassnode
|
|
24
24
|
# a: asset symbol
|
25
25
|
# c: ["NATIVE", "USD"]
|
26
26
|
# i: ["24h", "1h"]
|
27
|
-
def
|
27
|
+
def protocols_uniswap_volume_sum(params={})
|
28
28
|
authenticated_get("metrics/protocols/uniswap_volume_sum", params: params).body
|
29
29
|
end
|
30
30
|
|
data/lib/rest/v1/supply.rb
CHANGED
@@ -6,7 +6,7 @@ module Glassnode
|
|
6
6
|
# a: asset symbol
|
7
7
|
# c: ["NATIVE", "USD"]
|
8
8
|
# i: ["24h"]
|
9
|
-
def
|
9
|
+
def supply_liquid_illiquid_sum(params={})
|
10
10
|
authenticated_get("metrics/supply/liquid_illiquid_sum", params: params).body
|
11
11
|
end
|
12
12
|
|
@@ -15,7 +15,7 @@ module Glassnode
|
|
15
15
|
# a: asset symbol
|
16
16
|
# c: ["NATIVE", "USD"]
|
17
17
|
# i: ["24h"]
|
18
|
-
def
|
18
|
+
def supply_liquid_sum(params={})
|
19
19
|
authenticated_get("metrics/supply/liquid_sum", params: params).body
|
20
20
|
end
|
21
21
|
|
@@ -24,7 +24,7 @@ module Glassnode
|
|
24
24
|
# a: asset symbol
|
25
25
|
# c: ["NATIVE", "USD"]
|
26
26
|
# i: ["24h"]
|
27
|
-
def
|
27
|
+
def supply_highly_liquid_sum(params={})
|
28
28
|
authenticated_get("metrics/supply/highly_liquid_sum", params: params).body
|
29
29
|
end
|
30
30
|
|
@@ -33,7 +33,7 @@ module Glassnode
|
|
33
33
|
# a: asset symbol
|
34
34
|
# c: ["NATIVE", "USD"]
|
35
35
|
# i: ["24h"]
|
36
|
-
def
|
36
|
+
def supply_illiquid_sum(params={})
|
37
37
|
authenticated_get("metrics/supply/illiquid_sum", params: params).body
|
38
38
|
end
|
39
39
|
|
@@ -42,7 +42,7 @@ module Glassnode
|
|
42
42
|
# a: asset symbol
|
43
43
|
# c: ["NATIVE"]
|
44
44
|
# i: ["24h"]
|
45
|
-
def
|
45
|
+
def supply_liquid_change(params={})
|
46
46
|
authenticated_get("metrics/supply/liquid_change", params: params).body
|
47
47
|
end
|
48
48
|
|
@@ -51,7 +51,7 @@ module Glassnode
|
|
51
51
|
# a: asset symbol
|
52
52
|
# c: ["NATIVE"]
|
53
53
|
# i: ["24h"]
|
54
|
-
def
|
54
|
+
def supply_illiquid_change(params={})
|
55
55
|
authenticated_get("metrics/supply/illiquid_change", params: params).body
|
56
56
|
end
|
57
57
|
|
@@ -60,7 +60,7 @@ module Glassnode
|
|
60
60
|
# a: asset symbol
|
61
61
|
# c: ["USD", "NATIVE"]
|
62
62
|
# i: ["1h", "24h", "10m", "1w", "1month"]
|
63
|
-
def
|
63
|
+
def supply_current(params={})
|
64
64
|
authenticated_get("metrics/supply/current", params: params).body
|
65
65
|
end
|
66
66
|
|
@@ -69,7 +69,7 @@ module Glassnode
|
|
69
69
|
# a: asset symbol
|
70
70
|
# c: ["NATIVE", "USD"]
|
71
71
|
# i: ["10m", "1h", "24h", "1w", "1month"]
|
72
|
-
def
|
72
|
+
def supply_minted(params={})
|
73
73
|
authenticated_get("metrics/supply/minted", params: params).body
|
74
74
|
end
|
75
75
|
|
@@ -78,7 +78,7 @@ module Glassnode
|
|
78
78
|
# a: asset symbol
|
79
79
|
# c: ["NATIVE", "USD"]
|
80
80
|
# i: ["10m", "1h", "24h", "1w", "1month"]
|
81
|
-
def
|
81
|
+
def supply_burned(params={})
|
82
82
|
authenticated_get("metrics/supply/burned", params: params).body
|
83
83
|
end
|
84
84
|
|
@@ -87,7 +87,7 @@ module Glassnode
|
|
87
87
|
# a: asset symbol
|
88
88
|
# c: ["USD", "NATIVE"]
|
89
89
|
# i: ["1h", "24h", "10m"]
|
90
|
-
def
|
90
|
+
def supply_issued(params={})
|
91
91
|
authenticated_get("metrics/supply/issued", params: params).body
|
92
92
|
end
|
93
93
|
|
@@ -96,7 +96,7 @@ module Glassnode
|
|
96
96
|
# a: asset symbol
|
97
97
|
# c: ["NATIVE"]
|
98
98
|
# i: ["1h", "24h"]
|
99
|
-
def
|
99
|
+
def supply_inflation_rate(params={})
|
100
100
|
authenticated_get("metrics/supply/inflation_rate", params: params).body
|
101
101
|
end
|
102
102
|
|
@@ -105,7 +105,7 @@ module Glassnode
|
|
105
105
|
# a: asset symbol
|
106
106
|
# c: ["NATIVE", "USD"]
|
107
107
|
# i: ["1h", "24h", "10m"]
|
108
|
-
def
|
108
|
+
def supply_revived_more_1y_sum(params={})
|
109
109
|
authenticated_get("metrics/supply/revived_more_1y_sum", params: params).body
|
110
110
|
end
|
111
111
|
|
@@ -114,7 +114,7 @@ module Glassnode
|
|
114
114
|
# a: asset symbol
|
115
115
|
# c: ["NATIVE", "USD"]
|
116
116
|
# i: ["1h", "24h", "10m"]
|
117
|
-
def
|
117
|
+
def supply_revived_more_2y_sum(params={})
|
118
118
|
authenticated_get("metrics/supply/revived_more_2y_sum", params: params).body
|
119
119
|
end
|
120
120
|
|
@@ -123,7 +123,7 @@ module Glassnode
|
|
123
123
|
# a: asset symbol
|
124
124
|
# c: ["NATIVE", "USD"]
|
125
125
|
# i: ["1h", "24h", "10m"]
|
126
|
-
def
|
126
|
+
def supply_revived_more_3y_sum(params={})
|
127
127
|
authenticated_get("metrics/supply/revived_more_3y_sum", params: params).body
|
128
128
|
end
|
129
129
|
|
@@ -132,7 +132,7 @@ module Glassnode
|
|
132
132
|
# a: asset symbol
|
133
133
|
# c: ["NATIVE", "USD"]
|
134
134
|
# i: ["1h", "24h", "10m"]
|
135
|
-
def
|
135
|
+
def supply_revived_more_5y_sum(params={})
|
136
136
|
authenticated_get("metrics/supply/revived_more_5y_sum", params: params).body
|
137
137
|
end
|
138
138
|
|
@@ -141,7 +141,7 @@ module Glassnode
|
|
141
141
|
# a: asset symbol
|
142
142
|
# c: ["NATIVE", "USD"]
|
143
143
|
# i: ["1h", "24h"]
|
144
|
-
def
|
144
|
+
def supply_active_24h(params={})
|
145
145
|
authenticated_get("metrics/supply/active_24h", params: params).body
|
146
146
|
end
|
147
147
|
|
@@ -150,7 +150,7 @@ module Glassnode
|
|
150
150
|
# a: asset symbol
|
151
151
|
# c: ["NATIVE", "USD"]
|
152
152
|
# i: ["1h", "24h"]
|
153
|
-
def
|
153
|
+
def supply_active_1d_1w(params={})
|
154
154
|
authenticated_get("metrics/supply/active_1d_1w", params: params).body
|
155
155
|
end
|
156
156
|
|
@@ -159,7 +159,7 @@ module Glassnode
|
|
159
159
|
# a: asset symbol
|
160
160
|
# c: ["NATIVE", "USD"]
|
161
161
|
# i: ["1h", "24h"]
|
162
|
-
def
|
162
|
+
def supply_active_1w_1m(params={})
|
163
163
|
authenticated_get("metrics/supply/active_1w_1m", params: params).body
|
164
164
|
end
|
165
165
|
|
@@ -168,7 +168,7 @@ module Glassnode
|
|
168
168
|
# a: asset symbol
|
169
169
|
# c: ["NATIVE", "USD"]
|
170
170
|
# i: ["1h", "24h"]
|
171
|
-
def
|
171
|
+
def supply_active_1m_3m(params={})
|
172
172
|
authenticated_get("metrics/supply/active_1m_3m", params: params).body
|
173
173
|
end
|
174
174
|
|
@@ -177,7 +177,7 @@ module Glassnode
|
|
177
177
|
# a: asset symbol
|
178
178
|
# c: ["NATIVE", "USD"]
|
179
179
|
# i: ["1h", "24h"]
|
180
|
-
def
|
180
|
+
def supply_active_3m_6m(params={})
|
181
181
|
authenticated_get("metrics/supply/active_3m_6m", params: params).body
|
182
182
|
end
|
183
183
|
|
@@ -186,7 +186,7 @@ module Glassnode
|
|
186
186
|
# a: asset symbol
|
187
187
|
# c: ["NATIVE", "USD"]
|
188
188
|
# i: ["1h", "24h"]
|
189
|
-
def
|
189
|
+
def supply_active_6m_12m(params={})
|
190
190
|
authenticated_get("metrics/supply/active_6m_12m", params: params).body
|
191
191
|
end
|
192
192
|
|
@@ -195,7 +195,7 @@ module Glassnode
|
|
195
195
|
# a: asset symbol
|
196
196
|
# c: ["NATIVE", "USD"]
|
197
197
|
# i: ["1h", "24h"]
|
198
|
-
def
|
198
|
+
def supply_active_1y_2y(params={})
|
199
199
|
authenticated_get("metrics/supply/active_1y_2y", params: params).body
|
200
200
|
end
|
201
201
|
|
@@ -204,7 +204,7 @@ module Glassnode
|
|
204
204
|
# a: asset symbol
|
205
205
|
# c: ["NATIVE", "USD"]
|
206
206
|
# i: ["1h", "24h"]
|
207
|
-
def
|
207
|
+
def supply_active_2y_3y(params={})
|
208
208
|
authenticated_get("metrics/supply/active_2y_3y", params: params).body
|
209
209
|
end
|
210
210
|
|
@@ -213,7 +213,7 @@ module Glassnode
|
|
213
213
|
# a: asset symbol
|
214
214
|
# c: ["NATIVE", "USD"]
|
215
215
|
# i: ["1h", "24h"]
|
216
|
-
def
|
216
|
+
def supply_active_3y_5y(params={})
|
217
217
|
authenticated_get("metrics/supply/active_3y_5y", params: params).body
|
218
218
|
end
|
219
219
|
|
@@ -222,7 +222,7 @@ module Glassnode
|
|
222
222
|
# a: asset symbol
|
223
223
|
# c: ["NATIVE", "USD"]
|
224
224
|
# i: ["1h", "24h"]
|
225
|
-
def
|
225
|
+
def supply_active_5y_7y(params={})
|
226
226
|
authenticated_get("metrics/supply/active_5y_7y", params: params).body
|
227
227
|
end
|
228
228
|
|
@@ -231,7 +231,7 @@ module Glassnode
|
|
231
231
|
# a: asset symbol
|
232
232
|
# c: ["NATIVE", "USD"]
|
233
233
|
# i: ["1h", "24h"]
|
234
|
-
def
|
234
|
+
def supply_active_7y_10y(params={})
|
235
235
|
authenticated_get("metrics/supply/active_7y_10y", params: params).body
|
236
236
|
end
|
237
237
|
|
@@ -240,7 +240,7 @@ module Glassnode
|
|
240
240
|
# a: asset symbol
|
241
241
|
# c: ["NATIVE", "USD"]
|
242
242
|
# i: ["1h", "24h"]
|
243
|
-
def
|
243
|
+
def supply_active_more_10y(params={})
|
244
244
|
authenticated_get("metrics/supply/active_more_10y", params: params).body
|
245
245
|
end
|
246
246
|
|
@@ -249,7 +249,7 @@ module Glassnode
|
|
249
249
|
# a: asset symbol
|
250
250
|
# c: ["NATIVE"]
|
251
251
|
# i: ["24h"]
|
252
|
-
def
|
252
|
+
def supply_hodl_waves(params={})
|
253
253
|
authenticated_get("metrics/supply/hodl_waves", params: params).body
|
254
254
|
end
|
255
255
|
|
@@ -258,7 +258,7 @@ module Glassnode
|
|
258
258
|
# a: asset symbol
|
259
259
|
# c: ["NATIVE"]
|
260
260
|
# i: ["1h", "24h"]
|
261
|
-
def
|
261
|
+
def supply_active_more_1y_percent(params={})
|
262
262
|
authenticated_get("metrics/supply/active_more_1y_percent", params: params).body
|
263
263
|
end
|
264
264
|
|
@@ -267,7 +267,7 @@ module Glassnode
|
|
267
267
|
# a: asset symbol
|
268
268
|
# c: ["NATIVE"]
|
269
269
|
# i: ["1h", "24h"]
|
270
|
-
def
|
270
|
+
def supply_active_more_2y_percent(params={})
|
271
271
|
authenticated_get("metrics/supply/active_more_2y_percent", params: params).body
|
272
272
|
end
|
273
273
|
|
@@ -276,7 +276,7 @@ module Glassnode
|
|
276
276
|
# a: asset symbol
|
277
277
|
# c: ["NATIVE"]
|
278
278
|
# i: ["1h", "24h"]
|
279
|
-
def
|
279
|
+
def supply_active_more_3y_percent(params={})
|
280
280
|
authenticated_get("metrics/supply/active_more_3y_percent", params: params).body
|
281
281
|
end
|
282
282
|
|
@@ -285,7 +285,7 @@ module Glassnode
|
|
285
285
|
# a: asset symbol
|
286
286
|
# c: ["NATIVE"]
|
287
287
|
# i: ["1h", "24h"]
|
288
|
-
def
|
288
|
+
def supply_active_more_5y_percent(params={})
|
289
289
|
authenticated_get("metrics/supply/active_more_5y_percent", params: params).body
|
290
290
|
end
|
291
291
|
|
@@ -294,7 +294,7 @@ module Glassnode
|
|
294
294
|
# a: asset symbol
|
295
295
|
# c: ["NATIVE"]
|
296
296
|
# i: ["24h"]
|
297
|
-
def
|
297
|
+
def supply_rcap_hodl_waves(params={})
|
298
298
|
authenticated_get("metrics/supply/rcap_hodl_waves", params: params).body
|
299
299
|
end
|
300
300
|
|
@@ -303,7 +303,7 @@ module Glassnode
|
|
303
303
|
# a: asset symbol
|
304
304
|
# c: ["USD"]
|
305
305
|
# i: ["1h", "24h"]
|
306
|
-
def
|
306
|
+
def supply_sth_lth_realized_value_ratio(params={})
|
307
307
|
authenticated_get("metrics/supply/sth_lth_realized_value_ratio", params: params).body
|
308
308
|
end
|
309
309
|
|
@@ -312,7 +312,7 @@ module Glassnode
|
|
312
312
|
# a: asset symbol
|
313
313
|
# c: ["NATIVE", "USD"]
|
314
314
|
# i: ["1h", "24h"]
|
315
|
-
def
|
315
|
+
def supply_current_adjusted(params={})
|
316
316
|
authenticated_get("metrics/supply/current_adjusted", params: params).body
|
317
317
|
end
|
318
318
|
|
@@ -321,7 +321,7 @@ module Glassnode
|
|
321
321
|
# a: asset symbol
|
322
322
|
# c: ["USD"]
|
323
323
|
# i: ["1h", "24h"]
|
324
|
-
def
|
324
|
+
def supply_profit_sum(params={})
|
325
325
|
authenticated_get("metrics/supply/profit_sum", params: params).body
|
326
326
|
end
|
327
327
|
|
@@ -330,7 +330,7 @@ module Glassnode
|
|
330
330
|
# a: asset symbol
|
331
331
|
# c: ["USD"]
|
332
332
|
# i: ["1h", "24h"]
|
333
|
-
def
|
333
|
+
def supply_loss_sum(params={})
|
334
334
|
authenticated_get("metrics/supply/loss_sum", params: params).body
|
335
335
|
end
|
336
336
|
|
@@ -339,7 +339,7 @@ module Glassnode
|
|
339
339
|
# a: asset symbol
|
340
340
|
# c: ["NATIVE"]
|
341
341
|
# i: ["1h", "24h"]
|
342
|
-
def
|
342
|
+
def supply_profit_relative(params={})
|
343
343
|
authenticated_get("metrics/supply/profit_relative", params: params).body
|
344
344
|
end
|
345
345
|
|
@@ -348,7 +348,7 @@ module Glassnode
|
|
348
348
|
# a: asset symbol
|
349
349
|
# c: ["NATIVE", "USD"]
|
350
350
|
# i: ["24h"]
|
351
|
-
def
|
351
|
+
def supply_sth_sum(params={})
|
352
352
|
authenticated_get("metrics/supply/sth_sum", params: params).body
|
353
353
|
end
|
354
354
|
|
@@ -357,7 +357,7 @@ module Glassnode
|
|
357
357
|
# a: asset symbol
|
358
358
|
# c: ["NATIVE", "USD"]
|
359
359
|
# i: ["24h"]
|
360
|
-
def
|
360
|
+
def supply_lth_sum(params={})
|
361
361
|
authenticated_get("metrics/supply/lth_sum", params: params).body
|
362
362
|
end
|
363
363
|
|
@@ -366,7 +366,7 @@ module Glassnode
|
|
366
366
|
# a: asset symbol
|
367
367
|
# c: ["NATIVE", "USD"]
|
368
368
|
# i: ["24h"]
|
369
|
-
def
|
369
|
+
def supply_sth_loss_sum(params={})
|
370
370
|
authenticated_get("metrics/supply/sth_loss_sum", params: params).body
|
371
371
|
end
|
372
372
|
|
@@ -375,7 +375,7 @@ module Glassnode
|
|
375
375
|
# a: asset symbol
|
376
376
|
# c: ["NATIVE", "USD"]
|
377
377
|
# i: ["24h"]
|
378
|
-
def
|
378
|
+
def supply_lth_loss_sum(params={})
|
379
379
|
authenticated_get("metrics/supply/lth_loss_sum", params: params).body
|
380
380
|
end
|
381
381
|
|
@@ -384,7 +384,7 @@ module Glassnode
|
|
384
384
|
# a: asset symbol
|
385
385
|
# c: ["NATIVE", "USD"]
|
386
386
|
# i: ["24h"]
|
387
|
-
def
|
387
|
+
def supply_sth_profit_sum(params={})
|
388
388
|
authenticated_get("metrics/supply/sth_profit_sum", params: params).body
|
389
389
|
end
|
390
390
|
|
@@ -393,7 +393,7 @@ module Glassnode
|
|
393
393
|
# a: asset symbol
|
394
394
|
# c: ["NATIVE", "USD"]
|
395
395
|
# i: ["24h"]
|
396
|
-
def
|
396
|
+
def supply_lth_profit_sum(params={})
|
397
397
|
authenticated_get("metrics/supply/lth_profit_sum", params: params).body
|
398
398
|
end
|
399
399
|
|
@@ -402,7 +402,7 @@ module Glassnode
|
|
402
402
|
# a: asset symbol
|
403
403
|
# c: ["NATIVE"]
|
404
404
|
# i: ["24h"]
|
405
|
-
def
|
405
|
+
def supply_lth_sth_profit_loss_relative(params={})
|
406
406
|
authenticated_get("metrics/supply/lth_sth_profit_loss_relative", params: params).body
|
407
407
|
end
|
408
408
|
|
@@ -411,7 +411,7 @@ module Glassnode
|
|
411
411
|
# a: asset symbol
|
412
412
|
# c: ["NATIVE"]
|
413
413
|
# i: ["24h"]
|
414
|
-
def
|
414
|
+
def supply_lth_net_change(params={})
|
415
415
|
authenticated_get("metrics/supply/lth_net_change", params: params).body
|
416
416
|
end
|
417
417
|
|
@@ -420,7 +420,7 @@ module Glassnode
|
|
420
420
|
# a: asset symbol
|
421
421
|
# c: ["NATIVE"]
|
422
422
|
# i: ["24h"]
|
423
|
-
def
|
423
|
+
def supply_sth_profit_loss_ratio(params={})
|
424
424
|
authenticated_get("metrics/supply/sth_profit_loss_ratio", params: params).body
|
425
425
|
end
|
426
426
|
|
@@ -429,7 +429,7 @@ module Glassnode
|
|
429
429
|
# a: asset symbol
|
430
430
|
# c: ["USD"]
|
431
431
|
# i: ["24h"]
|
432
|
-
def
|
432
|
+
def supply_supply_by_txout_type(params={})
|
433
433
|
authenticated_get("metrics/supply/supply_by_txout_type", params: params).body
|
434
434
|
end
|
435
435
|
|