glassnode 0.0.1 → 0.0.4

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.
@@ -6,8 +6,8 @@ module Glassnode
6
6
  # a: asset symbol
7
7
  # c: ["NATIVE"]
8
8
  # i: ["24h"]
9
- def sending_count(params={})
10
- authenticated_get("metrics/entities/sending_count", params: params).body
9
+ def entities_sending_count(params={})
10
+ authenticated_get("metrics/entities/sending_count", params: params)
11
11
  end
12
12
 
13
13
  #Tier: 3
@@ -15,8 +15,8 @@ module Glassnode
15
15
  # a: asset symbol
16
16
  # c: ["NATIVE"]
17
17
  # i: ["24h"]
18
- def receiving_count(params={})
19
- authenticated_get("metrics/entities/receiving_count", params: params).body
18
+ def entities_receiving_count(params={})
19
+ authenticated_get("metrics/entities/receiving_count", params: params)
20
20
  end
21
21
 
22
22
  #Tier: 3
@@ -24,8 +24,8 @@ module Glassnode
24
24
  # a: asset symbol
25
25
  # c: ["NATIVE"]
26
26
  # i: ["24h"]
27
- def active_count(params={})
28
- authenticated_get("metrics/entities/active_count", params: params).body
27
+ def entities_active_count(params={})
28
+ authenticated_get("metrics/entities/active_count", params: params)
29
29
  end
30
30
 
31
31
  #Tier: 3
@@ -33,8 +33,8 @@ module Glassnode
33
33
  # a: asset symbol
34
34
  # c: ["NATIVE"]
35
35
  # i: ["24h"]
36
- def new_count(params={})
37
- authenticated_get("metrics/entities/new_count", params: params).body
36
+ def entities_new_count(params={})
37
+ authenticated_get("metrics/entities/new_count", params: params)
38
38
  end
39
39
 
40
40
  #Tier: 3
@@ -42,8 +42,8 @@ module Glassnode
42
42
  # a: asset symbol
43
43
  # c: ["NATIVE"]
44
44
  # i: ["24h"]
45
- def net_growth_count(params={})
46
- authenticated_get("metrics/entities/net_growth_count", params: params).body
45
+ def entities_net_growth_count(params={})
46
+ authenticated_get("metrics/entities/net_growth_count", params: params)
47
47
  end
48
48
 
49
49
  #Tier: 3
@@ -51,8 +51,8 @@ module Glassnode
51
51
  # a: asset symbol
52
52
  # c: ["NATIVE"]
53
53
  # i: ["24h"]
54
- def min_1k_count(params={})
55
- authenticated_get("metrics/entities/min_1k_count", params: params).body
54
+ def entities_min_1k_count(params={})
55
+ authenticated_get("metrics/entities/min_1k_count", params: params)
56
56
  end
57
57
 
58
58
  #Tier: 3
@@ -60,8 +60,8 @@ module Glassnode
60
60
  # a: asset symbol
61
61
  # c: ["NATIVE"]
62
62
  # i: ["24h"]
63
- def supply_balance_less_0001(params={})
64
- authenticated_get("metrics/entities/supply_balance_less_0001", params: params).body
63
+ def entities_supply_balance_less_0001(params={})
64
+ authenticated_get("metrics/entities/supply_balance_less_0001", params: params)
65
65
  end
66
66
 
67
67
  #Tier: 3
@@ -69,8 +69,8 @@ module Glassnode
69
69
  # a: asset symbol
70
70
  # c: ["NATIVE"]
71
71
  # i: ["24h"]
72
- def supply_balance_0001_001(params={})
73
- authenticated_get("metrics/entities/supply_balance_0001_001", params: params).body
72
+ def entities_supply_balance_0001_001(params={})
73
+ authenticated_get("metrics/entities/supply_balance_0001_001", params: params)
74
74
  end
75
75
 
76
76
  #Tier: 3
@@ -78,8 +78,8 @@ module Glassnode
78
78
  # a: asset symbol
79
79
  # c: ["NATIVE"]
80
80
  # i: ["24h"]
