Example #1
0
        public async Task <Dividend[]> GetDividendsAsync(string symbol, Range range = null)
        {
            string requestUrl   = $"/stock/{symbol}/dividends/{range ?? Range.Default}";
            string responseJson = await CreateAndSendRequest(requestUrl);

            return(Dividend.FromJson(responseJson));
        }
Example #2
0
 public static string ToJson(this Dividend self) => JsonConvert.SerializeObject(self, Converters.Converter.Settings);
Example #3
0
 public static string ToJson(this Dividend self) => SerializeObject(self);