Option Trades By Contract

Option Trades By Contract R API Documentation

Returns all trades for a contract between start time and end time, up to seven days ago for the specified source.

API Class:
IntrinioSDK::OptionsApi
Instance Method:
get_option_trades_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 <- "AAPL__261218C00230000"
# Optional params
opts <- list(
source = NULL,
start_date = NULL,
start_time = NULL,
end_date = NULL,
end_time = NULL,
timezone = "UTC",
page_size = 100,
min_size = 100,
next_page = NULL
)
response <- OptionsApi$get_option_trades_by_contract(identifier, opts)
print(response)
print(response$content)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierCharacterThe option contract for which trades are being requested. 
sourceCharacterThe specific source of the data being requested.[optional]  
start_dateDateThe start date for the data being requested.[optional]  
start_timeCharacterThe start time for the data being requested.[optional]  
end_dateDateThe end date for the data being requested.[optional]  
end_timeCharacterThe end time for the data being requested.[optional]  
timezoneCharacterThe timezone the start and end date/times use.[optional] [default to UTC]  
page_sizeIntegerThe maximum number of results to return per page.[optional] [default to 100]  
min_sizeIntegerTrades must be larger or equal to this size.[optional]  
next_pageCharacterGets the next page of data from a previous API call[optional]  


Return Type

object
IntrinioSDK::OptionTradesResult

Properties

NameTypeDescription
next_pageCharacterThe token required to request the next page of the data. If null, no further results are available.  
sourceCharacterThe source of the trades.  
tradesList of OptionTradesArray of all the trades in this page of the result.  
trades_data_frameData FrameData frame representation of trades
object
IntrinioSDK::OptionTrades

Properties

NameTypeDescription
contractCharacterThe option contract  
underlying_symbolCharacterThe ticker symbol  
timestampPOSIXltThe UTC timestamp at the time of the trade.  
priceNumericThe price of the trade.  
sizeNumericThe size of the trade.  
total_volumeNumericThe total volume of the symbol for the day up to the timestamp point in time.  
ask_price_at_executionNumericThe price of ask quote at the time of the trade.  
bid_price_at_executionNumericThe price of bid quote at the time of the trade.  
exchangeCharacterThe exchange for the trade.  
conditionsCharacterThe condition of the trade.  
sequence_idNumericThe sequential ID for the trade, ordered as temporally received from the exchange.