Esempio n. 1
0
 private MarketListener(BetfairClient client, 
     PriceProjection priceProjection, 
     int connectionCount)
 {
     this.client = client;
     this.priceProjection = priceProjection;
     this.connectionCount = connectionCount;
     Task.Run(() => PollMarketBooks());
 }
Esempio n. 2
0
        public static MarketListener Create(BetfairClient client, 
            PriceProjection priceProjection, 
            int connectionCount)
        {
            if (listener == null)
                listener = new MarketListener(client, priceProjection, connectionCount);

            return listener;
        }
Esempio n. 3
0
 public BetfairServerResponse<List<MarketBook>> ListMarketBook(
     IEnumerable<string> marketIds,
     PriceProjection priceProjection = null,
     OrderProjection? orderProjection = null,
     MatchProjection? matchProjection = null)
 {
     return client.ListMarketBook(
         marketIds,
         priceProjection,
         orderProjection,
         matchProjection).Result;
 }