jmcarp / betfair.py

A Python wrapper for the Betfair API
MIT License
103 stars 76 forks source link

Calls to place order not working #56

Open scotontheedge opened 9 years ago

scotontheedge commented 9 years ago

Hi,

Calls to place_orders are returning INVALID_INPUT_DATA. Here is the code I am using below. The market and selection ids are correct.

instructions = []
limit = LimitOrder(size=2, price=5, persistence_type=PersistenceType.LAPSE)

instruction = PlaceInstruction(order_type=OrderType.LIMIT, selection_id=120027, handicap=0, side=Side.BACK, limit_order=limit)
instructions.append(instruction)

order = client.place_orders("1.11962314", instructions)