Announcement

Collapse
No announcement yet.

listMarketBook question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 ...

  • #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


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

      Thanks for the answer ...

      Comment


      • #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


        • #5
          Sound advice, thank you.

          Comment

          Working...
          X