Class: Exrt::Rate
- Inherits:
-
Object
- Object
- Exrt::Rate
- Defined in:
- lib/exrt.rb
Class Method Summary collapse
- .history(base: "USD", symbols: [], start_at:, end_at:) ⇒ Object
- .latest(base: "USD", symbols: []) ⇒ Object
Class Method Details
.history(base: "USD", symbols: [], start_at:, end_at:) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/exrt.rb', line 12 def self.history(base: "USD", symbols: [], start_at:, end_at:) response = Exrt::Http.get("/history", { base: base, symbols: symbols_str(symbols), start_at: start_at, end_at: end_at, }) to_json(response.body) end |