Security Trades

Security Trades Javascript API Documentation

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

API Class:
SecurityApi
Instance Method:
getSecurityTrades()

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 security = new intrinioSDK.SecurityApi();
var source = null;
var opts = {
'startDate': null,
'startTime': null,
'endDate': null,
'endTime': null,
'timezone': "UTC",
'pageSize': 100,
'darkpoolOnly': false,
'minSize': 100,
'nextPage': null
};
security.getSecurityTrades(source, opts).then(function(data) {
data = JSON.stringify(data, null, 2)
console.log(data);
}, function(error) {
console.error(error);
});
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
sourceStringThe specific source of the data being requested. 
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]  
darkpoolOnlyBooleanSet to true to show only darkpool trades[optional] [default to false]  
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
SecurityTradesResult

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[SecurityTrades]Array of all the trades in this page of the result.  
object
SecurityTrades

Properties

NameTypeDescription
symbolStringThe 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.  
marketCenterStringThe market center for the trade.  
conditionStringThe condition of the trade.  
isDarkpoolBooleanIf the trade was darkpool or not.