Option Trades By Contract

Option Trades By Contract Javascript 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:
OptionsApi
Instance Method:
getOptionTradesByContract()

Stock Price Code Example

Use my API Key
var intrinioSDK = require('intrinio-sdk');
intrinioSDK.ApiClient.instance.authentications['ApiKeyAuth'].apiKey = "YOUR_API_KEY";
intrinioSDK.ApiClient.instance.enableRetries = true;
var options = new intrinioSDK.OptionsApi();
var identifier = "AAPL__261218C00230000";
var opts = {
'source': null,
'startDate': null,
'startTime': null,
'endDate': null,
'endTime': null,
'timezone': "UTC",
'pageSize': 100,
'minSize': 100,
'nextPage': null
};
options.getOptionTradesByContract(identifier, opts).then(function(data) {
data = JSON.stringify(data, null, 2)
console.log(data);
}, function(error) {
console.error(error);
});
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierStringThe option contract for which trades are being requested. 
sourceStringThe specific source of the data being requested.[optional]  
startDateDateThe start date for the data being requested.[optional]  
startTimeStringThe start time for the data being requested.[optional]  
endDateDateThe end date for the data being requested.[optional]  
endTimeStringThe end time for the data being requested.[optional]  
timezoneStringThe timezone the start and end date/times use.[optional] [default to UTC]  
pageSizeNumberThe maximum number of results to return per page.[optional] [default to 100]  
minSizeNumberTrades must be larger or equal to this size.[optional]  
nextPageStringGets the next page of data from a previous API call[optional]  


Return Type

object
OptionTradesResult

Properties

NameTypeDescription
nextPageStringThe token required to request the next page of the data. If null, no further results are available.  
sourceStringThe source of the trades.  
trades[OptionTrades]Array of all the trades in this page of the result.  
object
OptionTrades

Properties

NameTypeDescription
contractStringThe option contract  
underlyingSymbolStringThe ticker symbol  
timestampDateThe UTC timestamp at the time of the trade.  
priceNumberThe price of the trade.  
sizeNumberThe size of the trade.  
totalVolumeNumberThe total volume of the symbol for the day up to the timestamp point in time.  
askPriceAtExecutionNumberThe price of ask quote at the time of the trade.  
bidPriceAtExecutionNumberThe price of bid quote at the time of the trade.  
exchangeStringThe exchange for the trade.  
conditionsStringThe condition of the trade.  
sequenceIdNumberThe sequential ID for the trade, ordered as temporally received from the exchange.