Security Trades

Security Trades Python 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:
get_security_trades()

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)
source = ''
start_date = ''
start_time = ''
end_date = ''
end_time = ''
timezone = 'UTC'
page_size = 100
darkpool_only = False
min_size = 100
next_page = ''
response = intrinio.SecurityApi().get_security_trades(source, start_date=start_date, start_time=start_time, end_date=end_date, end_time=end_time,
  timezone=timezone, page_size=page_size, darkpool_only=darkpool_only, min_size=min_size, next_page=next_page)
print(response)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
sourcestrThe specific source of the data being requested. 
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]  
page_sizeintThe maximum number of results to return per page.[optional] [default to 100]  
darkpool_onlyboolSet to True to show only darkpool trades[optional] [default to False]  
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.