glassnode 0.0.1 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rest/v1/addresses.rb +78 -78
- data/lib/rest/v1/assets.rb +1 -1
- data/lib/rest/v1/blockchain.rb +36 -36
- data/lib/rest/v1/defi.rb +2 -2
- data/lib/rest/v1/derivatives.rb +78 -78
- data/lib/rest/v1/distribution.rb +30 -30
- data/lib/rest/v1/entities.rb +36 -36
- data/lib/rest/v1/eth2.rb +16 -16
- data/lib/rest/v1/fees.rb +32 -32
- data/lib/rest/v1/indicators.rb +198 -198
- data/lib/rest/v1/institutions.rb +64 -64
- data/lib/rest/v1/lightning.rb +20 -20
- data/lib/rest/v1/market.rb +30 -30
- data/lib/rest/v1/mempool.rb +20 -20
- data/lib/rest/v1/mining.rb +20 -20
- data/lib/rest/v1/protocols.rb +6 -6
- data/lib/rest/v1/supply.rb +96 -96
- data/lib/rest/v1/transactions.rb +106 -106
- data/lib/rest/v2/endpoints.rb +1 -1
- metadata +3 -4
data/lib/rest/v1/institutions.rb
CHANGED
@@ -6,8 +6,8 @@ module Glassnode
|
|
6
6
|
# a: asset symbol
|
7
7
|
# c: ["NATIVE"]
|
8
8
|
# i: ["24h"]
|
9
|
-
def
|
10
|
-
authenticated_get("metrics/institutions/purpose_etf_holdings_sum", params: params)
|
9
|
+
def institutions_purpose_etf_holdings_sum(params={})
|
10
|
+
authenticated_get("metrics/institutions/purpose_etf_holdings_sum", params: params)
|
11
11
|
end
|
12
12
|
|
13
13
|
#Tier: 1
|
@@ -15,8 +15,8 @@ module Glassnode
|
|
15
15
|
# a: asset symbol
|
16
16
|
# c: ["NATIVE"]
|
17
17
|
# i: ["24h"]
|
18
|
-
def
|
19
|
-
authenticated_get("metrics/institutions/purpose_etf_flows_sum", params: params)
|
18
|
+
def institutions_purpose_etf_flows_sum(params={})
|
19
|
+
authenticated_get("metrics/institutions/purpose_etf_flows_sum", params: params)
|
20
20
|
end
|
21
21
|
|
22
22
|
#Tier: 1
|
@@ -24,8 +24,8 @@ module Glassnode
|
|
24
24
|
# a: asset symbol
|
25
25
|
# c: ["USD"]
|
26
26
|
# i: ["24h"]
|
27
|
-
def
|
28
|
-
authenticated_get("metrics/institutions/purpose_etf_aum_sum", params: params)
|
27
|
+
def institutions_purpose_etf_aum_sum(params={})
|
28
|
+
authenticated_get("metrics/institutions/purpose_etf_aum_sum", params: params)
|
29
29
|
end
|
30
30
|
|
31
31
|
#Tier: 2
|
@@ -33,8 +33,8 @@ module Glassnode
|
|
33
33
|
# a: asset symbol
|
34
34
|
# c: ["NATIVE"]
|
35
35
|
# i: ["24h"]
|
36
|
-
def
|
37
|
-
authenticated_get("metrics/institutions/3iq_qbtc_holdings_sum", params: params)
|
36
|
+
def institutions_3iq_qbtc_holdings_sum(params={})
|
37
|
+
authenticated_get("metrics/institutions/3iq_qbtc_holdings_sum", params: params)
|
38
38
|
end
|
39
39
|
|
40
40
|
#Tier: 2
|
@@ -42,8 +42,8 @@ module Glassnode
|
|
42
42
|
# a: asset symbol
|
43
43
|
# c: ["NATIVE"]
|
44
44
|
# i: ["24h"]
|
45
|
-
def
|
46
|
-
authenticated_get("metrics/institutions/3iq_qbtc_flows_sum", params: params)
|
45
|
+
def institutions_3iq_qbtc_flows_sum(params={})
|
46
|
+
authenticated_get("metrics/institutions/3iq_qbtc_flows_sum", params: params)
|
47
47
|
end
|
48
48
|
|
49
49
|
#Tier: 2
|
@@ -51,8 +51,8 @@ module Glassnode
|
|
51
51
|
# a: asset symbol
|
52
52
|
# c: ["NATIVE"]
|
53
53
|
# i: ["24h"]
|
54
|
-
def
|
55
|
-
authenticated_get("metrics/institutions/3iq_qbtc_premium_percent", params: params)
|
54
|
+
def institutions_3iq_qbtc_premium_percent(params={})
|
55
|
+
authenticated_get("metrics/institutions/3iq_qbtc_premium_percent", params: params)
|
56
56
|
end
|
57
57
|
|
58
58
|
#Tier: 2
|
@@ -60,8 +60,8 @@ module Glassnode
|
|
60
60
|
# a: asset symbol
|
61
61
|
# c: ["NATIVE"]
|
62
62
|
# i: ["24h"]
|
63
|
-
def
|
64
|
-
authenticated_get("metrics/institutions/3iq_qbtc_outstanding_units_sum", params: params)
|
63
|
+
def institutions_3iq_qbtc_outstanding_units_sum(params={})
|
64
|
+
authenticated_get("metrics/institutions/3iq_qbtc_outstanding_units_sum", params: params)
|
65
65
|
end
|
66
66
|
|
67
67
|
#Tier: 2
|
@@ -69,8 +69,8 @@ module Glassnode
|
|
69
69
|
# a: asset symbol
|
70
70
|
# c: ["USD"]
|
71
71
|
# i: ["24h"]
|
72
|
-
def
|
73
|
-
authenticated_get("metrics/institutions/3iq_qbtc_aum_sum", params: params)
|
72
|
+
def institutions_3iq_qbtc_aum_sum(params={})
|
73
|
+
authenticated_get("metrics/institutions/3iq_qbtc_aum_sum", params: params)
|
74
74
|
end
|
75
75
|
|
76
76
|
#Tier: 2
|
@@ -78,8 +78,8 @@ module Glassnode
|
|
78
78
|
# a: asset symbol
|
79
79
|
# c: ["USD"]
|
80
80
|
# i: ["24h"]
|
81
|
-
def
|
82
|
-
authenticated_get("metrics/institutions/3iq_qbtc_market_price_usd", params: params)
|
81
|
+
def institutions_3iq_qbtc_market_price_usd(params={})
|
82
|
+
authenticated_get("metrics/institutions/3iq_qbtc_market_price_usd", params: params)
|
83
83
|
end
|
84
84
|
|
85
85
|
#Tier: 2
|
@@ -87,8 +87,8 @@ module Glassnode
|
|
87
87
|
# a: asset symbol
|
88
88
|
# c: ["NATIVE"]
|
89
89
|
# i: ["24h"]
|
90
|
-
def
|
91
|
-
authenticated_get("metrics/institutions/3iq_btcq_holdings_sum", params: params)
|
90
|
+
def institutions_3iq_btcq_holdings_sum(params={})
|
91
|
+
authenticated_get("metrics/institutions/3iq_btcq_holdings_sum", params: params)
|
92
92
|
end
|
93
93
|
|
94
94
|
#Tier: 2
|
@@ -96,8 +96,8 @@ module Glassnode
|
|
96
96
|
# a: asset symbol
|
97
97
|
# c: ["NATIVE"]
|
98
98
|
# i: ["24h"]
|
99
|
-
def
|
100
|
-
authenticated_get("metrics/institutions/3iq_btcq_flows_sum", params: params)
|
99
|
+
def institutions_3iq_btcq_flows_sum(params={})
|
100
|
+
authenticated_get("metrics/institutions/3iq_btcq_flows_sum", params: params)
|
101
101
|
end
|
102
102
|
|
103
103
|
#Tier: 2
|
@@ -105,8 +105,8 @@ module Glassnode
|
|
105
105
|
# a: asset symbol
|
106
106
|
# c: ["NATIVE"]
|
107
107
|
# i: ["24h"]
|
108
|
-
def
|
109
|
-
authenticated_get("metrics/institutions/3iq_btcq_premium_percent", params: params)
|
108
|
+
def institutions_3iq_btcq_premium_percent(params={})
|
109
|
+
authenticated_get("metrics/institutions/3iq_btcq_premium_percent", params: params)
|
110
110
|
end
|
111
111
|
|
112
112
|
#Tier: 2
|
@@ -114,8 +114,8 @@ module Glassnode
|
|
114
114
|
# a: asset symbol
|
115
115
|
# c: ["NATIVE"]
|
116
116
|
# i: ["24h"]
|
117
|
-
def
|
118
|
-
authenticated_get("metrics/institutions/3iq_btcq_outstanding_units_sum", params: params)
|
117
|
+
def institutions_3iq_btcq_outstanding_units_sum(params={})
|
118
|
+
authenticated_get("metrics/institutions/3iq_btcq_outstanding_units_sum", params: params)
|
119
119
|
end
|
120
120
|
|
121
121
|
#Tier: 2
|
@@ -123,8 +123,8 @@ module Glassnode
|
|
123
123
|
# a: asset symbol
|
124
124
|
# c: ["USD"]
|
125
125
|
# i: ["24h"]
|
126
|
-
def
|
127
|
-
authenticated_get("metrics/institutions/3iq_btcq_aum_sum", params: params)
|
126
|
+
def institutions_3iq_btcq_aum_sum(params={})
|
127
|
+
authenticated_get("metrics/institutions/3iq_btcq_aum_sum", params: params)
|
128
128
|
end
|
129
129
|
|
130
130
|
#Tier: 2
|
@@ -132,8 +132,8 @@ module Glassnode
|
|
132
132
|
# a: asset symbol
|
133
133
|
# c: ["USD"]
|
134
134
|
# i: ["24h"]
|
135
|
-
def
|
136
|
-
authenticated_get("metrics/institutions/3iq_btcq_market_price_usd", params: params)
|
135
|
+
def institutions_3iq_btcq_market_price_usd(params={})
|
136
|
+
authenticated_get("metrics/institutions/3iq_btcq_market_price_usd", params: params)
|
137
137
|
end
|
138
138
|
|
139
139
|
#Tier: 2
|
@@ -141,8 +141,8 @@ module Glassnode
|
|
141
141
|
# a: asset symbol
|
142
142
|
# c: ["NATIVE"]
|
143
143
|
# i: ["24h"]
|
144
|
-
def
|
145
|
-
authenticated_get("metrics/institutions/3iq_qeth_holdings_sum", params: params)
|
144
|
+
def institutions_3iq_qeth_holdings_sum(params={})
|
145
|
+
authenticated_get("metrics/institutions/3iq_qeth_holdings_sum", params: params)
|
146
146
|
end
|
147
147
|
|
148
148
|
#Tier: 2
|
@@ -150,8 +150,8 @@ module Glassnode
|
|
150
150
|
# a: asset symbol
|
151
151
|
# c: ["NATIVE"]
|
152
152
|
# i: ["24h"]
|
153
|
-
def
|
154
|
-
authenticated_get("metrics/institutions/3iq_qeth_flows_sum", params: params)
|
153
|
+
def institutions_3iq_qeth_flows_sum(params={})
|
154
|
+
authenticated_get("metrics/institutions/3iq_qeth_flows_sum", params: params)
|
155
155
|
end
|
156
156
|
|
157
157
|
#Tier: 2
|
@@ -159,8 +159,8 @@ module Glassnode
|
|
159
159
|
# a: asset symbol
|
160
160
|
# c: ["NATIVE"]
|
161
161
|
# i: ["24h"]
|
162
|
-
def
|
163
|
-
authenticated_get("metrics/institutions/3iq_qeth_premium_percent", params: params)
|
162
|
+
def institutions_3iq_qeth_premium_percent(params={})
|
163
|
+
authenticated_get("metrics/institutions/3iq_qeth_premium_percent", params: params)
|
164
164
|
end
|
165
165
|
|
166
166
|
#Tier: 2
|
@@ -168,8 +168,8 @@ module Glassnode
|
|
168
168
|
# a: asset symbol
|
169
169
|
# c: ["NATIVE"]
|
170
170
|
# i: ["24h"]
|
171
|
-
def
|
172
|
-
authenticated_get("metrics/institutions/3iq_qeth_outstanding_units_sum", params: params)
|
171
|
+
def institutions_3iq_qeth_outstanding_units_sum(params={})
|
172
|
+
authenticated_get("metrics/institutions/3iq_qeth_outstanding_units_sum", params: params)
|
173
173
|
end
|
174
174
|
|
175
175
|
#Tier: 2
|
@@ -177,8 +177,8 @@ module Glassnode
|
|
177
177
|
# a: asset symbol
|
178
178
|
# c: ["USD"]
|
179
179
|
# i: ["24h"]
|
180
|
-
def
|
181
|
-
authenticated_get("metrics/institutions/3iq_qeth_aum_sum", params: params)
|
180
|
+
def institutions_3iq_qeth_aum_sum(params={})
|
181
|
+
authenticated_get("metrics/institutions/3iq_qeth_aum_sum", params: params)
|
182
182
|
end
|
183
183
|
|
184
184
|
#Tier: 2
|
@@ -186,8 +186,8 @@ module Glassnode
|
|
186
186
|
# a: asset symbol
|
187
187
|
# c: ["USD"]
|
188
188
|
# i: ["24h"]
|
189
|
-
def
|
190
|
-
authenticated_get("metrics/institutions/3iq_qeth_market_price_usd", params: params)
|
189
|
+
def institutions_3iq_qeth_market_price_usd(params={})
|
190
|
+
authenticated_get("metrics/institutions/3iq_qeth_market_price_usd", params: params)
|
191
191
|
end
|
192
192
|
|
193
193
|
#Tier: 2
|
@@ -195,8 +195,8 @@ module Glassnode
|
|
195
195
|
# a: asset symbol
|
196
196
|
# c: ["NATIVE"]
|
197
197
|
# i: ["24h"]
|
198
|
-
def
|
199
|
-
authenticated_get("metrics/institutions/3iq_ethq_holdings_sum", params: params)
|
198
|
+
def institutions_3iq_ethq_holdings_sum(params={})
|
199
|
+
authenticated_get("metrics/institutions/3iq_ethq_holdings_sum", params: params)
|
200
200
|
end
|
201
201
|
|
202
202
|
#Tier: 2
|
@@ -204,8 +204,8 @@ module Glassnode
|
|
204
204
|
# a: asset symbol
|
205
205
|
# c: ["NATIVE"]
|
206
206
|
# i: ["24h"]
|
207
|
-
def
|
208
|
-
authenticated_get("metrics/institutions/3iq_ethq_flows_sum", params: params)
|
207
|
+
def institutions_3iq_ethq_flows_sum(params={})
|
208
|
+
authenticated_get("metrics/institutions/3iq_ethq_flows_sum", params: params)
|
209
209
|
end
|
210
210
|
|
211
211
|
#Tier: 2
|
@@ -213,8 +213,8 @@ module Glassnode
|
|
213
213
|
# a: asset symbol
|
214
214
|
# c: ["NATIVE"]
|
215
215
|
# i: ["24h"]
|
216
|
-
def
|
217
|
-
authenticated_get("metrics/institutions/3iq_ethq_premium_percent", params: params)
|
216
|
+
def institutions_3iq_ethq_premium_percent(params={})
|
217
|
+
authenticated_get("metrics/institutions/3iq_ethq_premium_percent", params: params)
|
218
218
|
end
|
219
219
|
|
220
220
|
#Tier: 2
|
@@ -222,8 +222,8 @@ module Glassnode
|
|
222
222
|
# a: asset symbol
|
223
223
|
# c: ["NATIVE"]
|
224
224
|
# i: ["24h"]
|
225
|
-
def
|
226
|
-
authenticated_get("metrics/institutions/3iq_ethq_outstanding_units_sum", params: params)
|
225
|
+
def institutions_3iq_ethq_outstanding_units_sum(params={})
|
226
|
+
authenticated_get("metrics/institutions/3iq_ethq_outstanding_units_sum", params: params)
|
227
227
|
end
|
228
228
|
|
229
229
|
#Tier: 2
|
@@ -231,8 +231,8 @@ module Glassnode
|
|
231
231
|
# a: asset symbol
|
232
232
|
# c: ["USD"]
|
233
233
|
# i: ["24h"]
|
234
|
-
def
|
235
|
-
authenticated_get("metrics/institutions/3iq_ethq_aum_sum", params: params)
|
234
|
+
def institutions_3iq_ethq_aum_sum(params={})
|
235
|
+
authenticated_get("metrics/institutions/3iq_ethq_aum_sum", params: params)
|
236
236
|
end
|
237
237
|
|
238
238
|
#Tier: 2
|
@@ -240,8 +240,8 @@ module Glassnode
|
|
240
240
|
# a: asset symbol
|
241
241
|
# c: ["USD"]
|
242
242
|
# i: ["24h"]
|
243
|
-
def
|
244
|
-
authenticated_get("metrics/institutions/3iq_ethq_market_price_usd", params: params)
|
243
|
+
def institutions_3iq_ethq_market_price_usd(params={})
|
244
|
+
authenticated_get("metrics/institutions/3iq_ethq_market_price_usd", params: params)
|
245
245
|
end
|
246
246
|
|
247
247
|
#Tier: 2
|
@@ -249,8 +249,8 @@ module Glassnode
|
|
249
249
|
# a: asset symbol
|
250
250
|
# c: ["USD"]
|
251
251
|
# i: ["24h"]
|
252
|
-
def
|
253
|
-
authenticated_get("metrics/institutions/qbtc_market_price_usd", params: params)
|
252
|
+
def institutions_qbtc_market_price_usd(params={})
|
253
|
+
authenticated_get("metrics/institutions/qbtc_market_price_usd", params: params)
|
254
254
|
end
|
255
255
|
|
256
256
|
#Tier: 2
|
@@ -258,8 +258,8 @@ module Glassnode
|
|
258
258
|
# a: asset symbol
|
259
259
|
# c: ["NATIVE"]
|
260
260
|
# i: ["24h"]
|
261
|
-
def
|
262
|
-
authenticated_get("metrics/institutions/qbtc_holdings_sum", params: params)
|
261
|
+
def institutions_qbtc_holdings_sum(params={})
|
262
|
+
authenticated_get("metrics/institutions/qbtc_holdings_sum", params: params)
|
263
263
|
end
|
264
264
|
|
265
265
|
#Tier: 2
|
@@ -267,8 +267,8 @@ module Glassnode
|
|
267
267
|
# a: asset symbol
|
268
268
|
# c: ["NATIVE"]
|
269
269
|
# i: ["24h"]
|
270
|
-
def
|
271
|
-
authenticated_get("metrics/institutions/qbtc_flows_sum", params: params)
|
270
|
+
def institutions_qbtc_flows_sum(params={})
|
271
|
+
authenticated_get("metrics/institutions/qbtc_flows_sum", params: params)
|
272
272
|
end
|
273
273
|
|
274
274
|
#Tier: 2
|
@@ -276,8 +276,8 @@ module Glassnode
|
|
276
276
|
# a: asset symbol
|
277
277
|
# c: ["NATIVE"]
|
278
278
|
# i: ["24h"]
|
279
|
-
def
|
280
|
-
authenticated_get("metrics/institutions/qbtc_premium_percent", params: params)
|
279
|
+
def institutions_qbtc_premium_percent(params={})
|
280
|
+
authenticated_get("metrics/institutions/qbtc_premium_percent", params: params)
|
281
281
|
end
|
282
282
|
|
283
283
|
#Tier: 2
|
@@ -285,8 +285,8 @@ module Glassnode
|
|
285
285
|
# a: asset symbol
|
286
286
|
# c: ["USD"]
|
287
287
|
# i: ["24h"]
|
288
|
-
def
|
289
|
-
authenticated_get("metrics/institutions/qbtc_aum_sum", params: params)
|
288
|
+
def institutions_qbtc_aum_sum(params={})
|
289
|
+
authenticated_get("metrics/institutions/qbtc_aum_sum", params: params)
|
290
290
|
end
|
291
291
|
|
292
292
|
end
|
data/lib/rest/v1/lightning.rb
CHANGED
@@ -6,8 +6,8 @@ module Glassnode
|
|
6
6
|
# a: asset symbol
|
7
7
|
# c: ["NATIVE", "USD"]
|
8
8
|
# i: ["10m", "1h", "24h"]
|
9
|
-
def
|
10
|
-
authenticated_get("metrics/lightning/channel_size_mean", params: params)
|
9
|
+
def lightning_channel_size_mean(params={})
|
10
|
+
authenticated_get("metrics/lightning/channel_size_mean", params: params)
|
11
11
|
end
|
12
12
|
|
13
13
|
#Tier: 2
|
@@ -15,8 +15,8 @@ module Glassnode
|
|
15
15
|
# a: asset symbol
|
16
16
|
# c: ["NATIVE", "USD"]
|
17
17
|
# i: ["10m", "1h", "24h"]
|
18
|
-
def
|
19
|
-
authenticated_get("metrics/lightning/channel_size_median", params: params)
|
18
|
+
def lightning_channel_size_median(params={})
|
19
|
+
authenticated_get("metrics/lightning/channel_size_median", params: params)
|
20
20
|
end
|
21
21
|
|
22
22
|
#Tier: 2
|
@@ -24,8 +24,8 @@ module Glassnode
|
|
24
24
|
# a: asset symbol
|
25
25
|
# c: ["NATIVE", "USD"]
|
26
26
|
# i: ["10m", "1h", "24h"]
|
27
|
-
def
|
28
|
-
authenticated_get("metrics/lightning/network_capacity_sum", params: params)
|
27
|
+
def lightning_network_capacity_sum(params={})
|
28
|
+
authenticated_get("metrics/lightning/network_capacity_sum", params: params)
|
29
29
|
end
|
30
30
|
|
31
31
|
#Tier: 2
|
@@ -33,8 +33,8 @@ module Glassnode
|
|
33
33
|
# a: asset symbol
|
34
34
|
# c: ["NATIVE"]
|
35
35
|
# i: ["10m", "1h", "24h"]
|
36
|
-
def
|
37
|
-
authenticated_get("metrics/lightning/channels_count", params: params)
|
36
|
+
def lightning_channels_count(params={})
|
37
|
+
authenticated_get("metrics/lightning/channels_count", params: params)
|
38
38
|
end
|
39
39
|
|
40
40
|
#Tier: 2
|
@@ -42,8 +42,8 @@ module Glassnode
|
|
42
42
|
# a: asset symbol
|
43
43
|
# c: ["NATIVE"]
|
44
44
|
# i: ["10m", "1h", "24h"]
|
45
|
-
def
|
46
|
-
authenticated_get("metrics/lightning/nodes_count", params: params)
|
45
|
+
def lightning_nodes_count(params={})
|
46
|
+
authenticated_get("metrics/lightning/nodes_count", params: params)
|
47
47
|
end
|
48
48
|
|
49
49
|
#Tier: 2
|
@@ -51,8 +51,8 @@ module Glassnode
|
|
51
51
|
# a: asset symbol
|
52
52
|
# c: ["NATIVE", "USD"]
|
53
53
|
# i: ["24h"]
|
54
|
-
def
|
55
|
-
authenticated_get("metrics/lightning/base_fee_median", params: params)
|
54
|
+
def lightning_base_fee_median(params={})
|
55
|
+
authenticated_get("metrics/lightning/base_fee_median", params: params)
|
56
56
|
end
|
57
57
|
|
58
58
|
#Tier: 2
|
@@ -60,8 +60,8 @@ module Glassnode
|
|
60
60
|
# a: asset symbol
|
61
61
|
# c: ["NATIVE", "USD"]
|
62
62
|
# i: ["24h"]
|
63
|
-
def
|
64
|
-
authenticated_get("metrics/lightning/fee_rate_median", params: params)
|
63
|
+
def lightning_fee_rate_median(params={})
|
64
|
+
authenticated_get("metrics/lightning/fee_rate_median", params: params)
|
65
65
|
end
|
66
66
|
|
67
67
|
#Tier: 2
|
@@ -69,8 +69,8 @@ module Glassnode
|
|
69
69
|
# a: asset symbol
|
70
70
|
# c: ["NATIVE"]
|
71
71
|
# i: ["24h"]
|
72
|
-
def
|
73
|
-
authenticated_get("metrics/lightning/gini_capacity_distribution", params: params)
|
72
|
+
def lightning_gini_capacity_distribution(params={})
|
73
|
+
authenticated_get("metrics/lightning/gini_capacity_distribution", params: params)
|
74
74
|
end
|
75
75
|
|
76
76
|
#Tier: 2
|
@@ -78,8 +78,8 @@ module Glassnode
|
|
78
78
|
# a: asset symbol
|
79
79
|
# c: ["NATIVE"]
|
80
80
|
# i: ["24h"]
|
81
|
-
def
|
82
|
-
authenticated_get("metrics/lightning/gini_channel_distribution", params: params)
|
81
|
+
def lightning_gini_channel_distribution(params={})
|
82
|
+
authenticated_get("metrics/lightning/gini_channel_distribution", params: params)
|
83
83
|
end
|
84
84
|
|
85
85
|
#Tier: 2
|
@@ -87,8 +87,8 @@ module Glassnode
|
|
87
87
|
# a: asset symbol
|
88
88
|
# c: ["NATIVE"]
|
89
89
|
# i: ["24h"]
|
90
|
-
def
|
91
|
-
authenticated_get("metrics/lightning/node_connectivity", params: params)
|
90
|
+
def lightning_node_connectivity(params={})
|
91
|
+
authenticated_get("metrics/lightning/node_connectivity", params: params)
|
92
92
|
end
|
93
93
|
|
94
94
|
end
|
data/lib/rest/v1/market.rb
CHANGED
@@ -6,8 +6,8 @@ module Glassnode
|
|
6
6
|
# a: asset symbol
|
7
7
|
# c: ["NATIVE"]
|
8
8
|
# i: ["1h", "24h", "10m", "1w", "1month"]
|
9
|
-
def
|
10
|
-
authenticated_get("metrics/market/price_usd", params: params)
|
9
|
+
def market_price_usd(params={})
|
10
|
+
authenticated_get("metrics/market/price_usd", params: params)
|
11
11
|
end
|
12
12
|
|
13
13
|
#Tier: 1
|
@@ -15,8 +15,8 @@ module Glassnode
|
|
15
15
|
# a: asset symbol
|
16
16
|
# c: ["NATIVE"]
|
17
17
|
# i: ["1h", "24h", "10m", "1w", "1month"]
|
18
|
-
def
|
19
|
-
authenticated_get("metrics/market/price_usd_close", params: params)
|
18
|
+
def market_price_usd_close(params={})
|
19
|
+
authenticated_get("metrics/market/price_usd_close", params: params)
|
20
20
|
end
|
21
21
|
|
22
22
|
#Tier: 1
|
@@ -24,8 +24,8 @@ module Glassnode
|
|
24
24
|
# a: asset symbol
|
25
25
|
# c: ["NATIVE"]
|
26
26
|
# i: ["1h", "24h"]
|
27
|
-
def
|
28
|
-
authenticated_get("metrics/market/price_usd_ohlc", params: params)
|
27
|
+
def market_price_usd_ohlc(params={})
|
28
|
+
authenticated_get("metrics/market/price_usd_ohlc", params: params)
|
29
29
|
end
|
30
30
|
|
31
31
|
#Tier: 1
|
@@ -33,8 +33,8 @@ module Glassnode
|
|
33
33
|
# a: asset symbol
|
34
34
|
# c: ["NATIVE"]
|
35
35
|
# i: ["1h", "24h", "10m", "1w", "1month"]
|
36
|
-
def
|
37
|
-
authenticated_get("metrics/market/price_drawdown_relative", params: params)
|
36
|
+
def market_price_drawdown_relative(params={})
|
37
|
+
authenticated_get("metrics/market/price_drawdown_relative", params: params)
|
38
38
|
end
|
39
39
|
|
40
40
|
#Tier: 2
|
@@ -42,8 +42,8 @@ module Glassnode
|
|
42
42
|
# a: asset symbol
|
43
43
|
# c: ["NATIVE"]
|
44
44
|
# i: ["1h", "24h"]
|
45
|
-
def
|
46
|
-
authenticated_get("metrics/market/deltacap_usd", params: params)
|
45
|
+
def market_deltacap_usd(params={})
|
46
|
+
authenticated_get("metrics/market/deltacap_usd", params: params)
|
47
47
|
end
|
48
48
|
|
49
49
|
#Tier: 1
|
@@ -51,8 +51,8 @@ module Glassnode
|
|
51
51
|
# a: asset symbol
|
52
52
|
# c: ["NATIVE"]
|
53
53
|
# i: ["1h", "24h", "10m", "1w", "1month"]
|
54
|
-
def
|
55
|
-
authenticated_get("metrics/market/marketcap_usd", params: params)
|
54
|
+
def market_marketcap_usd(params={})
|
55
|
+
authenticated_get("metrics/market/marketcap_usd", params: params)
|
56
56
|
end
|
57
57
|
|
58
58
|
#Tier: 2
|
@@ -60,8 +60,8 @@ module Glassnode
|
|
60
60
|
# a: asset symbol
|
61
61
|
# c: ["NATIVE"]
|
62
62
|
# i: ["1h", "24h", "10m"]
|
63
|
-
def
|
64
|
-
authenticated_get("metrics/market/mvrv", params: params)
|
63
|
+
def market_mvrv(params={})
|
64
|
+
authenticated_get("metrics/market/mvrv", params: params)
|
65
65
|
end
|
66
66
|
|
67
67
|
#Tier: 2
|
@@ -69,8 +69,8 @@ module Glassnode
|
|
69
69
|
# a: asset symbol
|
70
70
|
# c: ["NATIVE"]
|
71
71
|
# i: ["1h", "24h", "10m"]
|
72
|
-
def
|
73
|
-
authenticated_get("metrics/market/marketcap_realized_usd", params: params)
|
72
|
+
def market_marketcap_realized_usd(params={})
|
73
|
+
authenticated_get("metrics/market/marketcap_realized_usd", params: params)
|
74
74
|
end
|
75
75
|
|
76
76
|
#Tier: 2
|
@@ -78,8 +78,8 @@ module Glassnode
|
|
78
78
|
# a: asset symbol
|
79
79
|
# c: ["NATIVE"]
|
80
80
|
# i: ["1h", "24h", "10m"]
|
81
|
-
def
|
82
|
-
authenticated_get("metrics/market/mvrv_z_score", params: params)
|
81
|
+
def market_mvrv_z_score(params={})
|
82
|
+
authenticated_get("metrics/market/mvrv_z_score", params: params)
|
83
83
|
end
|
84
84
|
|
85
85
|
#Tier: 3
|
@@ -87,8 +87,8 @@ module Glassnode
|
|
87
87
|
# a: asset symbol
|
88
88
|
# c: ["NATIVE"]
|
89
89
|
# i: ["1h", "24h"]
|
90
|
-
def
|
91
|
-
authenticated_get("metrics/market/mvrv_less_155", params: params)
|
90
|
+
def market_mvrv_less_155(params={})
|
91
|
+
authenticated_get("metrics/market/mvrv_less_155", params: params)
|
92
92
|
end
|
93
93
|
|
94
94
|
#Tier: 3
|
@@ -96,8 +96,8 @@ module Glassnode
|
|
96
96
|
# a: asset symbol
|
97
97
|
# c: ["NATIVE"]
|
98
98
|
# i: ["1h", "24h"]
|
99
|
-
def
|
100
|
-
authenticated_get("metrics/market/mvrv_more_155", params: params)
|
99
|
+
def market_mvrv_more_155(params={})
|
100
|
+
authenticated_get("metrics/market/mvrv_more_155", params: params)
|
101
101
|
end
|
102
102
|
|
103
103
|
#Tier: 2
|
@@ -105,8 +105,8 @@ module Glassnode
|
|
105
105
|
# a: asset symbol
|
106
106
|
# c: ["NATIVE"]
|
107
107
|
# i: ["1h", "24h", "10m"]
|
108
|
-
def
|
109
|
-
authenticated_get("metrics/market/price_realized_usd", params: params)
|
108
|
+
def market_price_realized_usd(params={})
|
109
|
+
authenticated_get("metrics/market/price_realized_usd", params: params)
|
110
110
|
end
|
111
111
|
|
112
112
|
#Tier: 2
|
@@ -114,8 +114,8 @@ module Glassnode
|
|
114
114
|
# a: asset symbol
|
115
115
|
# c: ["USD"]
|
116
116
|
# i: ["24h"]
|
117
|
-
def
|
118
|
-
authenticated_get("metrics/market/amer_30d_price_change", params: params)
|
117
|
+
def market_amer_30d_price_change(params={})
|
118
|
+
authenticated_get("metrics/market/amer_30d_price_change", params: params)
|
119
119
|
end
|
120
120
|
|
121
121
|
#Tier: 2
|
@@ -123,8 +123,8 @@ module Glassnode
|
|
123
123
|
# a: asset symbol
|
124
124
|
# c: ["USD"]
|
125
125
|
# i: ["24h"]
|
126
|
-
def
|
127
|
-
authenticated_get("metrics/market/apac_30d_price_change", params: params)
|
126
|
+
def market_apac_30d_price_change(params={})
|
127
|
+
authenticated_get("metrics/market/apac_30d_price_change", params: params)
|
128
128
|
end
|
129
129
|
|
130
130
|
#Tier: 2
|
@@ -132,8 +132,8 @@ module Glassnode
|
|
132
132
|
# a: asset symbol
|
133
133
|
# c: ["USD"]
|
134
134
|
# i: ["24h"]
|
135
|
-
def
|
136
|
-
authenticated_get("metrics/market/emea_30d_price_change", params: params)
|
135
|
+
def market_emea_30d_price_change(params={})
|
136
|
+
authenticated_get("metrics/market/emea_30d_price_change", params: params)
|
137
137
|
end
|
138
138
|
|
139
139
|
end
|