Initial commit
This commit is contained in:
16
app/api/v2/coin_market_cap/ticker.rb
Normal file
16
app/api/v2/coin_market_cap/ticker.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module API
|
||||
module V2
|
||||
module CoinMarketCap
|
||||
class Ticker < Grape::API
|
||||
desc 'Get 24-hour pricing and volume summary for each market pair'
|
||||
get '/ticker' do
|
||||
::Rails.cache.fetch(:markets_tickers_cmc, expires_in: 60) do
|
||||
format_tickers(::Market.enabled.ordered)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user