Skip to content

Commit

Permalink
strategy matches added to streaming order
Browse files Browse the repository at this point in the history
version bump
closes #92
  • Loading branch information
liampauling committed Jun 3, 2017
1 parent dd0f65a commit 548bc6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion betfairlightweight/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from . import filters

__title__ = 'betfairlightweight'
__version__ = '1.2.3'
__version__ = '1.2.4'
__author__ = 'Liam Pauling'

# Set default logging handler to avoid "No handler found" warnings.
Expand Down
3 changes: 2 additions & 1 deletion betfairlightweight/resources/streamingresources.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,13 +442,14 @@ def serialise(self, market_id, selection_id):

class OrderBookRunner(object):

def __init__(self, id, fullImage=None, ml=None, mb=None, uo=None, hc=None):
def __init__(self, id, fullImage=None, ml=None, mb=None, uo=None, hc=None, smc=None):
self.selection_id = id
self.full_image = fullImage
self.matched_lays = ml
self.matched_backs = mb
self.unmatched_orders = [UnmatchedOrder(**i) for i in uo] if uo else []
self.handicap = hc
self.strategy_matches = smc

def update_matched_backs(self, matched_backs):
if not self.matched_backs:
Expand Down

0 comments on commit 548bc6e

Please sign in to comment.