Skip to content

Commit

Permalink
Remove update_quote from venue
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsamson committed Feb 15, 2016
1 parent 76f3042 commit a5c4d88
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/venue.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ defmodule Stackfooter.Venue do

def heartbeat(pid), do: GenServer.call(pid, :heartbeat)

def update_quote(pid, stock_quote, symbol), do: GenServer.cast(pid, {:update_quote, stock_quote, symbol})

def reset(pid), do: GenServer.cast(pid, :reset_venue)

def start_link(venue_name, tickers) do
Expand Down Expand Up @@ -254,10 +252,6 @@ defmodule Stackfooter.Venue do
{:noreply, {0, new_last_executions, venue, tickers, [], [], %{}}}
end

def handle_cast({:update_quote, stock_quote, symbol}, {num_orders, last_executions, venue, tickers, closed_orders, open_orders, stock_quotes}) do
{:noreply, {num_orders, last_executions, venue, tickers, closed_orders, open_orders, Map.put(stock_quotes, symbol, stock_quote)}}
end

# defp consolidate_entries(entries) do
# Enum.reduce(entries, %{}, fn(entry, acc) ->
# total_entry = Map.get(acc, entry.price, %OrderbookEntry{qty: 0})
Expand Down

0 comments on commit a5c4d88

Please sign in to comment.