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

        => Smarkets.JsonWebHelper.Download <States>(AddressBuilder.getStates(eventIds)).event_states;
Esempio n. 2
0
 public static async Task <Event_States[]> DownloadStatesAsync(params string[] eventIds)
 => (await DownloadHelper.DownloadAsync <States>(AddressBuilder.getStates(eventIds))).event_states;
Esempio 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());
        }
Esempio 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);
        }
Esempio n. 5
0
        public static Competitor[] DownloadCompetitors(params string[] eventIds)
        {
            var x = Smarkets.JsonWebHelper.Download <Competitors>(AddressBuilder.getCompetitors(eventIds)).competitors;

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

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

            return(x);
        }
Esempio n. 8
0
 public static Last_Executed_Prices[] DownloadLastExecutedPrices(params string[] contractIds)
 {
     return(Smarkets.JsonWebHelper.Download <LastPricesRoot>(AddressBuilder.getLastExecutedPrices(contractIds)).last_executed_prices);
 }
Esempio 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);
 }