Options Intervals By Contract

Options Intervals By Contract R API Documentation

Returns a list of interval data points for a contract.

API Class:
IntrinioSDK::OptionsApi
Instance Method:
get_options_interval_by_contract()

Stock Price Code Example

Use my API Key
client <- IntrinioSDK::ApiClient$new()
# Configure API key authorization: ApiKeyAuth
client$configuration$apiKey <- "YOUR_API_KEY"
#Configure retries
client$configuration$allowRetries <- TRUE
# Setup API with client
OptionsApi <- IntrinioSDK::OptionsApi$new(client)
# Required params
identifier <- "SPY___230103P00380000"
interval_size <- "5m"
# Optional params
opts <- list(
source = NULL,
page_size = 100,
end_time = as.POSIXlt(NULL, tz="UTC")
)
response <- OptionsApi$get_options_interval_by_contract(identifier, interval_size, opts)
print(response)
print(response$content)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierCharacterThe Intrinio ID or code of the options contract to request intervals for. 
interval_sizeCharacterThe time length of the interval. 
sourceCharacterRealtime or 15-minute delayed contracts.[optional]  
page_sizeIntegerThe number of results to return[optional] [default to 100]  
end_timePOSIXltThe inclusive UTC date and time the intervals end at.[optional]  


Return Type

object
IntrinioSDK::OptionIntervalsResult

Properties

NameTypeDescription
intervalsList of OptionIntervalArray of all the intervals in the result.  
intervals_data_frameData FrameData frame representation of intervals
contractCharacterThe option contract for the intervals  
sizeCharacterThe size of the time span for the interval.  
object
IntrinioSDK::OptionInterval

Properties

NameTypeDescription
open_timePOSIXltThe UTC timestamp for the time this interval opened.  
close_timePOSIXltThe UTC timestamp for the time this interval closed.  
openNumericThe first traded contract price in this interval.  
highNumericThe highest traded contract price in this interval.  
lowNumericThe lowest traded contract price in this interval.  
closeNumericThe last traded contract price in this interval.  
volumeNumericThe volume of contracts traded in this interval.  
averageNumericThe volume weighted average price of contract trades in this interval.  
changeNumericThe ratio of Close minus Open to Open.  
trade_countNumericThe number of qualified trades executed during the period