Security Trades

Security Trades Csharp API Documentation

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

API Class:
Intrinio.SDK.Api.SecurityApi
Instance Method:
GetSecurityTrades()

Stock Price Code Example

Use my API Key
using System;
using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using Intrinio.SDK.Api;
using Intrinio.SDK.Client;
using Intrinio.SDK.Model;
using Newtonsoft.Json;
namespace Example
{
public class GetSecurityTradesExample
{
public static void Main()
{
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
Configuration.Default.AllowRetries = true;
var securityApi = new SecurityApi();
string source = null;
DateTime? startDate = null;
string startTime = null;
DateTime? endDate = null;
string endTime = null;
string timezone = "UTC";
int? pageSize = 100;
bool? darkpoolOnly = false;
int? minSize = 100;
string nextPage = null;
SecurityTradesResult result = securityApi.GetSecurityTrades(source, startDate, startTime, endDate, endTime, timezone, pageSize, darkpoolOnly,
        minSize, nextPage);
Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
}
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
sourcestringThe specific source of the data being requested. 
startDateDateTime?The start date for the data being requested.[optional]  
startTimestringThe start time for the data being requested.[optional]  
endDateDateTime?The 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]  
pageSizeint?The maximum number of results to return per page.[optional] [default to 100]  
darkpoolOnlybool?Set to true to show only darkpool trades[optional] [default to false]  
minSizeint?Trades must be larger or equal to this size.[optional]  
nextPagestringGets the next page of data from a previous API call[optional]  


Return Type

object
Intrinio.SDK.Model.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.  
TradesListArray of all the trades in this page of the result.  
object
Intrinio.SDK.Model.SecurityTrades

Properties

NameTypeDescription
SymbolstringThe ticker symbol  
TimestampDateTime?The UTC timestamp at the time of the trade.  
Pricedecimal?The price of the trade.  
Sizedecimal?The size of the trade.  
TotalVolumedecimal?The 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.  
IsDarkpoolbool?If the trade was darkpool or not.