Class: Decommas::PriceService
- Defined in:
- lib/decommas/price_service.rb
Constant Summary
Constants inherited from Base
Class Method Summary collapse
- .dexes(chain:, options: {}) ⇒ Object
- .get_price(chain:, dex:, tokens: [], options: {}) ⇒ Object
- .response_class ⇒ Object
Methods inherited from Base
Class Method Details
.dexes(chain:, options: {}) ⇒ Object
6 7 8 |
# File 'lib/decommas/price_service.rb', line 6 def dexes(chain:, options: {}) wget("/dexes/#{chain}", query: ) end |
.get_price(chain:, dex:, tokens: [], options: {}) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/decommas/price_service.rb', line 10 def get_price(chain:, dex:, tokens: [], options: {}) body = .merge( chain: chain, dex: dex, tokens: tokens ) wpost("/get_price", body: body) end |
.response_class ⇒ Object
19 20 21 |
# File 'lib/decommas/price_service.rb', line 19 def response_class Decommas::Response::PriceService end |