glassnode 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,293 @@
1
+ module Glassnode
2
+ module RESTv1Institutions
3
+
4
+ #Tier: 1
5
+ #Params
6
+ # a: asset symbol
7
+ # c: ["NATIVE"]
8
+ # i: ["24h"]
9
+ def purpose_etf_holdings_sum(params={})
10
+ authenticated_get("metrics/institutions/purpose_etf_holdings_sum", params: params).body
11
+ end
12
+
13
+ #Tier: 1
14
+ #Params
15
+ # a: asset symbol
16
+ # c: ["NATIVE"]
17
+ # i: ["24h"]
18
+ def purpose_etf_flows_sum(params={})
19
+ authenticated_get("metrics/institutions/purpose_etf_flows_sum", params: params).body
20
+ end
21
+
22
+ #Tier: 1
23
+ #Params
24
+ # a: asset symbol
25
+ # c: ["USD"]
26
+ # i: ["24h"]
27
+ def purpose_etf_aum_sum(params={})
28
+ authenticated_get("metrics/institutions/purpose_etf_aum_sum", params: params).body
29
+ end
30
+
31
+ #Tier: 2
32
+ #Params
33
+ # a: asset symbol
34
+ # c: ["NATIVE"]
35
+ # i: ["24h"]
36
+ def iq3_qbtc_holdings_sum(params={})
37
+ authenticated_get("metrics/institutions/3iq_qbtc_holdings_sum", params: params).body
38
+ end
39
+
40
+ #Tier: 2
41
+ #Params
42
+ # a: asset symbol
43
+ # c: ["NATIVE"]
44
+ # i: ["24h"]
45
+ def iq3_qbtc_flows_sum(params={})
46
+ authenticated_get("metrics/institutions/3iq_qbtc_flows_sum", params: params).body
47
+ end
48
+
49
+ #Tier: 2
50
+ #Params
51
+ # a: asset symbol
52
+ # c: ["NATIVE"]
53
+ # i: ["24h"]
54
+ def iq3_qbtc_premium_percent(params={})
55
+ authenticated_get("metrics/institutions/3iq_qbtc_premium_percent", params: params).body
56
+ end
57
+
58
+ #Tier: 2
59
+ #Params
60
+ # a: asset symbol
61
+ # c: ["NATIVE"]
62
+ # i: ["24h"]
63
+ def iq3_qbtc_outstanding_units_sum(params={})
64
+ authenticated_get("metrics/institutions/3iq_qbtc_outstanding_units_sum", params: params).body
65
+ end
66
+
67
+ #Tier: 2
68
+ #Params
69
+ # a: asset symbol
70
+ # c: ["USD"]
71
+ # i: ["24h"]
72
+ def iq3_qbtc_aum_sum(params={})
73
+ authenticated_get("metrics/institutions/3iq_qbtc_aum_sum", params: params).body
74
+ end
75
+
76
+ #Tier: 2
77
+ #Params
78
+ # a: asset symbol
79
+ # c: ["USD"]
80
+ # i: ["24h"]
81
+ def iq3_qbtc_market_price_usd(params={})
82
+ authenticated_get("metrics/institutions/3iq_qbtc_market_price_usd", params: params).body
83
+ end
84
+
85
+ #Tier: 2
86
+ #Params
87
+ # a: asset symbol
88
+ # c: ["NATIVE"]
89
+ # i: ["24h"]
90
+ def iq3_btcq_holdings_sum(params={})
91
+ authenticated_get("metrics/institutions/3iq_btcq_holdings_sum", params: params).body
92
+ end
93
+
94
+ #Tier: 2
95
+ #Params
96
+ # a: asset symbol
97
+ # c: ["NATIVE"]
98
+ # i: ["24h"]
99
+ def iq3_btcq_flows_sum(params={})
100
+ authenticated_get("metrics/institutions/3iq_btcq_flows_sum", params: params).body
101
+ end
102
+
103
+ #Tier: 2
104
+ #Params
105
+ # a: asset symbol
106
+ # c: ["NATIVE"]
107
+ # i: ["24h"]
108
+ def iq3_btcq_premium_percent(params={})
109
+ authenticated_get("metrics/institutions/3iq_btcq_premium_percent", params: params).body
110
+ end
111
+
112
+ #Tier: 2
113
+ #Params
114
+ # a: asset symbol
115
+ # c: ["NATIVE"]
116
+ # i: ["24h"]
117
+ def iq3_btcq_outstanding_units_sum(params={})
118
+ authenticated_get("metrics/institutions/3iq_btcq_outstanding_units_sum", params: params).body
119
+ end
120
+
121
+ #Tier: 2
122
+ #Params
123
+ # a: asset symbol
124
+ # c: ["USD"]
125
+ # i: ["24h"]
126
+ def iq3_btcq_aum_sum(params={})
127
+ authenticated_get("metrics/institutions/3iq_btcq_aum_sum", params: params).body
128
+ end
129
+
130
+ #Tier: 2
131
+ #Params
132
+ # a: asset symbol
133
+ # c: ["USD"]
134
+ # i: ["24h"]
135
+ def iq3_btcq_market_price_usd(params={})
136
+ authenticated_get("metrics/institutions/3iq_btcq_market_price_usd", params: params).body
137
+ end
138
+
139
+ #Tier: 2
140
+ #Params
141
+ # a: asset symbol
142
+ # c: ["NATIVE"]
143
+ # i: ["24h"]
144
+ def iq3_qeth_holdings_sum(params={})
145
+ authenticated_get("metrics/institutions/3iq_qeth_holdings_sum", params: params).body
146
+ end
147
+
148
+ #Tier: 2
149
+ #Params
150
+ # a: asset symbol
151
+ # c: ["NATIVE"]
152
+ # i: ["24h"]
153
+ def iq3_qeth_flows_sum(params={})
154
+ authenticated_get("metrics/institutions/3iq_qeth_flows_sum", params: params).body
155
+ end
156
+
157
+ #Tier: 2
158
+ #Params
159
+ # a: asset symbol
160
+ # c: ["NATIVE"]
161
+ # i: ["24h"]
162
+ def iq3_qeth_premium_percent(params={})
163
+ authenticated_get("metrics/institutions/3iq_qeth_premium_percent", params: params).body
164
+ end
165
+
166
+ #Tier: 2
167
+ #Params
168
+ # a: asset symbol
169
+ # c: ["NATIVE"]
170
+ # i: ["24h"]
171
+ def iq3_qeth_outstanding_units_sum(params={})
172
+ authenticated_get("metrics/institutions/3iq_qeth_outstanding_units_sum", params: params).body
173
+ end
174
+
175
+ #Tier: 2
176
+ #Params
177
+ # a: asset symbol
178
+ # c: ["USD"]
179
+ # i: ["24h"]
180
+ def iq3_qeth_aum_sum(params={})
181
+ authenticated_get("metrics/institutions/3iq_qeth_aum_sum", params: params).body
182
+ end
183
+
184
+ #Tier: 2
185
+ #Params
186
+ # a: asset symbol
187
+ # c: ["USD"]
188
+ # i: ["24h"]
189
+ def iq3_qeth_market_price_usd(params={})
190
+ authenticated_get("metrics/institutions/3iq_qeth_market_price_usd", params: params).body
191
+ end
192
+
193
+ #Tier: 2
194
+ #Params
195
+ # a: asset symbol
196
+ # c: ["NATIVE"]
197
+ # i: ["24h"]
198
+ def iq3_ethq_holdings_sum(params={})
199
+ authenticated_get("metrics/institutions/3iq_ethq_holdings_sum", params: params).body
200
+ end
201
+
202
+ #Tier: 2
203
+ #Params
204
+ # a: asset symbol
205
+ # c: ["NATIVE"]
206
+ # i: ["24h"]
207
+ def iq3_ethq_flows_sum(params={})
208
+ authenticated_get("metrics/institutions/3iq_ethq_flows_sum", params: params).body
209
+ end
210
+
211
+ #Tier: 2
212
+ #Params
213
+ # a: asset symbol
214
+ # c: ["NATIVE"]
215
+ # i: ["24h"]
216
+ def iq3_ethq_premium_percent(params={})
217
+ authenticated_get("metrics/institutions/3iq_ethq_premium_percent", params: params).body
218
+ end
219
+
220
+ #Tier: 2
221
+ #Params
222
+ # a: asset symbol
223
+ # c: ["NATIVE"]
224
+ # i: ["24h"]
225
+ def iq3_ethq_outstanding_units_sum(params={})
226
+ authenticated_get("metrics/institutions/3iq_ethq_outstanding_units_sum", params: params).body
227
+ end
228
+
229
+ #Tier: 2
230
+ #Params
231
+ # a: asset symbol
232
+ # c: ["USD"]
233
+ # i: ["24h"]
234
+ def iq3_ethq_aum_sum(params={})
235
+ authenticated_get("metrics/institutions/3iq_ethq_aum_sum", params: params).body
236
+ end
237
+
238
+ #Tier: 2
239
+ #Params
240
+ # a: asset symbol
241
+ # c: ["USD"]
242
+ # i: ["24h"]
243
+ def iq3_ethq_market_price_usd(params={})
244
+ authenticated_get("metrics/institutions/3iq_ethq_market_price_usd", params: params).body
245
+ end
246
+
247
+ #Tier: 2
248
+ #Params
249
+ # a: asset symbol
250
+ # c: ["USD"]
251
+ # i: ["24h"]
252
+ def qbtc_market_price_usd(params={})
253
+ authenticated_get("metrics/institutions/qbtc_market_price_usd", params: params).body
254
+ end
255
+
256
+ #Tier: 2
257
+ #Params
258
+ # a: asset symbol
259
+ # c: ["NATIVE"]
260
+ # i: ["24h"]
261
+ def qbtc_holdings_sum(params={})
262
+ authenticated_get("metrics/institutions/qbtc_holdings_sum", params: params).body
263
+ end
264
+
265
+ #Tier: 2
266
+ #Params
267
+ # a: asset symbol
268
+ # c: ["NATIVE"]
269
+ # i: ["24h"]
270
+ def qbtc_flows_sum(params={})
271
+ authenticated_get("metrics/institutions/qbtc_flows_sum", params: params).body
272
+ end
273
+
274
+ #Tier: 2
275
+ #Params
276
+ # a: asset symbol
277
+ # c: ["NATIVE"]
278
+ # i: ["24h"]
279
+ def qbtc_premium_percent(params={})
280
+ authenticated_get("metrics/institutions/qbtc_premium_percent", params: params).body
281
+ end
282
+
283
+ #Tier: 2
284
+ #Params
285
+ # a: asset symbol
286
+ # c: ["USD"]
287
+ # i: ["24h"]
288
+ def qbtc_aum_sum(params={})
289
+ authenticated_get("metrics/institutions/qbtc_aum_sum", params: params).body
290
+ end
291
+
292
+ end
293
+ end
@@ -0,0 +1,95 @@
1
+ module Glassnode
2
+ module RESTv1Lightning
3
+
4
+ #Tier: 2
5
+ #Params
6
+ # a: asset symbol
7
+ # c: ["NATIVE", "USD"]
8
+ # i: ["10m", "1h", "24h"]
9
+ def channel_size_mean(params={})
10
+ authenticated_get("metrics/lightning/channel_size_mean", params: params).body
11
+ end
12
+
13
+ #Tier: 2
14
+ #Params
15
+ # a: asset symbol
16
+ # c: ["NATIVE", "USD"]
17
+ # i: ["10m", "1h", "24h"]
18
+ def channel_size_median(params={})
19
+ authenticated_get("metrics/lightning/channel_size_median", params: params).body
20
+ end
21
+
22
+ #Tier: 2
23
+ #Params
24
+ # a: asset symbol
25
+ # c: ["NATIVE", "USD"]
26
+ # i: ["10m", "1h", "24h"]
27
+ def network_capacity_sum(params={})
28
+ authenticated_get("metrics/lightning/network_capacity_sum", params: params).body
29
+ end
30
+
31
+ #Tier: 2
32
+ #Params
33
+ # a: asset symbol
34
+ # c: ["NATIVE"]
35
+ # i: ["10m", "1h", "24h"]
36
+ def channels_count(params={})
37
+ authenticated_get("metrics/lightning/channels_count", params: params).body
38
+ end
39
+
40
+ #Tier: 2
41
+ #Params
42
+ # a: asset symbol
43
+ # c: ["NATIVE"]
44
+ # i: ["10m", "1h", "24h"]
45
+ def nodes_count(params={})
46
+ authenticated_get("metrics/lightning/nodes_count", params: params).body
47
+ end
48
+
49
+ #Tier: 2
50
+ #Params
51
+ # a: asset symbol
52
+ # c: ["NATIVE", "USD"]
53
+ # i: ["24h"]
54
+ def base_fee_median(params={})
55
+ authenticated_get("metrics/lightning/base_fee_median", params: params).body
56
+ end
57
+
58
+ #Tier: 2
59
+ #Params
60
+ # a: asset symbol
61
+ # c: ["NATIVE", "USD"]
62
+ # i: ["24h"]
63
+ def fee_rate_median(params={})
64
+ authenticated_get("metrics/lightning/fee_rate_median", params: params).body
65
+ end
66
+
67
+ #Tier: 2
68
+ #Params
69
+ # a: asset symbol
70
+ # c: ["NATIVE"]
71
+ # i: ["24h"]
72
+ def gini_capacity_distribution(params={})
73
+ authenticated_get("metrics/lightning/gini_capacity_distribution", params: params).body
74
+ end
75
+
76
+ #Tier: 2
77
+ #Params
78
+ # a: asset symbol
79
+ # c: ["NATIVE"]
80
+ # i: ["24h"]
81
+ def gini_channel_distribution(params={})
82
+ authenticated_get("metrics/lightning/gini_channel_distribution", params: params).body
83
+ end
84
+
85
+ #Tier: 2
86
+ #Params
87
+ # a: asset symbol
88
+ # c: ["NATIVE"]
89
+ # i: ["24h"]
90
+ def node_connectivity(params={})
91
+ authenticated_get("metrics/lightning/node_connectivity", params: params).body
92
+ end
93
+
94
+ end
95
+ end
@@ -0,0 +1,140 @@
1
+ module Glassnode
2
+ module RESTv1Market
3
+
4
+ #Tier: 1
5
+ #Params
6
+ # a: asset symbol
7
+ # c: ["NATIVE"]
8
+ # i: ["1h", "24h", "10m", "1w", "1month"]
9
+ def price_usd(params={})
10
+ authenticated_get("metrics/market/price_usd", params: params).body
11
+ end
12
+
13
+ #Tier: 1
14
+ #Params
15
+ # a: asset symbol
16
+ # c: ["NATIVE"]
17
+ # i: ["1h", "24h", "10m", "1w", "1month"]
18
+ def price_usd_close(params={})
19
+ authenticated_get("metrics/market/price_usd_close", params: params).body
20
+ end
21
+
22
+ #Tier: 1
23
+ #Params
24
+ # a: asset symbol
25
+ # c: ["NATIVE"]
26
+ # i: ["1h", "24h"]
27
+ def price_usd_ohlc(params={})
28
+ authenticated_get("metrics/market/price_usd_ohlc", params: params).body
29
+ end
30
+
31
+ #Tier: 1
32
+ #Params
33
+ # a: asset symbol
34
+ # c: ["NATIVE"]
35
+ # i: ["1h", "24h", "10m", "1w", "1month"]
36
+ def price_drawdown_relative(params={})
37
+ authenticated_get("metrics/market/price_drawdown_relative", params: params).body
38
+ end
39
+
40
+ #Tier: 2
41
+ #Params
42
+ # a: asset symbol
43
+ # c: ["NATIVE"]
44
+ # i: ["1h", "24h"]
45
+ def deltacap_usd(params={})
46
+ authenticated_get("metrics/market/deltacap_usd", params: params).body
47
+ end
48
+
49
+ #Tier: 1
50
+ #Params
51
+ # a: asset symbol
52
+ # c: ["NATIVE"]
53
+ # i: ["1h", "24h", "10m", "1w", "1month"]
54
+ def marketcap_usd(params={})
55
+ authenticated_get("metrics/market/marketcap_usd", params: params).body
56
+ end
57
+
58
+ #Tier: 2
59
+ #Params
60
+ # a: asset symbol
61
+ # c: ["NATIVE"]
62
+ # i: ["1h", "24h", "10m"]
63
+ def mvrv(params={})
64
+ authenticated_get("metrics/market/mvrv", params: params).body
65
+ end
66
+
67
+ #Tier: 2
68
+ #Params
69
+ # a: asset symbol
70
+ # c: ["NATIVE"]
71
+ # i: ["1h", "24h", "10m"]
72
+ def marketcap_realized_usd(params={})
73
+ authenticated_get("metrics/market/marketcap_realized_usd", params: params).body
74
+ end
75
+
76
+ #Tier: 2
77
+ #Params
78
+ # a: asset symbol
79
+ # c: ["NATIVE"]
80
+ # i: ["1h", "24h", "10m"]
81
+ def mvrv_z_score(params={})
82
+ authenticated_get("metrics/market/mvrv_z_score", params: params).body
83
+ end
84
+
85
+ #Tier: 3
86
+ #Params
87
+ # a: asset symbol
88
+ # c: ["NATIVE"]
89
+ # i: ["1h", "24h"]
90
+ def mvrv_less_155(params={})
91
+ authenticated_get("metrics/market/mvrv_less_155", params: params).body
92
+ end
93
+
94
+ #Tier: 3
95
+ #Params
96
+ # a: asset symbol
97
+ # c: ["NATIVE"]
98
+ # i: ["1h", "24h"]
99
+ def mvrv_more_155(params={})
100
+ authenticated_get("metrics/market/mvrv_more_155", params: params).body
101
+ end
102
+
103
+ #Tier: 2
104
+ #Params
105
+ # a: asset symbol
106
+ # c: ["NATIVE"]
107
+ # i: ["1h", "24h", "10m"]
108
+ def price_realized_usd(params={})
109
+ authenticated_get("metrics/market/price_realized_usd", params: params).body
110
+ end
111
+
112
+ #Tier: 2
113
+ #Params
114
+ # a: asset symbol
115
+ # c: ["USD"]
116
+ # i: ["24h"]
117
+ def amer_30d_price_change(params={})
118
+ authenticated_get("metrics/market/amer_30d_price_change", params: params).body
119
+ end
120
+
121
+ #Tier: 2
122
+ #Params
123
+ # a: asset symbol
124
+ # c: ["USD"]
125
+ # i: ["24h"]
126
+ def apac_30d_price_change(params={})
127
+ authenticated_get("metrics/market/apac_30d_price_change", params: params).body
128
+ end
129
+
130
+ #Tier: 2
131
+ #Params
132
+ # a: asset symbol
133
+ # c: ["USD"]
134
+ # i: ["24h"]
135
+ def emea_30d_price_change(params={})
136
+ authenticated_get("metrics/market/emea_30d_price_change", params: params).body
137
+ end
138
+
139
+ end
140
+ end
@@ -0,0 +1,95 @@
1
+ module Glassnode
2
+ module RESTv1Mempool
3
+
4
+ #Tier: 2
5
+ #Params
6
+ # a: asset symbol
7
+ # c: ["NATIVE"]
8
+ # i: ["10m", "1h", "24h"]
9
+ def txs_count_distribution(params={})
10
+ authenticated_get("metrics/mempool/txs_count_distribution", params: params).body
11
+ end
12
+
13
+ #Tier: 2
14
+ #Params
15
+ # a: asset symbol
16
+ # c: ["NATIVE"]
17
+ # i: ["10m", "1h", "24h"]
18
+ def txs_count_sum(params={})
19
+ authenticated_get("metrics/mempool/txs_count_sum", params: params).body
20
+ end
21
+
22
+ #Tier: 2
23
+ #Params
24
+ # a: asset symbol
25
+ # c: ["NATIVE"]
26
+ # i: ["10m", "1h", "24h"]
27
+ def txs_size_distribution(params={})
28
+ authenticated_get("metrics/mempool/txs_size_distribution", params: params).body
29
+ end
30
+
31
+ #Tier: 2
32
+ #Params
33
+ # a: asset symbol
34
+ # c: ["NATIVE"]
35
+ # i: ["10m", "1h", "24h"]
36
+ def txs_size_sum(params={})
37
+ authenticated_get("metrics/mempool/txs_size_sum", params: params).body
38
+ end
39
+
40
+ #Tier: 2
41
+ #Params
42
+ # a: asset symbol
43
+ # c: ["NATIVE", "USD"]
44
+ # i: ["10m", "1h", "24h"]
45
+ def fees_distribution(params={})
46
+ authenticated_get("metrics/mempool/fees_distribution", params: params).body
47
+ end
48
+
49
+ #Tier: 2
50
+ #Params
51
+ # a: asset symbol
52
+ # c: ["NATIVE", "USD"]
53
+ # i: ["10m", "1h", "24h"]
54
+ def fees_sum(params={})
55
+ authenticated_get("metrics/mempool/fees_sum", params: params).body
56
+ end
57
+
58
+ #Tier: 2
59
+ #Params
60
+ # a: asset symbol
61
+ # c: ["NATIVE", "USD"]
62
+ # i: ["10m", "1h", "24h"]
63
+ def txs_value_distribution(params={})
64
+ authenticated_get("metrics/mempool/txs_value_distribution", params: params).body
65
+ end
66
+
67
+ #Tier: 2
68
+ #Params
69
+ # a: asset symbol
70
+ # c: ["NATIVE", "USD"]
71
+ # i: ["10m", "1h", "24h"]
72
+ def txs_value_sum(params={})
73
+ authenticated_get("metrics/mempool/txs_value_sum", params: params).body
74
+ end
75
+
76
+ #Tier: 2
77
+ #Params
78
+ # a: asset symbol
79
+ # c: ["NATIVE", "USD"]
80
+ # i: ["10m", "1h", "24h"]
81
+ def fees_average_relative(params={})
82
+ authenticated_get("metrics/mempool/fees_average_relative", params: params).body
83
+ end
84
+
85
+ #Tier: 2
86
+ #Params
87
+ # a: asset symbol
88
+ # c: ["NATIVE", "USD"]
89
+ # i: ["10m", "1h", "24h"]
90
+ def fees_median_relative(params={})
91
+ authenticated_get("metrics/mempool/fees_median_relative", params: params).body
92
+ end
93
+
94
+ end
95
+ end