81
- def supply_balance_001_01(params={})
82
- authenticated_get("metrics/entities/supply_balance_001_01", params: params).body
81
+ def entities_supply_balance_001_01(params={})
82
+ authenticated_get("metrics/entities/supply_balance_001_01", 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: ["24h"]
90
- def supply_balance_01_1(params={})
91
- authenticated_get("metrics/entities/supply_balance_01_1", params: params).body
90
+ def entities_supply_balance_01_1(params={})
91
+ authenticated_get("metrics/entities/supply_balance_01_1", 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: ["24h"]
99
- def supply_balance_1_10(params={})
100
- authenticated_get("metrics/entities/supply_balance_1_10", params: params).body
99
+ def entities_supply_balance_1_10(params={})
100
+ authenticated_get("metrics/entities/supply_balance_1_10", params: params)
101
101
  end
102
102
 
103
103
  #Tier: 3
@@ -105,8 +105,8 @@ module Glassnode
105
105
  # a: asset symbol
106
106
  # c: ["NATIVE"]
107
107
  # i: ["24h"]
108
- def supply_balance_10_100(params={})
109
- authenticated_get("metrics/entities/supply_balance_10_100", params: params).body
108
+ def entities_supply_balance_10_100(params={})
109
+ authenticated_get("metrics/entities/supply_balance_10_100", params: params)
110
110
  end
111
111
 
112
112
  #Tier: 3
@@ -114,8 +114,8 @@ module Glassnode
114
114
  # a: asset symbol
115
115
  # c: ["NATIVE"]
116
116
  # i: ["24h"]
117
- def supply_balance_100_1k(params={})
118
- authenticated_get("metrics/entities/supply_balance_100_1k", params: params).body
117
+ def entities_supply_balance_100_1k(params={})
118
+ authenticated_get("metrics/entities/supply_balance_100_1k", params: params)
119
119
  end
120
120
 
121
121
  #Tier: 3
@@ -123,8 +123,8 @@ module Glassnode
123
123
  # a: asset symbol
124
124
  # c: ["NATIVE"]
125
125
  # i: ["24h"]
126
- def supply_balance_1k_10k(params={})
127
- authenticated_get("metrics/entities/supply_balance_1k_10k", params: params).body
126
+ def entities_supply_balance_1k_10k(params={})
127
+ authenticated_get("metrics/entities/supply_balance_1k_10k", params: params)
128
128
  end
129
129
 
130
130
  #Tier: 3
@@ -132,8 +132,8 @@ module Glassnode
132
132
  # a: asset symbol
133
133
  # c: ["NATIVE"]
134
134
  # i: ["24h"]
135
- def supply_balance_10k_100k(params={})
136
- authenticated_get("metrics/entities/supply_balance_10k_100k", params: params).body
135
+ def entities_supply_balance_10k_100k(params={})
136
+ authenticated_get("metrics/entities/supply_balance_10k_100k", params: params)
137
137
  end
138
138
 
139
139
  #Tier: 3
@@ -141,8 +141,8 @@ module Glassnode
141
141
  # a: asset symbol
142
142
  # c: ["NATIVE"]
143
143
  # i: ["24h"]
144
- def supply_balance_more_100k(params={})
145
- authenticated_get("metrics/entities/supply_balance_more_100k", params: params).body
144
+ def entities_supply_balance_more_100k(params={})
145
+ authenticated_get("metrics/entities/supply_balance_more_100k", params: params)
146
146
  end
147
147
 
148
148
  #Tier: 3
@@ -150,8 +150,8 @@ module Glassnode
150
150
  # a: asset symbol
151
151
  # c: ["NATIVE"]
152
152
  # i: ["24h"]
153
- def supply_distribution_relative(params={})
154
- authenticated_get("metrics/entities/supply_distribution_relative", params: params).body
153
+ def entities_supply_distribution_relative(params={})
154
+ authenticated_get("metrics/entities/supply_distribution_relative", params: params)
155
155
  end
156
156
 
157
157
  #Tier: 3
@@ -159,8 +159,8 @@ module Glassnode
159
159
  # a: asset symbol
160
160
  # c: ["NATIVE"]
161
161
  # i: ["24h"]
162
- def profit_relative(params={})
163
- authenticated_get("metrics/entities/profit_relative", params: params).body
162
+ def entities_profit_relative(params={})
163
+ authenticated_get("metrics/entities/profit_relative", params: params)
164
164
  end
165
165
 
166
166
  end
data/lib/rest/v1/eth2.rb CHANGED
@@ -6,8 +6,8 @@ module Glassnode
6
6
  # a: asset symbol
7
7
  # c: ["NATIVE"]
8
8
  # i: ["1h", "24h"]
9
- def staking_deposits_count(params={})
10
- authenticated_get("metrics/eth2/staking_deposits_count", params: params).body
9
+ def eth2_staking_deposits_count(params={})
10
+ authenticated_get("metrics/eth2/staking_deposits_count", 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"]
18
- def staking_validators_count(params={})
19
- authenticated_get("metrics/eth2/staking_validators_count", params: params).body
18
+ def eth2_staking_validators_count(params={})
19
+ authenticated_get("metrics/eth2/staking_validators_count", 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 staking_total_deposits_count(params={})
28
- authenticated_get("metrics/eth2/staking_total_deposits_count", params: params).body
27
+ def eth2_staking_total_deposits_count(params={})
28
+ authenticated_get("metrics/eth2/staking_total_deposits_count", 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"]
36
- def staking_total_validators_count(params={})
37
- authenticated_get("metrics/eth2/staking_total_validators_count", params: params).body
36
+ def eth2_staking_total_validators_count(params={})
37
+ authenticated_get("metrics/eth2/staking_total_validators_count", params: params)
38
38
  end
39
39
 
40
40
  #Tier: 1
@@ -42,8 +42,8 @@ module Glassnode
42
42
  # a: asset symbol
43
43
  # c: ["NATIVE"]
44
44
  # i: ["1h", "24h"]
45
- def staking_phase_0_goal_percent(params={})
46
- authenticated_get("metrics/eth2/staking_phase_0_goal_percent", params: params).body
45
+ def eth2_staking_phase_0_goal_percent(params={})
46
+ authenticated_get("metrics/eth2/staking_phase_0_goal_percent", 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: ["1h", "24h"]
54
- def staking_volume_sum(params={})
55
- authenticated_get("metrics/eth2/staking_volume_sum", params: params).body
54
+ def eth2_staking_volume_sum(params={})
55
+ authenticated_get("metrics/eth2/staking_volume_sum", 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: ["1h", "24h"]
63
- def staking_total_volume_sum(params={})
64
- authenticated_get("metrics/eth2/staking_total_volume_sum", params: params).body
63
+ def eth2_staking_total_volume_sum(params={})
64
+ authenticated_get("metrics/eth2/staking_total_volume_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: ["NATIVE", "USD"]
71
71
  # i: ["24h"]
72
- def deposited_by_provider_volume_sum(params={})
73
- authenticated_get("metrics/eth2/deposited_by_provider_volume_sum", params: params).body
72
+ def eth2_deposited_by_provider_volume_sum(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
@@ -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 gas_used_sum(params={})
10
- authenticated_get("metrics/fees/gas_used_sum", params: params).body
9
+ def fees_gas_used_sum(params={})
10
+ authenticated_get("metrics/fees/gas_used_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: ["1h", "24h", "10m", "1w", "1month"]
18
- def gas_used_mean(params={})
19
- authenticated_get("metrics/fees/gas_used_mean", params: params).body
18
+ def fees_gas_used_mean(params={})
19
+ authenticated_get("metrics/fees/gas_used_mean", 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", "10m", "1w", "1month"]
27
- def gas_used_median(params={})
28
- authenticated_get("metrics/fees/gas_used_median", params: params).body
27
+ def fees_gas_used_median(params={})
28
+ authenticated_get("metrics/fees/gas_used_median", 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 gas_limit_tx_mean(params={})
37
- authenticated_get("metrics/fees/gas_limit_tx_mean", params: params).body
36
+ def fees_gas_limit_tx_mean(params={})
37
+ authenticated_get("metrics/fees/gas_limit_tx_mean", params: params)
38
38
  end
39
39
 
40
40
  #Tier: 1
@@ -42,8 +42,8 @@ module Glassnode
42
42
  # a: asset symbol
43
43
  # c: ["NATIVE"]
44
44
  # i: ["1h", "24h", "10m", "1w", "1month"]
45
- def gas_limit_tx_median(params={})
46
- authenticated_get("metrics/fees/gas_limit_tx_median", params: params).body
45
+ def fees_gas_limit_tx_median(params={})
46
+ authenticated_get("metrics/fees/gas_limit_tx_median", 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", "USD"]
53
53
  # i: ["1h", "24h", "10m", "1w", "1month"]
54
- def gas_price_mean(params={})
55
- authenticated_get("metrics/fees/gas_price_mean", params: params).body
54
+ def fees_gas_price_mean(params={})
55
+ authenticated_get("metrics/fees/gas_price_mean", params: params)
56
56
  end
57
57
 
58
58
  #Tier: 1
@@ -60,8 +60,8 @@ module Glassnode
60
60
  # a: asset symbol
61
61
  # c: ["NATIVE", "USD"]
62
62
  # i: ["1h", "24h", "10m", "1w", "1month"]
63
- def gas_price_median(params={})
64
- authenticated_get("metrics/fees/gas_price_median", params: params).body
63
+ def fees_gas_price_median(params={})
64
+ authenticated_get("metrics/fees/gas_price_median", params: params)
65
65
  end
66
66
 
67
67
  #Tier: 1
@@ -69,8 +69,8 @@ module Glassnode
69
69
  # a: asset symbol
70
70
  # c: ["NATIVE", "USD"]
71
71
  # i: ["1h", "24h", "10m", "1w", "1month"]
72
- def volume_sum(params={})
73
- authenticated_get("metrics/fees/volume_sum", params: params).body
72
+ def fees_volume_sum(params={})
73
+ authenticated_get("metrics/fees/volume_sum", params: params)
74
74
  end
75
75
 
76
76
  #Tier: 1
@@ -78,8 +78,8 @@ module Glassnode
78
78
  # a: asset symbol
79
79
  # c: ["NATIVE", "USD"]
80
80
  # i: ["1h", "24h", "10m", "1w", "1month"]
81
- def volume_mean(params={})
82
- authenticated_get("metrics/fees/volume_mean", params: params).body
81
+ def fees_volume_mean(params={})
82
+ authenticated_get("metrics/fees/volume_mean", params: params)
83
83
  end
84
84
 
85
85
  #Tier: 1
@@ -87,8 +87,8 @@ module Glassnode
87
87
  # a: asset symbol
88
88
  # c: ["NATIVE", "USD"]
89
89
  # i: ["1h", "24h", "10m", "1w", "1month"]
90
- def volume_median(params={})
91
- authenticated_get("metrics/fees/volume_median", params: params).body
90
+ def fees_volume_median(params={})
91
+ authenticated_get("metrics/fees/volume_median", 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: ["10m", "1h", "24h"]
99
- def fee_ratio_multiple(params={})
100
- authenticated_get("metrics/fees/fee_ratio_multiple", params: params).body
99
+ def fees_fee_ratio_multiple(params={})
100
+ authenticated_get("metrics/fees/fee_ratio_multiple", params: params)
101
101
  end
102
102
 
103
103
  #Tier: 3
@@ -105,8 +105,8 @@ module Glassnode
105
105
  # a: asset symbol
106
106
  # c: ["NATIVE"]
107
107
  # i: ["1h", "24h"]
108
- def exchanges_relative(params={})
109
- authenticated_get("metrics/fees/exchanges_relative", params: params).body
108
+ def fees_exchanges_relative(params={})
109
+ authenticated_get("metrics/fees/exchanges_relative", params: params)
110
110
  end
111
111
 
112
112
  #Tier: 3
@@ -114,8 +114,8 @@ module Glassnode
114
114
  # a: asset symbol
115
115
  # c: ["NATIVE", "USD"]
116
116
  # i: ["1h", "24h"]
117
- def exchanges_sum(params={})
118
- authenticated_get("metrics/fees/exchanges_sum", params: params).body
117
+ def fees_exchanges_sum(params={})
118
+ authenticated_get("metrics/fees/exchanges_sum", params: params)
119
119
  end
120
120
 
121
121
  #Tier: 3
@@ -123,8 +123,8 @@ module Glassnode
123
123
  # a: asset symbol
124
124
  # c: ["NATIVE", "USD"]
125
125
  # i: ["1h", "24h"]
126
- def exchanges_mean(params={})
127
- authenticated_get("metrics/fees/exchanges_mean", params: params).body
126
+ def fees_exchanges_mean(params={})
127
+ authenticated_get("metrics/fees/exchanges_mean", params: params)
128
128
  end
129
129
 
130
130
  #Tier: 3
@@ -132,8 +132,8 @@ module Glassnode
132
132
  # a: asset symbol
133
133
  # c: ["NATIVE"]
134
134
  # i: ["24h"]
135
- def tx_types_breakdown_sum(params={})
136
- authenticated_get("metrics/fees/tx_types_breakdown_sum", params: params).body
135
+ def fees_tx_types_breakdown_sum(params={})
136
+ authenticated_get("metrics/fees/tx_types_breakdown_sum", params: params)
137
137
  end
138
138
 
139
139
  #Tier: 3
@@ -141,8 +141,8 @@ module Glassnode
141
141
  # a: asset symbol
142
142
  # c: ["NATIVE"]
143
143
  # i: ["24h"]
144
- def tx_types_breakdown_relative(params={})
145
- authenticated_get("metrics/fees/tx_types_breakdown_relative", params: params).body
144
+ def fees_tx_types_breakdown_relative(params={})
145
+ authenticated_get("metrics/fees/tx_types_breakdown_relative", params: params)
146
146
  end
147
147
 
148
148
  end