apiverve_ethereum 1.2.2 → 1.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e9fcb547fd4bd12eb72d7967bdbdf2eaca05f911cf130a04bdadea2ab3565e4
4
- data.tar.gz: e1e85031bf896605f80db52f435edae9b05765b99a7c62f579f6221a03edab1d
3
+ metadata.gz: 42979cf97a8852de6ccb3b9689ace0dbe2cc2ff545d26a0ec9c44728b1576756
4
+ data.tar.gz: 34fc8e0e395ffd9adbeeb583b07a9c1e1b3d98e82a8edf51223c712577ea5ad5
5
5
  SHA512:
6
- metadata.gz: 6587c4bb8982768e58084e85f4f233b1c29d8480ccbe9116fc3fa554a996c9417a1176fa65f3cf7a433d6ac333eb971e36dd0dd697417ace7b509959cdcefe3c
7
- data.tar.gz: 990a1f471c5f532bfdfab5ff63cd051d90641c350b2754773c1eb7e92e026c9bdf360bdb86e63fc274003caa141f1a854f64821678557835853deb00acceadf2
6
+ metadata.gz: fb14624d634230de2e3ac979553139177f752379e2d371c7c6a6fe8ab2bc2ddd88cfee58d9eac2618a3e72e8e43153b29ee426ffbe51d39e4cc54024971f73f5
7
+ data.tar.gz: 3a31d28371d88785c0b0090de8c8c0628d099471609a7b02c9b1ceb1bcafb944746261047698d5a9f9450398ee44876c64bff44c2557e76b40ddc8f7dea0bb47
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ethereum Price API - Ruby Gem
2
2
 
3
- Ethereum Price is an Ethereum price feed API that tracks the spot price and movement direction of Ethereum in US dollars. Paid plans add conversion into 172 currencies, 24-hour trading volume, market capitalization, and hourly price snapshots.
3
+ Ethereum Price is an Ethereum price feed API that tracks the spot price and movement direction of Ethereum in US dollars. Paid plans add 172 currencies, market cap, 24-hour volume, supply, all-time highs, 1-hour to 1-year changes, 30-day stats, and hourly and 30-day daily history.
4
4
 
5
5
  ## Installation
6
6
 
@@ -38,9 +38,7 @@ client = APIVerve::Ethereum::Client.new(api_key: "YOUR_API_KEY")
38
38
  response = client.execute({
39
39
  currency: "USD",
40
40
  hourly: true,
41
- hourly[].hour: 0,
42
- hourly[].price: 0,
43
- hourly[].timestamp: ""
41
+ daily: true
44
42
  })
45
43
 
46
44
  # Print the response
@@ -52,7 +50,7 @@ puts response
52
50
 
