glassnode 0.0.2 → 0.0.5
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/glassnode.rb +0 -1
- data/lib/rest/rest_client.rb +0 -1
- data/lib/rest/v1/addresses.rb +39 -39
- 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
- metadata +3 -5
- data/lib/errors.rb +0 -34
data/lib/rest/v1/eth2.rb
CHANGED
@@ -7,7 +7,7 @@ module Glassnode
|
|
7
7
|
# c: ["NATIVE"]
|
8
8
|
# i: ["1h", "24h"]
|
9
9
|
def eth2_staking_deposits_count(params={})
|
10
|
-
authenticated_get("metrics/eth2/staking_deposits_count", params: params)
|
10
|
+
authenticated_get("metrics/eth2/staking_deposits_count", params: params)
|
11
11
|
end
|
12
12
|
|
13
13
|
#Tier: 1
|
@@ -16,7 +16,7 @@ module Glassnode
|
|
16
16
|
# c: ["NATIVE"]
|
17
17
|
# i: ["1h", "24h"]
|
18
18
|
def eth2_staking_validators_count(params={})
|
19
|
-
authenticated_get("metrics/eth2/staking_validators_count", params: params)
|
19
|
+
authenticated_get("metrics/eth2/staking_validators_count", params: params)
|
20
20
|
end
|
21
21
|
|
22
22
|
#Tier: 1
|
@@ -25,7 +25,7 @@ module Glassnode
|
|
25
25
|
# c: ["NATIVE"]
|
26
26
|
# i: ["1h", "24h"]
|
27
27
|
def eth2_staking_total_deposits_count(params={})
|
28
|
-
authenticated_get("metrics/eth2/staking_total_deposits_count", params: params)
|
28
|
+
authenticated_get("metrics/eth2/staking_total_deposits_count", params: params)
|
29
29
|
end
|
30
30
|
|
31
31
|
#Tier: 1
|
@@ -34,7 +34,7 @@ module Glassnode
|
|
34
34
|
# c: ["NATIVE"]
|
35
35
|
# i: ["1h", "24h"]
|
36
36
|
def eth2_staking_total_validators_count(params={})
|
37
|
-
authenticated_get("metrics/eth2/staking_total_validators_count", params: params)
|
37
|
+
authenticated_get("metrics/eth2/staking_total_validators_count", params: params)
|
38
38
|
end
|
39
39
|
|
40
40
|
#Tier: 1
|
@@ -43,7 +43,7 @@ module Glassnode
|
|
43
43
|
# c: ["NATIVE"]
|
44
44
|
# i: ["1h", "24h"]
|
45
45
|
def eth2_staking_phase_0_goal_percent(params={})
|
46
|
-
authenticated_get("metrics/eth2/staking_phase_0_goal_percent", params: params)
|
46
|
+
authenticated_get("metrics/eth2/staking_phase_0_goal_percent", params: params)
|
47
47
|
end
|
48
48
|
|
49
49
|
#Tier: 2
|
@@ -52,7 +52,7 @@ module Glassnode
|
|
52
52
|
# c: ["NATIVE", "USD"]
|
53
53
|
# i: ["1h", "24h"]
|
54
54
|
def eth2_staking_volume_sum(params={})
|
55
|
-
authenticated_get("metrics/eth2/staking_volume_sum", params: params)
|
55
|
+
authenticated_get("metrics/eth2/staking_volume_sum", params: params)
|
56
56
|
end
|
57
57
|
|
58
58
|
#Tier: 2
|
@@ -61,7 +61,7 @@ module Glassnode
|
|
61
61
|
# c: ["NATIVE", "USD"]
|
62
62
|
# i: ["1h", "24h"]
|
63
63
|
def eth2_staking_total_volume_sum(params={})
|
64
|
-
authenticated_get("metrics/eth2/staking_total_volume_sum", params: params)
|
64
|
+
authenticated_get("metrics/eth2/staking_total_volume_sum", params: params)
|
65
65
|
end
|
66
66
|
|
67
67
|
#Tier: 2
|
@@ -70,7 +70,7 @@ module Glassnode
|
|
70
70
|
# c: ["NATIVE", "USD"]
|
71
71
|
# i: ["24h"]
|
72
72
|
def eth2_deposited_by_provider_volume_sum(params={})
|
73
|
-
authenticated_get("metrics/eth2/deposited_by_provider_volume_sum", params: params)
|
73
|
+
authenticated_get("metrics/eth2/deposited_by_provider_volume_sum", params: params)
|
74
74
|
end
|
75
75
|
|
76
76
|
end
|
data/lib/rest/v1/fees.rb
CHANGED
@@ -7,7 +7,7 @@ module Glassnode
|
|
7
7
|
# c: ["NATIVE"]
|
8
8
|
# i: ["1h", "24h", "10m", "1w", "1month"]
|
9
9
|
def fees_gas_used_sum(params={})
|
10
|
-
authenticated_get("metrics/fees/gas_used_sum", params: params)
|
10
|
+
authenticated_get("metrics/fees/gas_used_sum", params: params)
|
11
11
|
end
|
12
12
|
|
13
13
|
#Tier: 1
|
@@ -16,7 +16,7 @@ module Glassnode
|
|
16
16
|
# c: ["NATIVE"]
|
17
17
|
# i: ["1h", "24h", "10m", "1w", "1month"]
|
18
18
|
def fees_gas_used_mean(params={})
|
19
|
-
authenticated_get("metrics/fees/gas_used_mean", params: params)
|
19
|
+
authenticated_get("metrics/fees/gas_used_mean", params: params)
|
20
20
|
end
|
21
21
|
|
22
22
|
#Tier: 1
|
@@ -25,7 +25,7 @@ module Glassnode
|
|
25
25
|
# c: ["NATIVE"]
|
26
26
|
# i: ["1h", "24h", "10m", "1w", "1month"]
|
27
27
|
def fees_gas_used_median(params={})
|
28
|
-
authenticated_get("metrics/fees/gas_used_median", params: params)
|
28
|
+
authenticated_get("metrics/fees/gas_used_median", params: params)
|
29
29
|
end
|
30
30
|
|
31
31
|
#Tier: 1
|
@@ -34,7 +34,7 @@ module Glassnode
|
|
34
34
|
# c: ["NATIVE"]
|
35
35
|
# i: ["1h", "24h", "10m", "1w", "1month"]
|
36
36
|
def fees_gas_limit_tx_mean(params={})
|
37
|
-
authenticated_get("metrics/fees/gas_limit_tx_mean", params: params)
|
37
|
+
authenticated_get("metrics/fees/gas_limit_tx_mean", params: params)
|
38
38
|
end
|
39
39
|
|
40
40
|
#Tier: 1
|
@@ -43,7 +43,7 @@ module Glassnode
|
|
43
43
|
# c: ["NATIVE"]
|
44
44
|
# i: ["1h", "24h", "10m", "1w", "1month"]
|
45
45
|
def fees_gas_limit_tx_median(params={})
|
46
|
-
authenticated_get("metrics/fees/gas_limit_tx_median", params: params)
|
46
|
+
authenticated_get("metrics/fees/gas_limit_tx_median", params: params)
|
47
47
|
end
|
48
48
|
|
49
49
|
#Tier: 1
|
@@ -52,7 +52,7 @@ module Glassnode
|
|
52
52
|
# c: ["NATIVE", "USD"]
|
53
53
|
# i: ["1h", "24h", "10m", "1w", "1month"]
|
54
54
|
def fees_gas_price_mean(params={})
|
55
|
-
authenticated_get("metrics/fees/gas_price_mean", params: params)
|
55
|
+
authenticated_get("metrics/fees/gas_price_mean", params: params)
|
56
56
|
end
|
57
57
|
|
58
58
|
#Tier: 1
|
@@ -61,7 +61,7 @@ module Glassnode
|
|
61
61
|
# c: ["NATIVE", "USD"]
|
62
62
|
# i: ["1h", "24h", "10m", "1w", "1month"]
|
63
63
|
def fees_gas_price_median(params={})
|
64
|
-
authenticated_get("metrics/fees/gas_price_median", params: params)
|
64
|
+
authenticated_get("metrics/fees/gas_price_median", params: params)
|
65
65
|
end
|
66
66
|
|
67
67
|
#Tier: 1
|
@@ -70,7 +70,7 @@ module Glassnode
|
|
70
70
|
# c: ["NATIVE", "USD"]
|
71
71
|
# i: ["1h", "24h", "10m", "1w", "1month"]
|
72
72
|
def fees_volume_sum(params={})
|
73
|
-
authenticated_get("metrics/fees/volume_sum", params: params)
|
73
|
+
authenticated_get("metrics/fees/volume_sum", params: params)
|
74
74
|
end
|
75
75
|
|
76
76
|
#Tier: 1
|
@@ -79,7 +79,7 @@ module Glassnode
|
|
79
79
|
# c: ["NATIVE", "USD"]
|
80
80
|
# i: ["1h", "24h", "10m", "1w", "1month"]
|
81
81
|
def fees_volume_mean(params={})
|
82
|
-
authenticated_get("metrics/fees/volume_mean", params: params)
|
82
|
+
authenticated_get("metrics/fees/volume_mean", params: params)
|
83
83
|
end
|
84
84
|
|
85
85
|
#Tier: 1
|
@@ -88,7 +88,7 @@ module Glassnode
|
|
88
88
|
# c: ["NATIVE", "USD"]
|
89
89
|
# i: ["1h", "24h", "10m", "1w", "1month"]
|
90
90
|
def fees_volume_median(params={})
|
91
|
-
authenticated_get("metrics/fees/volume_median", params: params)
|
91
|
+
authenticated_get("metrics/fees/volume_median", params: params)
|
92
92
|
end
|
93
93
|
|
94
94
|
#Tier: 2
|
@@ -97,7 +97,7 @@ module Glassnode
|
|
97
97
|
# c: ["NATIVE"]
|
98
98
|
# i: ["10m", "1h", "24h"]
|
99
99
|
def fees_fee_ratio_multiple(params={})
|
100
|
-
authenticated_get("metrics/fees/fee_ratio_multiple", params: params)
|
100
|
+
authenticated_get("metrics/fees/fee_ratio_multiple", params: params)
|
101
101
|
end
|
102
102
|
|
103
103
|
#Tier: 3
|
@@ -106,7 +106,7 @@ module Glassnode
|
|
106
106
|
# c: ["NATIVE"]
|
107
107
|
# i: ["1h", "24h"]
|
108
108
|
def fees_exchanges_relative(params={})
|
109
|
-
authenticated_get("metrics/fees/exchanges_relative", params: params)
|
109
|
+
authenticated_get("metrics/fees/exchanges_relative", params: params)
|
110
110
|
end
|
111
111
|
|
112
112
|
#Tier: 3
|
@@ -115,7 +115,7 @@ module Glassnode
|
|
115
115
|
# c: ["NATIVE", "USD"]
|
116
116
|
# i: ["1h", "24h"]
|
117
117
|
def fees_exchanges_sum(params={})
|
118
|
-
authenticated_get("metrics/fees/exchanges_sum", params: params)
|
118
|
+
authenticated_get("metrics/fees/exchanges_sum", params: params)
|
119
119
|
end
|
120
120
|
|
121
121
|
#Tier: 3
|
@@ -124,7 +124,7 @@ module Glassnode
|
|
124
124
|
# c: ["NATIVE", "USD"]
|
125
125
|
# i: ["1h", "24h"]
|
126
126
|
def fees_exchanges_mean(params={})
|
127
|
-
authenticated_get("metrics/fees/exchanges_mean", params: params)
|
127
|
+
authenticated_get("metrics/fees/exchanges_mean", params: params)
|
128
128
|
end
|
129
129
|
|
130
130
|
#Tier: 3
|
@@ -133,7 +133,7 @@ module Glassnode
|
|
133
133
|
# c: ["NATIVE"]
|
134
134
|
# i: ["24h"]
|
135
135
|
def fees_tx_types_breakdown_sum(params={})
|
136
|
-
authenticated_get("metrics/fees/tx_types_breakdown_sum", params: params)
|
136
|
+
authenticated_get("metrics/fees/tx_types_breakdown_sum", params: params)
|
137
137
|
end
|
138
138
|
|
139
139
|
#Tier: 3
|
@@ -142,7 +142,7 @@ module Glassnode
|
|
142
142
|
# c: ["NATIVE"]
|
143
143
|
# i: ["24h"]
|
144
144
|
def fees_tx_types_breakdown_relative(params={})
|
145
|
-
authenticated_get("metrics/fees/tx_types_breakdown_relative", params: params)
|
145
|
+
authenticated_get("metrics/fees/tx_types_breakdown_relative", params: params)
|
146
146
|
end
|
147
147
|
|
148
148
|
end
|