Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
filter fix for limit order
  • Loading branch information
liampauling committed May 30, 2017
1 parent 7ff44c9 commit 2dbc29e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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.2'
__version__ = '1.2.3'
__author__ = 'Liam Pauling'

# Set default logging handler to avoid "No handler found" warnings.
Expand Down
2 changes: 1 addition & 1 deletion betfairlightweight/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def place_instruction(order_type, selection_id, side, handicap=None, limit_order
}


def limit_order(size, price, persistence_type, time_in_force=None, min_fill_size=None, bet_target_type=None,
def limit_order(price, persistence_type=None, size=None, time_in_force=None, min_fill_size=None, bet_target_type=None,
bet_target_size=None):
"""
Create a limit order to send to exchange.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_place_instruction(self):
assert response == {'orderType': 'LIMIT', 'selectionId': 123, 'side': 'LAY'}

def test_limit_order(self):
response = limit_order(1.1, 123, 'LAPSE')
response = limit_order(size=1.1, price=123, persistence_type='LAPSE')
assert response == {'size': 1.1, 'price': 123, 'persistenceType': 'LAPSE'}

def test_limit_on_close_order(self):
Expand Down

0 comments on commit 2dbc29e

Please sign in to comment.