Skip to content

Commit

Permalink
Remove abstractmethod
Browse files Browse the repository at this point in the history
  • Loading branch information
femtotrader committed Jan 26, 2017
1 parent 57a0824 commit 394cfc8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions qstrader/orderbook/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class AbstractOrderBook(object):

__metaclass__ = ABCMeta

@abstractmethod
def price(self, volume=0):
if volume > 0:
return self.ask(volume)
Expand All @@ -18,7 +17,6 @@ def price(self, volume=0):
else: # volume==0
return self.midpoint(volume)

@abstractmethod
def midpoint(self, volume=0):
return (self.bid(volume) + self.ask(volume)) // 2

Expand Down

0 comments on commit 394cfc8

Please sign in to comment.