Total open interest and volume aggregated by ticker

Total open interest and volume aggregated by ticker Java API Documentation

Returns total open interest and volume by ticker

API Class:
OptionsApi
Instance Method:
getOptionAggregates()

Stock Price Code Example

Use my API Key
import com.intrinio.api.*;
import com.intrinio.models.*;
import com.intrinio.invoker.*;
import com.intrinio.invoker.auth.*;
import org.threeten.bp.*;
import java.math.BigDecimal;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
ApiClient defaultClient = Configuration.getDefaultApiClient();
ApiKeyAuth auth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
auth.setApiKey("YOUR_API_KEY");
defaultClient.setAllowRetries(true);
OptionsApi optionsApi = new OptionsApi();
Object date = "2024-04-24";
Integer pageSize = 100;
String nextPage = null;
ApiResponseOptionsAggregates result = optionsApi.getOptionAggregates(date, pageSize, nextPage);
System.out.println(result);
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

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


Return Type

object
ApiResponseOptionsAggregates

Properties

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

Properties

NameTypeDescription
tickerStringThe ticker symbol of the Security for the Option.  
dateStringThe date of the data.  
totalOpenInterestLongTotal open interest for the ticker  
totalVolumeLongTotal volume for the ticker  
totalPutVolumeLongTotal put volume for the ticker  
totalCallVolumeLongTotal call volume for the ticker  
putCallVolumeRatioDoubleTotal put volume to total call volume ratio for the ticker  
contractCountIntegerTotal number of active contracts for the ticker