Bet Outcomes

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

    #1

    Bet Outcomes

    Hi

    So, the sample files are a treat and I've placed a bet. But now I don't know how to drill down and test the outcome of my investment (with a known BetID). After signing in, the only code I have is the below......

    Console.WriteLine("\nBeginning sample run!\n");

    var result = new ClearedOrderSummary();
    result.BetId = "60495272320";

    string myResult;
    myResult = ??

    Console.WriteLine(myResult);

    Question: What objects do you hop on (minimally) to confirm if the bet was a win or a loss?
  • Burdett
    Junior Member
    • Sep 2012
    • 29

    #2
    An answer

    I used the below code, applied within the sample code provided. With a little more basic string manipulation, you can get the betoutcome. Hope someone else gets benefit from the info below

    Console.WriteLine("\nBeginning sample run!\n");


    ISet<string> myBetIds = new HashSet<string>();
    myBetIds.Add("1:60756278955");

    ISet<PriceData> priceData = new HashSet<PriceData>();
    //get all prices from the exchange
    priceData.Add(PriceData.EX_BEST_OFFERS);

    var myReport = client.listClearedOrders(BetStatus.SETTLED, null, null, null, null, myBetIds, null, null, null, null, null, null, null);




    string output = myReport.ToString();

    Comment

    Working...
    X