Ejemplo n.º 1
0
        public static Event_States[] DownloadStates(params string[] eventIds)

        => Smarkets.JsonWebHelper.Download <States>(AddressBuilder.getStates(eventIds)).event_states;
Ejemplo n.º 2
0
 public static async Task <Event_States[]> DownloadStatesAsync(params string[] eventIds)
 => (await DownloadHelper.DownloadAsync <States>(AddressBuilder.getStates(eventIds))).event_states;
Ejemplo n.º 3
0
        public static Model.JSON.Event[] DownloadPopularEvents(string sport)
        {
            var x = Smarkets.JsonWebHelper.Download <PopularEventsRootobject>(AddressBuilder.getPopularEvents(sport)).popular_event_ids;

            return(Smarkets.JsonWebHelper.Download <Events>(AddressBuilder.getEvents(x)).events.ToArray());
        }
Ejemplo n.º 4
0
        public static Dictionary <string, Quote> DownloadQuotes(params string[] marketIds)
        {
            var x = Smarkets.JsonWebHelper.Download <Dictionary <string, Quote> >(AddressBuilder.getQuotes(marketIds));

            return(x);
        }
Ejemplo n.º 5
0
        public static Competitor[] DownloadCompetitors(params string[] eventIds)
        {
            var x = Smarkets.JsonWebHelper.Download <Competitors>(AddressBuilder.getCompetitors(eventIds)).competitors;

            return(x);
        }
Ejemplo n.º 6
0
        public static Market[] DownloadMarkets(params string[] eventIds)
        {
            var x = Smarkets.JsonWebHelper.Download <Model.XML.Event>(AddressBuilder.getMarkets(eventIds)).Markets;

            return(x);
        }
Ejemplo n.º 7
0
        public static Contract[] DownloadContracts(params string[] marketIds)
        {
            var x = Smarkets.JsonWebHelper.Download <Market>(AddressBuilder.getContracts(marketIds)).Contracts;

            return(x);
        }
Ejemplo n.º 8
0
 public static Last_Executed_Prices[] DownloadLastExecutedPrices(params string[] contractIds)
 {
     return(Smarkets.JsonWebHelper.Download <LastPricesRoot>(AddressBuilder.getLastExecutedPrices(contractIds)).last_executed_prices);
 }
Ejemplo n.º 9
0
 public static ClosePrices[] DownloadClosingPrices(DateTime begin, DateTime end, int results, params string[] contractids)
 {
     return(Smarkets.JsonWebHelper.Download <ClosePricesRoot>(AddressBuilder.getPricesByDateRange(begin, end, results = 20, contractids)).result);
 }