53
51
  ```ruby
54
52
  begin
55
- response = client.execute({ currency: "USD", hourly: true, hourly[].hour: 0, hourly[].price: 0, hourly[].timestamp: "" })
53
+ response = client.execute({ currency: "USD", hourly: true, daily: true })
56
54
  puts response["data"]
57
55
  rescue APIVerve::Ethereum::ValidationError => e
58
56
  puts "Validation error: #{e.errors.join(', ')}"
@@ -79,20 +77,221 @@ client = APIVerve::Ethereum::Client.new(
79
77
  "status": "ok",
80
78
  "error": null,
81
79
  "data": {
80
+ "price": 2349.8,
81
+ "marketCap": 287076628921,
82
+ "volume24h": 9044419267,
83
+ "change24h": 1.11,
82
84
  "currency": "USD",
83
- "price": 2685.12,
84
- "marketCap": 323000000000,
85
- "volume24h": 14850000000,
86
- "change24h": 2.34,
87
- "lastUpdated": "2026-02-07T12:00:00.000Z",
88
- "high24h": 2742.5,
89
- "low24h": 2618.75,
85
+ "lastUpdated": "2026-10-27T17:41:09.843Z",
86
+ "high24h": 2349.8,
87
+ "low24h": 2295.57,
88
+ "changeAmount24h": 26.03,
89
+ "change1h": 0.01,
90
+ "change7d": -3.87,
91
+ "change30d": -12.82,
92
+ "change1y": -43.81,
93
+ "marketCapRank": 2,
94
+ "circulatingSupply": 122167205,
95
+ "totalSupply": 122167205,
96
+ "maxSupply": null,
97
+ "fullyDilutedValuation": 287076628921,
98
+ "allTimeHigh": 4946.05,
99
+ "allTimeHighDate": "2025-08-24T11:21:03.000Z",
100
+ "percentFromAllTimeHigh": -52.49,
101
+ "allTimeLow": 0.43,
102
+ "allTimeLowDate": "2015-10-19T16:00:00.000Z",
103
+ "high30d": 2725.91,
104
+ "low30d": 2320.67,
105
+ "average30d": 2509.84,
106
+ "volatility30d": 1.7701,
107
+ "daily": [
108
+ {
109
+ "date": "2026-09-28",
110
+ "price": 2687.92,
111
+ "marketCap": 328161568756.55,
112
+ "volume24h": 17048616414.53
113
+ },
114
+ {
115
+ "date": "2026-09-29",
116
+ "price": 2677.38,
117
+ "marketCap": 326882384721.91,
118
+ "volume24h": 15609520153.84
119
+ },
120
+ {
121
+ "date": "2026-09-30",
122
+ "price": 2684.71,
123
+ "marketCap": 327783962324.34,
124
+ "volume24h": 13831956665.77
125
+ },
126
+ {
127
+ "date": "2026-10-01",
128
+ "price": 2705.3,
129
+ "marketCap": 330305392614.81,
130
+ "volume24h": 13688689734
131
+ },
132
+ {
133
+ "date": "2026-10-02",
134
+ "price": 2667.95,
135
+ "marketCap": 325753252610.38,
136
+ "volume24h": 18947257093.52
137
+ },
138
+ {
139
+ "date": "2026-10-03",
140
+ "price": 2686.89,
141
+ "marketCap": 328073789645.7,
142
+ "volume24h": 5155711549.09
143
+ },
144
+ {
145
+ "date": "2026-10-04",
146
+ "price": 2725.91,
147
+ "marketCap": 332846167523.65,
148
+ "volume24h": 6168266219.04
149
+ },
150
+ {
151
+ "date": "2026-10-05",
152
+ "price": 2710.42,
153
+ "marketCap": 330962511259.41,
154
+ "volume24h": 12360388631.33
155
+ },
156
+ {
157
+ "date": "2026-10-06",
158
+ "price": 2697.17,
159
+ "marketCap": 329352893752.81,
160
+ "volume24h": 11013438109.18
161
+ },
162
+ {
163
+ "date": "2026-10-07",
164
+ "price": 2573.23,
165
+ "marketCap": 314225721923.29,
166
+ "volume24h": 19380856621.94
167
+ },
168
+ {
169
+ "date": "2026-10-08",
170
+ "price": 2472.73,
171
+ "marketCap": 301959830755.32,
172
+ "volume24h": 19211446963.28
173
+ },
174
+ {
175
+ "date": "2026-10-09",
176
+ "price": 2485.7,
177
+ "marketCap": 303551579906.16,
178
+ "volume24h": 9237247812.48
179
+ },
180
+ {
181
+ "date": "2026-10-10",
182
+ "price": 2504.31,
183
+ "marketCap": 305831441169.97,
184
+ "volume24h": 5821686502.41
185
+ },
186
+ {
187
+ "date": "2026-10-11",
188
+ "price": 2534.63,
189
+ "marketCap": 309541484283.78,
190
+ "volume24h": 8566468363.63
191
+ },
192
+ {
193
+ "date": "2026-10-12",
194
+ "price": 2445.89,
195
+ "marketCap": 298710869490.48,
196
+ "volume24h": 13499532438.03
197
+ },
198
+ {
199
+ "date": "2026-10-13",
200
+ "price": 2496.59,
201
+ "marketCap": 304910319328.61,
202
+ "volume24h": 12664145444.95
203
+ },
204
+ {
205
+ "date": "2026-10-14",
206
+ "price": 2419.69,
207
+ "marketCap": 295525520649.86,
208
+ "volume24h": 14011311984.69
209
+ },
210
+ {
211
+ "date": "2026-10-15",
212
+ "price": 2439.96,
213
+ "marketCap": 298008599988.16,
214
+ "volume24h": 19072612435.26
215
+ },
216
+ {
217
+ "date": "2026-10-16",
218
+ "price": 2420.56,
219
+ "marketCap": 295645987052.46,
220
+ "volume24h": 12413691615.08
221
+ },
222
+ {
223
+ "date": "2026-10-17",
224
+ "price": 2400.31,
225
+ "marketCap": 293179515941.9,
226
+ "volume24h": 6392442801.19
227
+ },
228
+ {
229
+ "date": "2026-10-18",
230
+ "price": 2407.84,
231
+ "marketCap": 294106909234.62,
232
+ "volume24h": 8562877335.43
233
+ },
234
+ {
235
+ "date": "2026-10-19",
236
+ "price": 2405.92,
237
+ "marketCap": 293879026865.33,
238
+ "volume24h": 9189766395.66
239
+ },
240
+ {
241
+ "date": "2026-10-20",
242
+ "price": 2446.49,
243
+ "marketCap": 298841751224.83,
244
+ "volume24h": 11659953648.21
245
+ },
246
+ {
247
+ "date": "2026-10-21",
248
+ "price": 2472.68,
249
+ "marketCap": 302036532023.77,
250
+ "volume24h": 13777880330.78
251
+ },
252
+ {
253
+ "date": "2026-10-22",
254
+ "price": 2386.48,
255
+ "marketCap": 291514722930.02,
256
+ "volume24h": 12782685343.56
257
+ },
258
+ {
259
+ "date": "2026-10-23",
260
+ "price": 2384.75,
261
+ "marketCap": 291309985945.85,
262
+ "volume24h": 9909686957.94
263
+ },
264
+ {
265
+ "date": "2026-10-24",
266
+ "price": 2356.57,
267
+ "marketCap": 287874457234.69,
268
+ "volume24h": 9030947692.42
269
+ },
270
+ {
271
+ "date": "2026-10-25",
272
+ "price": 2326.83,
273
+ "marketCap": 284248605755.09,
274
+ "volume24h": 6329620691.52
275
+ },
276
+ {
277
+ "date": "2026-10-26",
278
+ "price": 2320.67,
279
+ "marketCap": 283503198237.63,
280
+ "volume24h": 10108268440.44
281
+ },
282
+ {
283
+ "date": "2026-10-27",
284
+ "price": 2349.8,
285
+ "marketCap": 287076628921,
286
+ "volume24h": 9044419267
287
+ }
288
+ ],
90
289
  "changeDirection": "up",
91
290
  "formatted": {
92
- "price": "$2,685.12",
93
- "marketCap": "$323.00B",
94
- "volume": "$14.85B",
95
- "priceWords": "two thousand six hundred eighty-five dollars"
291
+ "price": "$2,349.80",
292
+ "marketCap": "$287.08B",
293
+ "volume": "$9.04B",
294
+ "priceWords": "two thousand, three hundred fifty dollars"
96
295
  }
97
296
  }
98
297
  }
@@ -10,7 +10,7 @@ module APIVerve
10
10
  #
11
11
  # @example Basic usage
12
12
  # client = APIVerve::Ethereum::Client.new(api_key: "your_api_key")
13
- # response = client.execute({ currency: "USD", hourly: true, hourly[].hour: 0, hourly[].price: 0, hourly[].timestamp: "" })
13
+ # response = client.execute({ currency: "USD", hourly: true, daily: true })
14
14
  # puts response
15
15
  #
16
16
  # @see https://apiverve.com/marketplace/ethereum?utm_source=ruby&utm_medium=referral&utm_content=readme
@@ -19,7 +19,7 @@ module APIVerve
19
19
  DEFAULT_TIMEOUT = 30
20
20
 
21
21
  # Validation rules for parameters
22
- VALIDATION_RULES = { 'currency' => { type: 'string', required: false }, 'hourly' => { type: 'boolean', required: false }, 'hourly[].hour' => { type: 'number', required: false }, 'hourly[].price' => { type: 'number', required: false }, 'hourly[].timestamp' => { type: 'string', required: false } }
22
+ VALIDATION_RULES = { 'currency' => { type: 'string', required: false }, 'hourly' => { type: 'boolean', required: false }, 'daily' => { type: 'boolean', required: false } }
23
23
 
24
24
  # Format validation patterns
25
25
  FORMAT_PATTERNS = {
@@ -4,6 +4,6 @@ require_relative "apiverve_ethereum/client"
4
4
 
5
5
  module APIVerve
6
6
  module Ethereum
7
- VERSION = "1.2.2"
7
+ VERSION = "1.2.4"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apiverve_ethereum
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - APIVerve
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-10-21 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: faraday
@@ -59,9 +58,9 @@ dependencies:
59
58
  - !ruby/object:Gem::Version
60
59
  version: '2.0'
61
60
  description: Ethereum Price is an Ethereum price feed API that tracks the spot price
62
- and movement direction of Ethereum in US dollars. Paid plans add conversion into
63
- 172 currencies, 24-hour trading volume, market capitalization, and hourly price
64
- snapshots.
61
+ and movement direction of Ethereum in US dollars. Paid plans add 172 currencies,
62
+ market cap, 24-hour volume, supply, all-time highs, 1-hour to 1-year changes, 30-day
63
+ stats, and hourly and 30-day daily history.
65
64
  email:
66
65
  - hello@apiverve.com
67
66
  executables: []
@@ -80,7 +79,6 @@ metadata:
80
79
  source_code_uri: https://github.com/apiverve/ethereum-API/tree/main/ruby
81
80
  changelog_uri: https://apiverve.com/changelog
82
81
  documentation_uri: https://docs.apiverve.com/ref/ethereum
83
- post_install_message:
84
82
  rdoc_options: []
85
83
  require_paths:
86
84
  - lib
@@ -95,8 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
93
  - !ruby/object:Gem::Version
96
94
  version: '0'
97
95
  requirements: []
98
- rubygems_version: 3.0.3.1
99
- signing_key:
96
+ rubygems_version: 4.0.23
100
97
  specification_version: 4
101
98
  summary: Ethereum Price API - Ruby Client
102
99
  test_files: []