Is there a limit to the bets I can place with placeOrder using PHP?s

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Baby Jesus
    Junior Member
    • Apr 2009
    • 7

    #1

    Is there a limit to the bets I can place with placeOrder using PHP?s

    Come across some annoying quirk where the API isn't letting me send more than 6 bets in a single request for some unknown reason. I'm using PHP and tweaked the sample code off the site. Can anyone think of a reason why the requests with over 6 bets are being rejected, unfortunately the API is only giving a response of null from the sample php code.

    I'm just using the code below to submit the bets.

    $jsonResponse = sportsApingRequest($appKey,$sessionToken, 'placeOrders/', $params);

    $params of
    {"marketId":"1.121637352","instructions":[{"selectionId":10343384,"handicap":"0","side":"LAY ","orderType":"LIMIT","limitOrder":{"size":"50","p rice":"2","persistenceType":"MARKET_ON_CLOSE"}},{" selectionId":10485442,"handicap":"0","side":"LAY", "orderType":"LIMIT","limitOrder":{"size":"50","pri ce":"2","persistenceType":"MARKET_ON_CLOSE"}},{"se lectionId":6163562,"handicap":"0","side":"LAY","or derType":"LIMIT","limitOrder":{"size":"50","price" :"2","persistenceType":"MARKET_ON_CLOSE"}},{"selec tionId":10485441,"handicap":"0","side":"LAY","orde rType":"LIMIT","limitOrder":{"size":"50","price":" 2","persistenceType":"MARKET_ON_CLOSE"}},{"selecti onId":10351841,"handicap":"0","side":"LAY","orderT ype":"LIMIT","limitOrder":{"size":"50","price":"2" ,"persistenceType":"MARKET_ON_CLOSE"}},{"selection Id":10277121,"handicap":"0","side":"LAY","orderTyp e":"LIMIT","limitOrder":{"size":"50","price":"2"," persistenceType":"MARKET_ON_CLOSE"}}]}
    Will happily go thru , whereas the following just gives a response as Call to api-ng failed: Response: null

    {"marketId":"1.121637352","instructions":[{"selectionId":10343384,"handicap":"0","side":"LAY ","orderType":"LIMIT","limitOrder":{"size":"50","p rice":"2","persistenceType":"MARKET_ON_CLOSE"}},{" selectionId":10485442,"handicap":"0","side":"LAY", "orderType":"LIMIT","limitOrder":{"size":"50","pri ce":"2","persistenceType":"MARKET_ON_CLOSE"}},{"se lectionId":6163562,"handicap":"0","side":"LAY","or derType":"LIMIT","limitOrder":{"size":"50","price" :"2","persistenceType":"MARKET_ON_CLOSE"}},{"selec tionId":10485441,"handicap":"0","side":"LAY","orde rType":"LIMIT","limitOrder":{"size":"50","price":" 2","persistenceType":"MARKET_ON_CLOSE"}},{"selecti onId":10351841,"handicap":"0","side":"LAY","orderT ype":"LIMIT","limitOrder":{"size":"50","price":"2" ,"persistenceType":"MARKET_ON_CLOSE"}},{"selection Id":10277121,"handicap":"0","side":"LAY","orderTyp e":"LIMIT","limitOrder":{"size":"50","price":"2"," persistenceType":"MARKET_ON_CLOSE"}},{"selectionId ":10485440,"handicap":"0","side":"LAY","orderType" :"LIMIT","limitOrder":{"size":"50","price":"2","pe rsistenceType":"MARKET_ON_CLOSE"}}]}
    Got me stumped so any help or workarounds in php would be appreciated, thanks.
Working...
X