Option Trades

Option 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.OptionsApi
Instance Method:
GetOptionTrades()

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 GetOptionTradesExample
{
public static void Main()
{
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
Configuration.Default.AllowRetries = true;
var optionsApi = new OptionsApi();
string source = null;
DateTime? startDate = null;
string startTime = null;
DateTime? endDate = null;
string endTime = null;
string timezone = "UTC";
int? pageSize = 100;
int? minSize = 100;
string security = "AAPL";
string nextPage = null;
OptionTradesResult result = optionsApi.GetOptionTrades(source, startDate, startTime, endDate, endTime, timezone, pageSize, minSize, security,
        nextPage);
Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
}
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
sourcestringThe specific source of the data being requested.[optional]  
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]  
minSizeint?Trades must be larger or equal to this size.[optional]  
securitystringThe ticker symbol for which trades are being requested.[optional]  
nextPagestringGets the next page of data from a previous API call[optional]  


Return Type

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

Properties

NameTypeDescription
ContractstringThe option contract  
UnderlyingSymbolstringThe 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.  
AskPriceAtExecutiondecimal?The price of ask quote at the time of the trade.  
BidPriceAtExecutiondecimal?The price of bid quote at the time of the trade.  
ExchangestringThe exchange for the trade.  
ConditionsstringThe condition of the trade.  
SequenceIddecimal?The sequential ID for the trade, ordered as temporally received from the exchange.