No prices returned?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NielskeP
    Junior Member
    • Feb 2013
    • 8

    #1

    No prices returned?

    All,

    I am trying to start using the api-ng, but I don't get any prices, whatever I am trying
    my parameters
    Code:
    {"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketBook", "params": {"marketIds": [1.113765578, 1.113765584],"PriceProjection":{"priceData":"EX_BEST_OFFERS"}}, "id": 1}
    Code:
    {"jsonrpc": "2.0", "result": [{"status": "OPEN", "isMarketDataDelayed": false, "numberOfRunners": 3, "complete": true, "bspReconciled": false, "runnersVoidable": false, "betDelay": 9, "marketId": "1.113765578", "crossMatching": true, "totalMatched": 5791.18, "version": 743610371, "lastMatchTime": "2014-04-27T19:14:40.848Z", "numberOfWinners": 1, "inplay": true, "numberOfActiveRunners": 3, "totalAvailable": 8632.55, "runners": [{"handicap": 0.0, "status": "ACTIVE", "selectionId": 995485, "totalMatched": 3022.91, "lastPriceTraded": 2.42}, {"handicap": 0.0, "status": "ACTIVE", "selectionId": 1136683, "totalMatched": 707.43, "lastPriceTraded": 6.6}, {"handicap": 0.0, "status": "ACTIVE", "selectionId": 2004841, "totalMatched": 2060.83, "lastPriceTraded": 1.93}]}, {"status": "OPEN", "isMarketDataDelayed": false, "numberOfRunners": 3, "complete": true, "bspReconciled": false, "runnersVoidable": false, "betDelay": 9, "marketId": "1.113765584", "crossMatching": true, "totalMatched": 217578.45, "version": 743610478, "lastMatchTime": "2014-04-27T19:16:15.279Z", "numberOfWinners": 1, "inplay": true, "numberOfActiveRunners": 3, "totalAvailable": 148024.11, "runners": [{"handicap": 0.0, "status": "ACTIVE", "selectionId": 44790, "totalMatched": 173990.18, "lastPriceTraded": 1.76}, {"handicap": 0.0, "status": "ACTIVE", "selectionId": 10501, "totalMatched": 20419.81, "lastPriceTraded": 6.4}, {"handicap": 0.0, "status": "ACTIVE", "selectionId": 58805, "totalMatched": 23168.45, "lastPriceTraded": 3.5}]}], "id": 1}
    it must be something stupid to obtain the current exchange prices?
    Any help is appreciated.
  • betdynamics
    Junior Member
    • Sep 2010
    • 534

    #2
    Try setting the OrderProjection and MatchProjection parameters?

    Comment

    • NielskeP
      Junior Member
      • Feb 2013
      • 8

      #3
      Same, issue is also there when using the visualizer.

      Can get everything I want besides the exchange prices..

      <edit : just tried to set a back bet on in play football, that one is also not showing up when playing with orderprojection or matchprojection
      <edit : but it does show in the listcurrentorders, seems like summarized I have problem with the listMarketBook
      Last edited by NielskeP; 27-04-2014, 09:34 PM. Reason: Clarifying

      Comment

      • Guest

        #4
        Originally posted by NielskeP View Post
        All,

        I am trying to start using the api-ng, but I don't get any prices, whatever I am trying
        my parameters
        Code:
        {"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketBook", "params": {"marketIds": [1.113765578, 1.113765584],"PriceProjection":{"priceData":"EX_BEST_OFFERS"}}, "id": 1}
        Hmmm looking at the PriceProjection, could the syntax be slightly incorrect
        Code:
        Your param=>   "PriceProjection":{"priceData":"EX_BEST_OFFERS"}} 
        
        My param=>     "priceProjection":{"priceData":["EX_BEST_OFFERS"],"virtualise":true}}}

        Comment

        • NielskeP
          Junior Member
          • Feb 2013
          • 8

          #5
          It works, solved now..
          Code:
          jsonrpc_req = '{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketBook", "params": {"marketIds": [<<marketids here>>], "priceProjection":{"priceData":["EX_BEST_OFFERS"],"virtualise":true}}, "id": 1}'
          seems like absence of the square brackets after "priceData": and using capital PriceProjection caused the issue.
          Last edited by NielskeP; 28-04-2014, 01:29 PM. Reason: Added 'absence of'

          Comment

          • Guest

            #6
            Glad I can help...... I must be learning something

            Comment

            • papaz1
              Junior Member
              • May 2014
              • 5

              #7
              Did you get this working in the visualiser tool? I don't quite follow how you solved this because the correct json you have posted is what is sent in the viusualiser but I can't see any prices.

              Here is my thread about the same issue,
              http://forum.bdp.betfair.com/showthr...=9749#post9749

              EDIT: I found out you had to click on the runner in the visualiser tool to see the prices.
              Last edited by papaz1; 05-05-2014, 02:20 PM.

              Comment

              • Guest

                #8
                No not me. I am trying this from Australia. Below here are two current markets in AU and the UK. I know this because my BetBot brings them up.

                Although the Visualizer won't work for me its not a real issue as my BetBot is working





                and

                Comment

                • papaz1
                  Junior Member
                  • May 2014
                  • 5

                  #9
                  @troy

                  You don't get the markets at all in the listMarketBook? It looks blank

                  If you look for the in the listMarketBook in the visualiser do you see them there?

                  Comment

                  • Guest

                    #10
                    Originally posted by papaz1 View Post
                    @troy

                    You don't get the markets at all in the listMarketBook? It looks blank

                    If you look for the in the listMarketBook in the visualiser do you see them there?
                    Mate the betting visualizer does not work for me FULL STOP. It might by an Aussie thing. It doesn't bother me though as I can get all my MarketBook data using API NG with my Bot.

                    Comment

                    Working...
                    X