listMarketBook question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bellthorpe
    Junior Member
    • May 2021
    • 4

    #1

    listMarketBook question

    The listMarketBook API call returns, for each selectionID, some 'available to back' and 'available to lay' information, e.g.

    Code:
    "ex": {
    "availableToBack": [
    {
    "price": 2.54,
    "size": 35.62
    },
    {
    "price": 2.28,
    "size": 19.47
    },
    {
    "price": 2.06,
    "size": 93.0
    }
    My question is which of those three prices is the most recent ?

    Thanks in advance ...
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    I don't know what you mean by "most recent". Elsewhere there is a variable that says what the most recently matched price was (lastPriceTraded).
    Last edited by jabe; 23-05-2021, 07:34 PM.

    Comment

    • Bellthorpe
      Junior Member
      • May 2021
      • 4

      #3
      Ah, I'm guilty of overlooking lastPriceTraded. As you can seem I'm new to this API.

      Thanks for the answer ...

      Comment

      • jabe
        Senior Member
        • Dec 2014
        • 705

        #4
        Originally posted by Bellthorpe View Post
        Ah, I'm guilty of overlooking lastPriceTraded. As you can seem I'm new to this API.

        Thanks for the answer ...
        One thing I did as almost my first action was to create classes out of every chunk of data in the API. It helped me get a feel of how the data was set out, how various sets related to others, and whereabouts the data I expected to see actually was.

        Comment

        • Bellthorpe
          Junior Member
          • May 2021
          • 4

          #5
          Sound advice, thank you.

          Comment

          Working...
          X