get_market_price_compresset issue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • AhrbokTrexon
    Junior Member
    • Mar 2009
    • 1

    #1

    get_market_price_compresset issue

    Hi guys,
    I've a strange behaviour using the php betfair framework for accessing apis.
    I use
    Code:
    $getMarketPricesCompressedResp = $betfairlibrary->betfair_exchange_api->betfair_get_market_prices_compressed($sessionToken, $market['marketId']);
    if (
    	$getMarketPricesCompressedResp->Result->errorCode == "OK"
    	&& $getMarketPricesCompressedResp->Result->header->errorCode == "OK"
    ) {
    	$arr = $betfairlibrary->betfair_utilities->gen_market_prices_array($getMarketPricesCompressedResp->Result->marketPrices);
    	$prices = $arr[0];
    }
    to get current prices on a particular market.
    in the 99.99% of cases the reply to my call is correct and it reflects prices I see using my web browser... in the 0.01% of cases it seems that I get the right prices but the wrong runners, so my software that is searching for a runner with a very low price (1.01 for example) places the bet on the wrong runner but with a price of 1.01. Obviously the wrong runner has prices greater than 1.01, and my back bets are placed at very high prices that I will never win

    Consider that I mainly play on football events.

    Anyone with the same behaviour?

    Currently I'm logging calls and replies to apiu services, so I can offer an example in the next hours

    Thank you
Working...
X