Class: Rubyists::Kalshi::Market::Markets

Inherits:
Endpoint
  • Object
show all
Includes:
Listable
Defined in:
lib/kalshi/market/markets.rb

Overview

Markets API endpoint

Defined Under Namespace

Classes: Filter

Instance Attribute Summary

Attributes inherited from Endpoint

#client

Instance Method Summary collapse

Methods included from Listable

included, #list

Methods inherited from Endpoint

#initialize, kalshi_path

Constructor Details

This class inherits a constructor from Rubyists::Kalshi::Endpoint

Instance Method Details

#fetch(ticker) ⇒ Object



30
31
32
# File 'lib/kalshi/market/markets.rb', line 30

def fetch(ticker)
  client.get("markets/#{ticker}")
end