Prices 0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • norp1us
    Junior Member
    • May 2015
    • 2

    #1

    Prices 0

    Hi,

    After executing a MarketBook request, all the prices returned back are 0, in particular:

    runner.getEx().getAvailableToBack()
    runner.getEx().getAvailableToLay()

    return always 0.

    Do someone know why ? Am I doing something wrong with the Login/AppKey ?

    Thanks
    Luca
  • Grantay.
    Junior Member
    • Jan 2010
    • 53

    #2
    The availableToBack and availableToLay require an index reference to the back/lay price you want to access, from 0 - 2.

    Try this:

    runner.getEx().getAvailableToBack(0)
    runner.getEx().getAvailableToLay(0)

    For the current prices
    Last edited by Grantay.; 19-05-2015, 03:04 AM. Reason: typo

    Comment

    • norp1us
      Junior Member
      • May 2015
      • 2

      #3
      Originally posted by Grantay. View Post
      The availableToBack and availableToLay require an index reference to the back/lay price you want to access, from 0 - 2.

      Try this:

      runner.getEx().getAvailableToBack(0)
      runner.getEx().getAvailableToLay(0)

      For the current prices
      thanks for the answer but using java that method return a list of PriceSize objects, and even printing them all they are all 0.
      Is because I am using a non-white-listed- app key maybe?

      How do I make my appKey white-listed?

      thanks

      Comment

      Working...
      X