glassnode 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/errors.rb +34 -0
- data/lib/glassnode.rb +11 -0
- data/lib/rest/rest_client.rb +39 -0
- data/lib/rest/v1/addresses.rb +356 -0
- data/lib/rest/v1/assets.rb +10 -0
- data/lib/rest/v1/blockchain.rb +167 -0
- data/lib/rest/v1/defi.rb +14 -0
- data/lib/rest/v1/derivatives.rb +388 -0
- data/lib/rest/v1/distribution.rb +144 -0
- data/lib/rest/v1/entities.rb +167 -0
- data/lib/rest/v1/eth2.rb +77 -0
- data/lib/rest/v1/fees.rb +149 -0
- data/lib/rest/v1/indicators.rb +896 -0
- data/lib/rest/v1/institutions.rb +293 -0
- data/lib/rest/v1/lightning.rb +95 -0
- data/lib/rest/v1/market.rb +140 -0
- data/lib/rest/v1/mempool.rb +95 -0
- data/lib/rest/v1/mining.rb +95 -0
- data/lib/rest/v1/protocols.rb +32 -0
- data/lib/rest/v1/supply.rb +437 -0
- data/lib/rest/v1/transactions.rb +496 -0
- data/lib/rest/v1.rb +66 -0
- data/lib/rest/v2/endpoints.rb +10 -0
- data/lib/rest/v2.rb +33 -0
- metadata +227 -0
@@ -0,0 +1,388 @@
|
|
1
|
+
module Glassnode
|
2
|
+
module RESTv1Derivatives
|
3
|
+
|
4
|
+
#Tier: 2
|
5
|
+
#Params
|
6
|
+
# a: asset symbol
|
7
|
+
# e: exchange name
|
8
|
+
# c: ["NATIVE"]
|
9
|
+
# i: ["1h", "24h", "10m"]
|
10
|
+
def futures_funding_rate_perpetual(params={})
|
11
|
+
authenticated_get("metrics/derivatives/futures_funding_rate_perpetual", params: params).body
|
12
|
+
end
|
13
|
+
|
14
|
+
#Tier: 2
|
15
|
+
#Params
|
16
|
+
# a: asset symbol
|
17
|
+
# c: ["NATIVE"]
|
18
|
+
# i: ["1h", "24h"]
|
19
|
+
def futures_funding_rate_perpetual_all(params={})
|
20
|
+
authenticated_get("metrics/derivatives/futures_funding_rate_perpetual_all", params: params).body
|
21
|
+
end
|
22
|
+
|
23
|
+
#Tier: 3
|
24
|
+
#Params
|
25
|
+
# a: asset symbol
|
26
|
+
# e: exchange name
|
27
|
+
# c: ["NATIVE"]
|
28
|
+
# i: ["1h", "24h", "10m"]
|
29
|
+
def futures_open_interest_cash_margin_sum(params={})
|
30
|
+
authenticated_get("metrics/derivatives/futures_open_interest_cash_margin_sum", params: params).body
|
31
|
+
end
|
32
|
+
|
33
|
+
#Tier: 3
|
34
|
+
#Params
|
35
|
+
# a: asset symbol
|
36
|
+
# e: exchange name
|
37
|
+
# c: ["NATIVE"]
|
38
|
+
# i: ["1h", "24h", "10m"]
|
39
|
+
def futures_open_interest_crypto_margin_sum(params={})
|
40
|
+
authenticated_get("metrics/derivatives/futures_open_interest_crypto_margin_sum", params: params).body
|
41
|
+
end
|
42
|
+
|
43
|
+
#Tier: 3
|
44
|
+
#Params
|
45
|
+
# a: asset symbol
|
46
|
+
# e: exchange name
|
47
|
+
# c: ["NATIVE"]
|
48
|
+
# i: ["1h", "24h", "10m"]
|
49
|
+
def futures_open_interest_crypto_margin_relative(params={})
|
50
|
+
authenticated_get("metrics/derivatives/futures_open_interest_crypto_margin_relative", params: params).body
|
51
|
+
end
|
52
|
+
|
53
|
+
#Tier: 2
|
54
|
+
#Params
|
55
|
+
# a: asset symbol
|
56
|
+
# e: exchange name
|
57
|
+
# c: ["NATIVE"]
|
58
|
+
# i: ["1h", "24h", "10m"]
|
59
|
+
def futures_estimated_leverage_ratio(params={})
|
60
|
+
authenticated_get("metrics/derivatives/futures_estimated_leverage_ratio", params: params).body
|
61
|
+
end
|
62
|
+
|
63
|
+
#Tier: 2
|
64
|
+
#Params
|
65
|
+
# a: asset symbol
|
66
|
+
# e: exchange name
|
67
|
+
# c: ["NATIVE"]
|
68
|
+
# i: ["1h", "24h", "10m"]
|
69
|
+
def options_atm_implied_volatility_1_week(params={})
|
70
|
+
authenticated_get("metrics/derivatives/options_atm_implied_volatility_1_week", params: params).body
|
71
|
+
end
|
72
|
+
|
73
|
+
#Tier: 2
|
74
|
+
#Params
|
75
|
+
# a: asset symbol
|
76
|
+
# e: exchange name
|
77
|
+
# c: ["NATIVE"]
|
78
|
+
# i: ["1h", "24h", "10m"]
|
79
|
+
def options_atm_implied_volatility_1_month(params={})
|
80
|
+
authenticated_get("metrics/derivatives/options_atm_implied_volatility_1_month", params: params).body
|
81
|
+
end
|
82
|
+
|
83
|
+
#Tier: 2
|
84
|
+
#Params
|
85
|
+
# a: asset symbol
|
86
|
+
# e: exchange name
|
87
|
+
# c: ["NATIVE"]
|
88
|
+
# i: ["1h", "24h", "10m"]
|
89
|
+
def options_atm_implied_volatility_3_months(params={})
|
90
|
+
authenticated_get("metrics/derivatives/options_atm_implied_volatility_3_months", params: params).body
|
91
|
+
end
|
92
|
+
|
93
|
+
#Tier: 2
|
94
|
+
#Params
|
95
|
+
# a: asset symbol
|
96
|
+
# e: exchange name
|
97
|
+
# c: ["NATIVE"]
|
98
|
+
# i: ["1h", "24h", "10m"]
|
99
|
+
def options_atm_implied_volatility_6_months(params={})
|
100
|
+
authenticated_get("metrics/derivatives/options_atm_implied_volatility_6_months", params: params).body
|
101
|
+
end
|
102
|
+
|
103
|
+
#Tier: 2
|
104
|
+
#Params
|
105
|
+
# a: asset symbol
|
106
|
+
# e: exchange name
|
107
|
+
# c: ["NATIVE"]
|
108
|
+
# i: ["1h", "24h", "10m"]
|
109
|
+
def options_atm_implied_volatility_all(params={})
|
110
|
+
authenticated_get("metrics/derivatives/options_atm_implied_volatility_all", params: params).body
|
111
|
+
end
|
112
|
+
|
113
|
+
#Tier: 2
|
114
|
+
#Params
|
115
|
+
# a: asset symbol
|
116
|
+
# e: exchange name
|
117
|
+
# c: ["NATIVE"]
|
118
|
+
# i: ["1h", "24h", "10m"]
|
119
|
+
def options_25delta_skew_1_week(params={})
|
120
|
+
authenticated_get("metrics/derivatives/options_25delta_skew_1_week", params: params).body
|
121
|
+
end
|
122
|
+
|
123
|
+
#Tier: 2
|
124
|
+
#Params
|
125
|
+
# a: asset symbol
|
126
|
+
# e: exchange name
|
127
|
+
# c: ["NATIVE"]
|
128
|
+
# i: ["1h", "24h", "10m"]
|
129
|
+
def options_25delta_skew_1_month(params={})
|
130
|
+
authenticated_get("metrics/derivatives/options_25delta_skew_1_month", params: params).body
|
131
|
+
end
|
132
|
+
|
133
|
+
#Tier: 2
|
134
|
+
#Params
|
135
|
+
# a: asset symbol
|
136
|
+
# e: exchange name
|
137
|
+
# c: ["NATIVE"]
|
138
|
+
# i: ["1h", "24h", "10m"]
|
139
|
+
def options_25delta_skew_3_months(params={})
|
140
|
+
authenticated_get("metrics/derivatives/options_25delta_skew_3_months", params: params).body
|
141
|
+
end
|
142
|
+
|
143
|
+
#Tier: 2
|
144
|
+
#Params
|
145
|
+
# a: asset symbol
|
146
|
+
# e: exchange name
|
147
|
+
# c: ["NATIVE"]
|
148
|
+
# i: ["1h", "24h", "10m"]
|
149
|
+
def options_25delta_skew_6_months(params={})
|
150
|
+
authenticated_get("metrics/derivatives/options_25delta_skew_6_months", params: params).body
|
151
|
+
end
|
152
|
+
|
153
|
+
#Tier: 2
|
154
|
+
#Params
|
155
|
+
# a: asset symbol
|
156
|
+
# e: exchange name
|
157
|
+
# c: ["NATIVE"]
|
158
|
+
# i: ["1h", "24h", "10m"]
|
159
|
+
def options_25delta_skew_all(params={})
|
160
|
+
authenticated_get("metrics/derivatives/options_25delta_skew_all", params: params).body
|
161
|
+
end
|
162
|
+
|
163
|
+
#Tier: 2
|
164
|
+
#Params
|
165
|
+
# a: asset symbol
|
166
|
+
# e: exchange name
|
167
|
+
# c: ["NATIVE", "USD"]
|
168
|
+
# i: ["1h", "24h", "10m"]
|
169
|
+
def futures_volume_daily_sum(params={})
|
170
|
+
authenticated_get("metrics/derivatives/futures_volume_daily_sum", params: params).body
|
171
|
+
end
|
172
|
+
|
173
|
+
#Tier: 2
|
174
|
+
#Params
|
175
|
+
# a: asset symbol
|
176
|
+
# e: exchange name
|
177
|
+
# c: ["NATIVE", "USD"]
|
178
|
+
# i: ["1h", "24h", "10m"]
|
179
|
+
def futures_volume_daily_perpetual_sum(params={})
|
180
|
+
authenticated_get("metrics/derivatives/futures_volume_daily_perpetual_sum", params: params).body
|
181
|
+
end
|
182
|
+
|
183
|
+
#Tier: 2
|
184
|
+
#Params
|
185
|
+
# a: asset symbol
|
186
|
+
# e: exchange name
|
187
|
+
# c: ["NATIVE", "USD"]
|
188
|
+
# i: ["1h", "24h", "10m"]
|
189
|
+
def futures_open_interest_sum(params={})
|
190
|
+
authenticated_get("metrics/derivatives/futures_open_interest_sum", params: params).body
|
191
|
+
end
|
192
|
+
|
193
|
+
#Tier: 2
|
194
|
+
#Params
|
195
|
+
# a: asset symbol
|
196
|
+
# e: exchange name
|
197
|
+
# c: ["NATIVE", "USD"]
|
198
|
+
# i: ["1h", "24h", "10m"]
|
199
|
+
def futures_open_interest_perpetual_sum(params={})
|
200
|
+
authenticated_get("metrics/derivatives/futures_open_interest_perpetual_sum", params: params).body
|
201
|
+
end
|
202
|
+
|
203
|
+
#Tier: 2
|
204
|
+
#Params
|
205
|
+
# a: asset symbol
|
206
|
+
# e: exchange name
|
207
|
+
# c: ["NATIVE", "USD"]
|
208
|
+
# i: ["1h", "24h", "10m"]
|
209
|
+
def futures_liquidated_volume_short_sum(params={})
|
210
|
+
authenticated_get("metrics/derivatives/futures_liquidated_volume_short_sum", params: params).body
|
211
|
+
end
|
212
|
+
|
213
|
+
#Tier: 2
|
214
|
+
#Params
|
215
|
+
# a: asset symbol
|
216
|
+
# e: exchange name
|
217
|
+
# c: ["NATIVE", "USD"]
|
218
|
+
# i: ["1h", "24h", "10m"]
|
219
|
+
def futures_liquidated_volume_short_mean(params={})
|
220
|
+
authenticated_get("metrics/derivatives/futures_liquidated_volume_short_mean", params: params).body
|
221
|
+
end
|
222
|
+
|
223
|
+
#Tier: 2
|
224
|
+
#Params
|
225
|
+
# a: asset symbol
|
226
|
+
# e: exchange name
|
227
|
+
# c: ["NATIVE", "USD"]
|
228
|
+
# i: ["1h", "24h", "10m"]
|
229
|
+
def futures_liquidated_volume_long_sum(params={})
|
230
|
+
authenticated_get("metrics/derivatives/futures_liquidated_volume_long_sum", params: params).body
|
231
|
+
end
|
232
|
+
|
233
|
+
#Tier: 2
|
234
|
+
#Params
|
235
|
+
# a: asset symbol
|
236
|
+
# e: exchange name
|
237
|
+
# c: ["NATIVE", "USD"]
|
238
|
+
# i: ["1h", "24h", "10m"]
|
239
|
+
def futures_liquidated_volume_long_mean(params={})
|
240
|
+
authenticated_get("metrics/derivatives/futures_liquidated_volume_long_mean", params: params).body
|
241
|
+
end
|
242
|
+
|
243
|
+
#Tier: 2
|
244
|
+
#Params
|
245
|
+
# a: asset symbol
|
246
|
+
# e: exchange name
|
247
|
+
# c: ["NATIVE", "USD"]
|
248
|
+
# i: ["1h", "24h", "10m"]
|
249
|
+
def futures_liquidated_volume_long_relative(params={})
|
250
|
+
authenticated_get("metrics/derivatives/futures_liquidated_volume_long_relative", params: params).body
|
251
|
+
end
|
252
|
+
|
253
|
+
#Tier: 2
|
254
|
+
#Params
|
255
|
+
# a: asset symbol
|
256
|
+
# c: ["NATIVE", "USD"]
|
257
|
+
# i: ["1h", "24h"]
|
258
|
+
def futures_volume_daily_sum_all(params={})
|
259
|
+
authenticated_get("metrics/derivatives/futures_volume_daily_sum_all", params: params).body
|
260
|
+
end
|
261
|
+
|
262
|
+
#Tier: 2
|
263
|
+
#Params
|
264
|
+
# a: asset symbol
|
265
|
+
# c: ["NATIVE", "USD"]
|
266
|
+
# i: ["1h", "24h"]
|
267
|
+
def futures_volume_daily_perpetual_sum_all(params={})
|
268
|
+
authenticated_get("metrics/derivatives/futures_volume_daily_perpetual_sum_all", params: params).body
|
269
|
+
end
|
270
|
+
|
271
|
+
#Tier: 2
|
272
|
+
#Params
|
273
|
+
# a: asset symbol
|
274
|
+
# c: ["NATIVE", "USD"]
|
275
|
+
# i: ["1h", "24h"]
|
276
|
+
def futures_open_interest_sum_all(params={})
|
277
|
+
authenticated_get("metrics/derivatives/futures_open_interest_sum_all", params: params).body
|
278
|
+
end
|
279
|
+
|
280
|
+
#Tier: 2
|
281
|
+
#Params
|
282
|
+
# a: asset symbol
|
283
|
+
# c: ["NATIVE", "USD"]
|
284
|
+
# i: ["1h", "24h"]
|
285
|
+
def futures_open_interest_perpetual_sum_all(params={})
|
286
|
+
authenticated_get("metrics/derivatives/futures_open_interest_perpetual_sum_all", params: params).body
|
287
|
+
end
|
288
|
+
|
289
|
+
#Tier: 2
|
290
|
+
#Params
|
291
|
+
# a: asset symbol
|
292
|
+
# e: exchange name
|
293
|
+
# c: ["NATIVE", "USD"]
|
294
|
+
# i: ["1h", "24h", "10m"]
|
295
|
+
def options_volume_daily_sum(params={})
|
296
|
+
authenticated_get("metrics/derivatives/options_volume_daily_sum", params: params).body
|
297
|
+
end
|
298
|
+
|
299
|
+
#Tier: 2
|
300
|
+
#Params
|
301
|
+
# a: asset symbol
|
302
|
+
# e: exchange name
|
303
|
+
# c: ["NATIVE", "USD"]
|
304
|
+
# i: ["1h", "24h", "10m"]
|
305
|
+
def options_open_interest_sum(params={})
|
306
|
+
authenticated_get("metrics/derivatives/options_open_interest_sum", params: params).body
|
307
|
+
end
|
308
|
+
|
309
|
+
#Tier: 2
|
310
|
+
#Params
|
311
|
+
# a: asset symbol
|
312
|
+
# e: exchange name
|
313
|
+
# c: ["NATIVE", "USD"]
|
314
|
+
# i: ["24h"]
|
315
|
+
def options_open_interest_distribution(params={})
|
316
|
+
authenticated_get("metrics/derivatives/options_open_interest_distribution", params: params).body
|
317
|
+
end
|
318
|
+
|
319
|
+
#Tier: 3
|
320
|
+
#Params
|
321
|
+
# a: asset symbol
|
322
|
+
# e: exchange name
|
323
|
+
# c: ["USD"]
|
324
|
+
# i: ["10m"]
|
325
|
+
def futures_term_structure(params={})
|
326
|
+
authenticated_get("metrics/derivatives/futures_term_structure", params: params).body
|
327
|
+
end
|
328
|
+
|
329
|
+
#Tier: 3
|
330
|
+
#Params
|
331
|
+
# a: asset symbol
|
332
|
+
# e: exchange name
|
333
|
+
# c: ["USD"]
|
334
|
+
# i: ["10m"]
|
335
|
+
def futures_term_structure_by_exchange(params={})
|
336
|
+
authenticated_get("metrics/derivatives/futures_term_structure_by_exchange", params: params).body
|
337
|
+
end
|
338
|
+
|
339
|
+
#Tier: 2
|
340
|
+
#Params
|
341
|
+
# a: asset symbol
|
342
|
+
# e: exchange name
|
343
|
+
# c: ["NATIVE"]
|
344
|
+
# i: ["1h", "24h", "10m"]
|
345
|
+
def futures_annualized_basis_3m(params={})
|
346
|
+
authenticated_get("metrics/derivatives/futures_annualized_basis_3m", params: params).body
|
347
|
+
end
|
348
|
+
|
349
|
+
#Tier: 2
|
350
|
+
#Params
|
351
|
+
# a: asset symbol
|
352
|
+
# c: ["NATIVE", "USD"]
|
353
|
+
# i: ["10m"]
|
354
|
+
def futures_open_interest_latest(params={})
|
355
|
+
authenticated_get("metrics/derivatives/futures_open_interest_latest", params: params).body
|
356
|
+
end
|
357
|
+
|
358
|
+
#Tier: 2
|
359
|
+
#Params
|
360
|
+
# a: asset symbol
|
361
|
+
# c: ["NATIVE", "USD"]
|
362
|
+
# i: ["10m"]
|
363
|
+
def futures_volume_daily_latest(params={})
|
364
|
+
authenticated_get("metrics/derivatives/futures_volume_daily_latest", params: params).body
|
365
|
+
end
|
366
|
+
|
367
|
+
#Tier: 3
|
368
|
+
#Params
|
369
|
+
# a: asset symbol
|
370
|
+
# e: exchange name
|
371
|
+
# c: ["NATIVE"]
|
372
|
+
# i: ["1h", "24h", "10m"]
|
373
|
+
def options_open_interest_put_call_ratio(params={})
|
374
|
+
authenticated_get("metrics/derivatives/options_open_interest_put_call_ratio", params: params).body
|
375
|
+
end
|
376
|
+
|
377
|
+
#Tier: 3
|
378
|
+
#Params
|
379
|
+
# a: asset symbol
|
380
|
+
# e: exchange name
|
381
|
+
# c: ["NATIVE"]
|
382
|
+
# i: ["1h", "24h", "10m"]
|
383
|
+
def options_volume_put_call_ratio(params={})
|
384
|
+
authenticated_get("metrics/derivatives/options_volume_put_call_ratio", params: params).body
|
385
|
+
end
|
386
|
+
|
387
|
+
end
|
388
|
+
end
|
@@ -0,0 +1,144 @@
|
|
1
|
+
module Glassnode
|
2
|
+
module RESTv1Distribution
|
3
|
+
|
4
|
+
#Tier: 2
|
5
|
+
#Params
|
6
|
+
# a: asset symbol
|
7
|
+
# e: exchange name
|
8
|
+
# c: ["NATIVE", "USD"]
|
9
|
+
# i: ["1h", "24h", "10m"]
|
10
|
+
def balance_exchanges(params={})
|
11
|
+
authenticated_get("metrics/distribution/balance_exchanges", params: params).body
|
12
|
+
end
|
13
|
+
|
14
|
+
#Tier: 2
|
15
|
+
#Params
|
16
|
+
# a: asset symbol
|
17
|
+
# e: exchange name
|
18
|
+
# c: ["NATIVE", "USD"]
|
19
|
+
# i: ["24h"]
|
20
|
+
def exchange_net_position_change(params={})
|
21
|
+
authenticated_get("metrics/distribution/exchange_net_position_change", params: params).body
|
22
|
+
end
|
23
|
+
|
24
|
+
#Tier: 2
|
25
|
+
#Params
|
26
|
+
# a: asset symbol
|
27
|
+
# e: exchange name
|
28
|
+
# c: ["NATIVE"]
|
29
|
+
# i: ["1h", "24h", "10m"]
|
30
|
+
def balance_exchanges_relative(params={})
|
31
|
+
authenticated_get("metrics/distribution/balance_exchanges_relative", params: params).body
|
32
|
+
end
|
33
|
+
|
34
|
+
#Tier: 2
|
35
|
+
#Params
|
36
|
+
# a: asset symbol
|
37
|
+
# e: exchange name
|
38
|
+
# c: ["NATIVE", "USD"]
|
39
|
+
# i: ["24h"]
|
40
|
+
def balance_exchanges_all(params={})
|
41
|
+
authenticated_get("metrics/distribution/balance_exchanges_all", params: params).body
|
42
|
+
end
|
43
|
+
|
44
|
+
#Tier: 3
|
45
|
+
#Params
|
46
|
+
# a: asset symbol
|
47
|
+
# c: ["NATIVE", "USD"]
|
48
|
+
# i: ["24h"]
|
49
|
+
def balance_miners_all(params={})
|
50
|
+
authenticated_get("metrics/distribution/balance_miners_all", params: params).body
|
51
|
+
end
|
52
|
+
|
53
|
+
#Tier: 3
|
54
|
+
#Params
|
55
|
+
# a: asset symbol
|
56
|
+
# c: ["NATIVE"]
|
57
|
+
# i: ["24h"]
|
58
|
+
def balance_miners_change(params={})
|
59
|
+
authenticated_get("metrics/distribution/balance_miners_change", params: params).body
|
60
|
+
end
|
61
|
+
|
62
|
+
#Tier: 3
|
63
|
+
#Params
|
64
|
+
# a: asset symbol
|
65
|
+
# c: ["NATIVE", "USD"]
|
66
|
+
# i: ["1h", "24h"]
|
67
|
+
def balance_otc_desks(params={})
|
68
|
+
authenticated_get("metrics/distribution/balance_otc_desks", params: params).body
|
69
|
+
end
|
70
|
+
|
71
|
+
#Tier: 2
|
72
|
+
#Params
|
73
|
+
# a: asset symbol
|
74
|
+
# c: ["NATIVE"]
|
75
|
+
# i: ["24h"]
|
76
|
+
def balance_1pct_holders(params={})
|
77
|
+
authenticated_get("metrics/distribution/balance_1pct_holders", params: params).body
|
78
|
+
end
|
79
|
+
|
80
|
+
#Tier: 2
|
81
|
+
#Params
|
82
|
+
# a: asset symbol
|
83
|
+
# c: ["NATIVE"]
|
84
|
+
# i: ["24h"]
|
85
|
+
def gini(params={})
|
86
|
+
authenticated_get("metrics/distribution/gini", params: params).body
|
87
|
+
end
|
88
|
+
|
89
|
+
#Tier: 2
|
90
|
+
#Params
|
91
|
+
# a: asset symbol
|
92
|
+
# c: ["NATIVE"]
|
93
|
+
# i: ["24h"]
|
94
|
+
def herfindahl(params={})
|
95
|
+
authenticated_get("metrics/distribution/herfindahl", params: params).body
|
96
|
+
end
|
97
|
+
|
98
|
+
#Tier: 2
|
99
|
+
#Params
|
100
|
+
# a: asset symbol
|
101
|
+
# c: ["NATIVE"]
|
102
|
+
# i: ["24h"]
|
103
|
+
def supply_contracts(params={})
|
104
|
+
authenticated_get("metrics/distribution/supply_contracts", params: params).body
|
105
|
+
end
|
106
|
+
|
107
|
+
#Tier: 3
|
108
|
+
#Params
|
109
|
+
# a: asset symbol
|
110
|
+
# c: ["NATIVE"]
|
111
|
+
# i: ["24h"]
|
112
|
+
def balance_miners_sum(params={})
|
113
|
+
authenticated_get("metrics/distribution/balance_miners_sum", params: params).body
|
114
|
+
end
|
115
|
+
|
116
|
+
#Tier: 2
|
117
|
+
#Params
|
118
|
+
# a: asset symbol
|
119
|
+
# c: ["NATIVE", "USD"]
|
120
|
+
# i: ["24h", "1h", "10m"]
|
121
|
+
def balance_wbtc(params={})
|
122
|
+
authenticated_get("metrics/distribution/balance_wbtc", params: params).body
|
123
|
+
end
|
124
|
+
|
125
|
+
#Tier: 2
|
126
|
+
#Params
|
127
|
+
# a: asset symbol
|
128
|
+
# c: ["NATIVE", "USD"]
|
129
|
+
# i: ["24h", "1h", "10m"]
|
130
|
+
def balance_mtgox_trustee(params={})
|
131
|
+
authenticated_get("metrics/distribution/balance_mtgox_trustee", params: params).body
|
132
|
+
end
|
133
|
+
|
134
|
+
#Tier: 2
|
135
|
+
#Params
|
136
|
+
# a: asset symbol
|
137
|
+
# c: ["NATIVE", "USD"]
|
138
|
+
# i: ["24h", "1h", "10m"]
|
139
|
+
def balance_luna_foundation_guard(params={})
|
140
|
+
authenticated_get("metrics/distribution/balance_luna_foundation_guard", params: params).body
|
141
|
+
end
|
142
|
+
|
143
|
+
end
|
144
|
+
end
|
@@ -0,0 +1,167 @@
|
|
1
|
+
module Glassnode
|
2
|
+
module RESTv1Entities
|
3
|
+
|
4
|
+
#Tier: 3
|
5
|
+
#Params
|
6
|
+
# a: asset symbol
|
7
|
+
# c: ["NATIVE"]
|
8
|
+
# i: ["24h"]
|
9
|
+
def sending_count(params={})
|
10
|
+
authenticated_get("metrics/entities/sending_count", params: params).body
|
11
|
+
end
|
12
|
+
|
13
|
+
#Tier: 3
|
14
|
+
#Params
|
15
|
+
# a: asset symbol
|
16
|
+
# c: ["NATIVE"]
|
17
|
+
# i: ["24h"]
|
18
|
+
def receiving_count(params={})
|
19
|
+
authenticated_get("metrics/entities/receiving_count", params: params).body
|
20
|
+
end
|
21
|
+
|
22
|
+
#Tier: 3
|
23
|
+
#Params
|
24
|
+
# a: asset symbol
|
25
|
+
# c: ["NATIVE"]
|
26
|
+
# i: ["24h"]
|
27
|
+
def active_count(params={})
|
28
|
+
authenticated_get("metrics/entities/active_count", params: params).body
|
29
|
+
end
|
30
|
+
|
31
|
+
#Tier: 3
|
32
|
+
#Params
|
33
|
+
# a: asset symbol
|
34
|
+
# c: ["NATIVE"]
|
35
|
+
# i: ["24h"]
|
36
|
+
def new_count(params={})
|
37
|
+
authenticated_get("metrics/entities/new_count", params: params).body
|
38
|
+
end
|
39
|
+
|
40
|
+
#Tier: 3
|
41
|
+
#Params
|
42
|
+
# a: asset symbol
|
43
|
+
# c: ["NATIVE"]
|
44
|
+
# i: ["24h"]
|
45
|
+
def net_growth_count(params={})
|
46
|
+
authenticated_get("metrics/entities/net_growth_count", params: params).body
|
47
|
+
end
|
48
|
+
|
49
|
+
#Tier: 3
|
50
|
+
#Params
|
51
|
+
# a: asset symbol
|
52
|
+
# c: ["NATIVE"]
|
53
|
+
# i: ["24h"]
|
54
|
+
def min_1k_count(params={})
|
55
|
+
authenticated_get("metrics/entities/min_1k_count", params: params).body
|
56
|
+
end
|
57
|
+
|
58
|
+
#Tier: 3
|
59
|
+
#Params
|
60
|
+
# a: asset symbol
|
61
|
+
# c: ["NATIVE"]
|
62
|
+
# i: ["24h"]
|
63
|
+
def supply_balance_less_0001(params={})
|
64
|
+
authenticated_get("metrics/entities/supply_balance_less_0001", params: params).body
|
65
|
+
end
|
66
|
+
|
67
|
+
#Tier: 3
|
68
|
+
#Params
|
69
|
+
# a: asset symbol
|
70
|
+
# c: ["NATIVE"]
|
71
|
+
# i: ["24h"]
|
72
|
+
def supply_balance_0001_001(params={})
|
73
|
+
authenticated_get("metrics/entities/supply_balance_0001_001", params: params).body
|
74
|
+
end
|
75
|
+
|
76
|
+
#Tier: 3
|
77
|
+
#Params
|
78
|
+
# a: asset symbol
|
79
|
+
# c: ["NATIVE"]
|
80
|
+
# i: ["24h"]
|
81
|
+
def supply_balance_001_01(params={})
|
82
|
+
authenticated_get("metrics/entities/supply_balance_001_01", params: params).body
|
83
|
+
end
|
84
|
+
|
85
|
+
#Tier: 3
|
86
|
+
#Params
|
87
|
+
# a: asset symbol
|
88
|
+
# c: ["NATIVE"]
|
89
|
+
# i: ["24h"]
|
90
|
+
def supply_balance_01_1(params={})
|
91
|
+
authenticated_get("metrics/entities/supply_balance_01_1", params: params).body
|
92
|
+
end
|
93
|
+
|
94
|
+
#Tier: 3
|
95
|
+
#Params
|
96
|
+
# a: asset symbol
|
97
|
+
# c: ["NATIVE"]
|
98
|
+
# i: ["24h"]
|
99
|
+
def supply_balance_1_10(params={})
|
100
|
+
authenticated_get("metrics/entities/supply_balance_1_10", params: params).body
|
101
|
+
end
|
102
|
+
|
103
|
+
#Tier: 3
|
104
|
+
#Params
|
105
|
+
# a: asset symbol
|
106
|
+
# c: ["NATIVE"]
|
107
|
+
# i: ["24h"]
|
108
|
+
def supply_balance_10_100(params={})
|
109
|
+
authenticated_get("metrics/entities/supply_balance_10_100", params: params).body
|
110
|
+
end
|
111
|
+
|
112
|
+
#Tier: 3
|
113
|
+
#Params
|
114
|
+
# a: asset symbol
|
115
|
+
# c: ["NATIVE"]
|
116
|
+
# i: ["24h"]
|
117
|
+
def supply_balance_100_1k(params={})
|
118
|
+
authenticated_get("metrics/entities/supply_balance_100_1k", params: params).body
|
119
|
+
end
|
120
|
+
|
121
|
+
#Tier: 3
|
122
|
+
#Params
|
123
|
+
# a: asset symbol
|
124
|
+
# c: ["NATIVE"]
|
125
|
+
# i: ["24h"]
|
126
|
+
def supply_balance_1k_10k(params={})
|
127
|
+
authenticated_get("metrics/entities/supply_balance_1k_10k", params: params).body
|
128
|
+
end
|
129
|
+
|
130
|
+
#Tier: 3
|
131
|
+
#Params
|
132
|
+
# a: asset symbol
|
133
|
+
# c: ["NATIVE"]
|
134
|
+
# i: ["24h"]
|
135
|
+
def supply_balance_10k_100k(params={})
|
136
|
+
authenticated_get("metrics/entities/supply_balance_10k_100k", params: params).body
|
137
|
+
end
|
138
|
+
|
139
|
+
#Tier: 3
|
140
|
+
#Params
|
141
|
+
# a: asset symbol
|
142
|
+
# c: ["NATIVE"]
|
143
|
+
# i: ["24h"]
|
144
|
+
def supply_balance_more_100k(params={})
|
145
|
+
authenticated_get("metrics/entities/supply_balance_more_100k", params: params).body
|
146
|
+
end
|
147
|
+
|
148
|
+
#Tier: 3
|
149
|
+
#Params
|
150
|
+
# a: asset symbol
|
151
|
+
# c: ["NATIVE"]
|
152
|
+
# i: ["24h"]
|
153
|
+
def supply_distribution_relative(params={})
|
154
|
+
authenticated_get("metrics/entities/supply_distribution_relative", params: params).body
|
155
|
+
end
|
156
|
+
|
157
|
+
#Tier: 3
|
158
|
+
#Params
|
159
|
+
# a: asset symbol
|
160
|
+
# c: ["NATIVE"]
|
161
|
+
# i: ["24h"]
|
162
|
+
def profit_relative(params={})
|
163
|
+
authenticated_get("metrics/entities/profit_relative", params: params).body
|
164
|
+
end
|
165
|
+
|
166
|
+
end
|
167
|
+
end
|