Trying to retrieve multiple BetIDs from InstructionReport

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Burdett
    Junior Member
    • Sep 2012
    • 29

    #1

    Trying to retrieve multiple BetIDs from InstructionReport

    Afternoon
    (C# environment)
    Previously I processed
    PlaceExecutionReport myExecutionReport = client.placeOrders(MarketID, CustomerRef, placeInstructions)

    Then I think I got BetID from:
    myExecutionReport.InstructionReports[0].BetID

    However, I'm now placing more than 1 bet in the place instructions. Can you help me understand what [index] do I get the, say 3 BetdIDs from?
    Is it one report, 3 betids contained within the one report, or is there possibly 3 reports, for the 3 separate bets placed? I'm a little confused, and rather than get more confused, thought I'd ask your help.

    Thanks
    David.

  • Burdett
    Junior Member
    • Sep 2012
    • 29

    #2
    In answer to my question. There is an indexed report for each bet placed.
    s
    tring BetID0 = myExecutionReport.InstructionReports[0].BetID
    string BetID1 =
    myExecutionReport.InstructionReports[1].BetID
    string BetID3 = myExecutionReport.InstructionReports[2].BetID

    It was a syntax error on my loop thru the myExecutionReport that was in fact causing me my confusion.

    Comment

    Working...
    X