Class: Rubyists::Kalshi::Events::List

Inherits:
Rubyists::Kalshi::Endpoint show all
Includes:
Listable
Defined in:
lib/kalshi/events/list.rb

Overview

Events API endpoint

Defined Under Namespace

Classes: Filter

Instance Attribute Summary

Attributes inherited from Rubyists::Kalshi::Endpoint

#client

Instance Method Summary collapse

Methods included from Listable

included, #list

Methods inherited from Rubyists::Kalshi::Endpoint

#initialize, kalshi_path

Constructor Details

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

Instance Method Details

#fetch(event_ticker) ⇒ Object



27
28
29
# File 'lib/kalshi/events/list.rb', line 27

def fetch(event_ticker)
  client.get(event_ticker)
end

#metadata(event_ticker) ⇒ Object



31
32
33
# File 'lib/kalshi/events/list.rb', line 31

def (event_ticker)
  client.get("#{event_ticker}/metadata")
end