Security Trades By Symbol

Security Trades By Symbol Python API Documentation

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

API Class:
SecurityApi
Instance Method:
get_security_trades_by_symbol()

Stock Price Code Example

Use my API Key
from __future__ import print_function
import time
import intrinio_sdk as intrinio
from intrinio_sdk.rest import ApiException
intrinio.ApiClient().set_api_key('YOUR_API_KEY')
intrinio.ApiClient().allow_retries(True)
identifier = 'AAPL'
source = ''
start_date = ''
start_time = ''
end_date = ''
end_time = ''
timezone = 'UTC'
darkpool_only = False
page_size = 100
min_size = 100
next_page = ''
response = intrinio.SecurityApi().get_security_trades_by_symbol(identifier, source, start_date=start_date, start_time=start_time, end_date=end_date,
  end_time=end_time, timezone=timezone, darkpool_only=darkpool_only, page_size=page_size, min_size=min_size, next_page=next_page)
print(response)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierstrThe ticker symbol for which trades are being requested. 
sourcestrThe specific source of the data being requested. Specifying delayed sip will result in the system automatically determining which delayed sip source (cta_delayed, cta_b_delayed, utp_delayed, otc_delayed) to use. 
start_datedateThe start date for the data being requested.[optional]  
start_timestrThe start time for the data being requested.[optional]  
end_datedateThe end date for the data being requested.[optional]  
end_timestrThe end time for the data being requested.[optional]  
timezonestrThe timezone the start and end date/times use.[optional] [default to UTC]  
darkpool_onlyboolSet to True to show only darkpool trades[optional] [default to False]  
page_sizeintThe maximum number of results to return per page.[optional] [default to 100]  
min_sizeintTrades must be larger or equal to this size.[optional]  
next_pagestrGets the next page of data from a previous API call[optional]  


Return Type

object
SecurityTradesResult

Properties

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

Properties

NameTypeDescription
symbolstrThe ticker symbol  
timestampdatetimeThe UTC timestamp at the time of the trade.  
pricefloatThe price of the trade.  
sizefloatThe size of the trade.  
total_volumefloatThe total volume of the symbol for the day up to the timestamp point in time.  
market_centerstrThe market center for the trade.  
conditionstrThe condition of the trade.  
is_darkpoolboolIf the trade was darkpool or not.