Examples

                
// Using of Client Credentials authorization flow.
// Required packages: Newtonsoft.Json
// Requesting for access token
var httpClient = new HttpClient { BaseAddress = new Uri("https://sandbox.livevol.com/id/connect/token") };
httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(
    "Basic",
    Convert.ToBase64String(Encoding.UTF8.GetBytes("example_client:client_secret"))
);
HttpResponseMessage response = httpClient.PostAsync(string.Empty,
    (HttpContent) new FormUrlEncodedContent(
        new Dictionary<string, string>()
        {
            {"grant_type", "client_credentials"},
            {"scope", "api.market api.taq api.scans.options api.scans.underlying api.scans.custom api.theocalc api.obverror"}
        }),
        CancellationToken.None).Result;
if (response.StatusCode != HttpStatusCode.OK)
    return;
var content = JObject.Parse(response.Content.ReadAsStringAsync().Result);
string accessToken = content.GetValue("access_token").ToString();

// Using access token for making api calls
httpClient = new HttpClient { BaseAddress = new Uri("https://sandbox.livevol.com/api/v1/delayed/") };
httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", accessToken);
var data = httpClient.GetStringAsync("market/symbols").Result;