public static String GetItemPrice(MarketItem mi)
        {
            RestClient client  = new RestClient("https://api.warframe.market/v1");
            var        request = new RestRequest("items/" + mi.Url_name + "/statistics", Method.GET);

            var response = client.Execute(request);

            return(JObject.Parse(response.Content)["payload"]["statistics"]["90days"][0]["avg_price"].ToString());
        }
        public static List <MarketItem> GetMarketItems()
        {
            RestClient client  = new RestClient("https://api.warframe.market/v1");
            var        request = new RestRequest("items", Method.GET);

            IRestResponse response = client.Execute(request);

            JObject parsedResponse = JObject.Parse(response.Content);

            // get JSON result objects into a list
            IList <JToken> results = parsedResponse["payload"]["items"]["en"].Children().ToList();

            List <MarketItem> _searchResults = new List <MarketItem>();

            foreach (JToken result in results)
            {
                // JToken.ToObject is a helper method that uses JsonSerializer internally
                MarketItem searchResult = result.ToObject <MarketItem>();
                _searchResults.Add(searchResult);
            }

            return(_searchResults);
        }