FactSetOnDemand Class |
FactSetOnDemand fsod = new FactSetOnDemand(); // Set our configuration. We definitely need to set our username and password, as given to us by FactSet Support staff IConfigManager config = fsod.getConfig(); /// config.setConfig(ConfigOptions.DataDirectUserName, "MyUserName"); config.setConfig(ConfigOptions.DataDirectPassword, "MyPassword"); DataFrame df = fsod.ExtractFormulaHistory("ibm", "p_price", "09/19/2014"); Console.WriteLine(fsod.GetEventLogger().getOutputBuffer()); //Print a summary string if (df.hasError()) { df.throwErrorIfAnyIsPresent(); } for (int row = 0; row < df.getNumberOfRows(); row++) { for (int col = 0; col < df.getNumberOfColumns(); col++) { Object o = df.getCellAt(row, col); // Note that we know what the type of this cell is, so we could cast it or treat it as its proper type if we needed to Console.WriteLine("Row: " + row + ", Col: " + col + ", Value: " + o.ToString()); } }
Namespace: Kratos_3.RunTimePlatform
The FactSetOnDemand type exposes the following members.
Name | Description | |
---|---|---|
![]() | FactSetOnDemand |
Constructor. This one sets the default Developer's Toolkit settings, and as such is recommended for use with the Toolkit
|
![]() | FactSetOnDemand(DictionaryString, String) | Initializes a new instance of the FactSetOnDemand class |
![]() | FactSetOnDemand(String) | Initializes a new instance of the FactSetOnDemand class |
![]() | FactSetOnDemand(Boolean, String) |
Constructor used for Matlab and R plugins.
|
![]() | FactSetOnDemand(Boolean, String, String) |
Constructor used for Matlab and R plugins.
|
Name | Description | |
---|---|---|
![]() ![]() | addStringArrayParameters(DataRequest, Object) |
Helper function for adding a series of parameters to a DataRequest object like a Factlet.
The parameters should be formated as an array where every pair of strings represent a name-value pair
![]() FactSetOnDemand fsod = new FactSetOnDemand(); Factlet f = new Factlet("ExtractFormulaHistory"); string[] params = new string[] { "ids", "ibm", "items", "p_price", "date", "08/10/2014" }; fsod.addStringArrayParameters(f, params); |
![]() ![]() | addStringArrayParameters(DataRequest, String) |
Helper function for adding a series of parameters to a DataRequest object like a Factlet.
The parameters should be formated as an array where every pair of strings represent a name-value pair
![]() FactSetOnDemand fsod = new FactSetOnDemand(); Factlet f = new Factlet("ExtractFormulaHistory"); string[] params = new string[] { "ids", "ibm", "items", "p_price", "date", "08/10/2014" }; fsod.addStringArrayParameters(f, params); |
![]() | AddUrlParameter |
Add a URL parameter to the next Factlet call
|
![]() | CancelAllRequests | |
![]() | CorporateActionsDividends(String, String, String) |
Execute the CorporateActionsDividends Factlet.
|
![]() | CorporateActionsDividends(String, String, String, Object) |
Execute the CorporateActionsDividends Factlet.
|
![]() | CorporateActionsSplits(String, String, String) |
Execute the CorporateActionsSplits Factlet.
|
![]() | CorporateActionsSplits(String, String, String, Object) |
Execute the CorporateActionsSplits Factlet.
|
![]() | Equals | (Inherited from Object.) |
![]() | EstimatesOnDemand(String, String, String, String) |
Execute the EstimatesOnDemand Factlet.
|
![]() | EstimatesOnDemand(String, String, String, String, Object) |
Execute the EstimatesonDemand Factlet.
|
![]() | executeFactlet(Factlet) |
Execute a factlet.
|
![]() | executeFactlet(Factlet, Boolean, Boolean) |
Execute a factlet
|
![]() | executeFactlet(Factlet, Boolean, Boolean, Boolean) |
Execute a factlet
|
![]() | executeFactlet(Factlet, Boolean, Boolean, Boolean, DictionaryString, String) |
Execute a factlet.
|
![]() | ExtractAlphaTestingSnapshot |
Execute the ExtractAlphaTestingSnapshot Factlet.
|
![]() | ExtractBenchmarkDetail(String, String, String) |
Execute the ExtractBenchmarkDetail Factlet.
|
![]() | ExtractBenchmarkDetail(String, String, String, Object) |
Execute the ExtractBenchmarkDetail Factlet.
|
![]() | ExtractCustomFormulaHistory(String, String) |
Execute the ExtractCustomFormulaHistory Factlet.
|
![]() | ExtractCustomFormulaHistory(String, String, Object) |
Execute the ExtractCustomFormulaHistory Factlet.
|
![]() | ExtractDataSnapshot(String, String, String) |
Execute the ExtractDataSnapshot Factlet.
|
![]() | ExtractDataSnapshot(String, String, String, Object) |
Execute the ExtractDataSnapshot Factlet.
|
![]() | ExtractEconData(String, String) |
Execute the ExtractEconData Factlet.
|
![]() | ExtractEconData(String, String, Object) |
Execute the ExtractEconData Factlet.
|
![]() | ExtractFormulaHistory(String, String, String) |
Execute the ExtractFormulaHistory Factlet.
|
![]() | ExtractFormulaHistory(String, String, String, Object) |
Execute the ExtractFormulaHistory Factlet.
|
![]() | ExtractOFDBItem(String, String, String, String) |
Execute the ExtractOFDBItem Factlet.
|
![]() | ExtractOFDBItem(String, String, String, String, Object) |
Execute the ExtractOFDBItem Factlet.
|
![]() | ExtractOFDBUniverse(String) |
Execute the ExtractOFDBUniverse Factlet.
|
![]() | ExtractOFDBUniverse(String, Object) |
Execute the ExtractOFDBUniverse Factlet.
|
![]() | ExtractOptionsSnapshot(String, String, String, String, String, String, String, String) |
Execute the ExtractOptionsSnapshot Factlet.
|
![]() | ExtractOptionsSnapshot(String, String, String, String, String, String, String, String, Object) |
Execute the ExtractOptionsSnapshot Factlet.
|
![]() | ExtractScreenUniverse(String) |
Execute the ExtractScreenUniverse Factlet.
|
![]() | ExtractScreenUniverse(String, Object) |
Execute the ExtractScreenUniverse Factlet.
|
![]() | ExtractSPARData(String, String, String) |
Execute the ExtractSPARData Factlet.
|
![]() | ExtractSPARData(String, String, String, Object) |
Execute the ExtractSPARData Factlet.
|
![]() | ExtractVectorFormula(String, String) |
Execute the ExtractVectorFormula Factlet.
|
![]() | ExtractVectorFormula(String, String, Object) |
Execute the ExtractVectorFormula Factlet.
|
![]() | FXRate(String, String) |
Execute the FXRate Factlet.
|
![]() | FXRate(String, String, Object) |
Execute the FXRate Factlet.
|
![]() | getAllConfigOptions |
Get a list of all available config options
|
![]() | getConfig |
Get the ConfigManager being used. With this, one can change the configuration settings or see what they are
|
![]() | GetConfigPathInSpecialFolder | |
![]() | GetDFSnapshotOnDemand |
Return the DFSnapshotOnDemand interface object for making DFSnapshot calls
|
![]() | GetDocumentsOnDemand |
Return the DocumentsOnDemand interface object for making Document calls
|
![]() | GetEventLogAsString |
Returns event log as a string ready for parsing or viewing
|
![]() | GetEventLogger |
Get the EventLogger being used
|
![]() | GetFormat |
Returns a string describing what value is being passed to the "format" network parameter
|
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetKratosVersion |
Returns the actual version of the Kratos DLL as a string
|
![]() | GetPathToConfig | |
![]() | GetTickHistoryOnDemand |
Returns the TickHistory interface object for making TickHistory calls
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IsUsingRegistry | |
![]() | LSD_Ownership(String, String) |
Execute the LSD_Ownership Factlet
|
![]() | LSD_Ownership(String, String, Object) |
Execute the LSD_Ownership Factlet.
|
![]() | OtpKeyRequest |
Send FactSet servers the passcode received on an email sent by PassCodeRequest to complete the key/counter reset process
|
![]() | PassCodeRequest |
Request an email to FactSet servers to reset the OTP key and counter
|
![]() | RemoveUrlParameter |
Remove URL parameter from list of parameters to use in the next call
|
![]() | RunStatBar |
Run StatBar. For MATLAB and R Plugins. Calling this outside of either of these programs will give undefined results.
|
![]() | setIndexingString |
Set the column used for indexed parsing.
|
![]() | SetPathToConfig | |
![]() | SetUpConfig | |
![]() ![]() | setWaitUntilDoneMode |
Set whether or not to wait until a dataframe is done downloading and parsing before returning from a factlet execution call.
If not in waitUntilDone mode, when a factlet call is made a DataFrame is immediately returned representing the response from OnDemand servers as it arrives. The DataFrame should not be accessed until it's isDone member variable is set to true
![]() DataFrame df = fsod.executeFactlet(f); while(!df.isDone) { Thread.Sleep(20); } // access the data frame here |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | useMatlabFormat |
Returns true if initialized to use MATLAB-style dates and formats
|