Total open interest and volume aggregated by ticker

Total open interest and volume aggregated by ticker Ruby API Documentation

Returns total open interest and volume by ticker

API Class:
Intrinio::OptionsApi
Instance Method:
get_option_aggregates()

Stock Price Code Example

Use my API Key
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
options_api = Intrinio::OptionsApi.new
opts = {
date: "2024-04-24",
page_size: 100,
next_page: nil
}
result = options_api.get_option_aggregates(opts)
pp result
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
dateObjectReturn aggregated data for this date[optional]  
page_sizeIntegerThe number of results to return[optional] [default to 100]  
next_pageStringGets the next page of data from a previous API call[optional]  

Return Type

object
Intrinio::ApiResponseOptionsAggregates

Properties

NameTypeDescription
aggregatesArrayA list of option expiration dates in descending order  
next_pageStringThe token required to request the next page of the data. If null, no further results are available.  
object
Intrinio::OptionsAggregate

Properties

NameTypeDescription
tickerStringThe ticker symbol of the Security for the Option.  
dateStringThe date of the data.  
total_open_interestIntegerTotal open interest for the ticker  
total_volumeIntegerTotal volume for the ticker  
total_put_volumeIntegerTotal put volume for the ticker  
total_call_volumeIntegerTotal call volume for the ticker  
put_call_volume_ratioFloatTotal put volume to total call volume ratio for the ticker  
contract_countIntegerTotal number of active contracts for the ticker