module BitflyerApi::Methods::Public

Public Instance Methods

board(product_code:) click to toggle source
# File lib/bitflyer_api/methods/public.rb, line 9
def board(product_code:)
  query = prepare_query(product_code: product_code)
  res = conn.get("/v1/board", query)
  res.body
end
board_state(product_code:) click to toggle source
# File lib/bitflyer_api/methods/public.rb, line 33
def board_state(product_code:)
  query = prepare_query(product_code: product_code)
  res = conn.get("/v1/getboardstate", query)
  res.body
end
chat(from_date: nil) click to toggle source
# File lib/bitflyer_api/methods/public.rb, line 44
def chat(from_date: nil)
  query = prepare_query(from_date: from_date)

  res = conn.get("/v1/getchats", query)
  res.body
end
executions(product_code:, count: 100, before: nil, after: nil) click to toggle source
# File lib/bitflyer_api/methods/public.rb, line 21
def executions(product_code:, count: 100, before: nil, after: nil)
  query = prepare_query(
    product_code: product_code,
    count: count,
    before: before,
    after: after,
  )

  res = conn.get("/v1/executions", query)
  res.body
end
health() click to toggle source
# File lib/bitflyer_api/methods/public.rb, line 39
def health
  res = conn.get("/v1/gethealth")
  res.body
end
market() click to toggle source
# File lib/bitflyer_api/methods/public.rb, line 4
def market
  res = conn.get("/v1/markets")
  res.body
end
ticker(product_code:) click to toggle source
# File lib/bitflyer_api/methods/public.rb, line 15
def ticker(product_code:)
  query = prepare_query(product_code: product_code)
  res = conn.get("/v1/ticker", query)
  res.body
end