// Get list of last 100 updated Instrument where Instrument data or Instrument Reports is changed. static void InstrumentsUpdated() { ApiClient api = new ApiClient(_apiKey); InstrumentsUpdatedRespV1 resp = api.GetInstrumentsUpdated(); Console.WriteLine("Updated count: " + resp.Instruments.Count()); }
/// <summary> /// Return last 100 instruments with changed data or where reports is updated. /// </summary> /// <returns></returns> public InstrumentsUpdatedRespV1 GetInstrumentsUpdated() { string url = string.Format(_urlRoot + "/v1/instruments/updated"); HttpResponseMessage response = WebbCall(url, _authKey); if (response.IsSuccessStatusCode) { string json = response.Content.ReadAsStringAsync().Result; InstrumentsUpdatedRespV1 res = JsonConvert.DeserializeObject <InstrumentsUpdatedRespV1>(json); return(res); } else { Console.WriteLine("GetInstrumentsUpdated {0} ({1})", (int)response.StatusCode, response.ReasonPhrase); } return(null); }