Class InstrumentProfileType
Defines standard types of InstrumentProfile. Note that other (unknown) types can be used without listing in this class - use it for convenience only. Please see Instrument Profile Format documentation for complete description.
public class InstrumentProfileType
- Inheritance
-
InstrumentProfileType
- Inherited Members
Fields
BOND
Debt instruments, excluding money market funds.
public static readonly InstrumentProfileType BOND
Field Value
CFD
Contract for differences, an arrangement where the differences in the settlement between the open and closing trade prices are cash-settled.
public static readonly InstrumentProfileType CFD
Field Value
CURRENCY
The currency type.
public static readonly InstrumentProfileType CURRENCY
Field Value
ETF
Exchange-traded fund.
public static readonly InstrumentProfileType ETF
Field Value
FOREX
Foreign exchange market or cryptocurrency.
public static readonly InstrumentProfileType FOREX
Field Value
FUTURE
Futures contract, derivative instrument.
public static readonly InstrumentProfileType FUTURE
Field Value
INDEX
Non-tradable market performance indicators.
public static readonly InstrumentProfileType INDEX
Field Value
MONEY_MARKET_FUND
Funds that invest in short-term debt instruments.
public static readonly InstrumentProfileType MONEY_MARKET_FUND
Field Value
MUTUAL_FUND
Investment funds, excluding ETFs and money market funds.
public static readonly InstrumentProfileType MUTUAL_FUND
Field Value
OPTION
Option contract, derivative instrument.
public static readonly InstrumentProfileType OPTION
Field Value
OTHER
Non-tradable miscellaneous instruments.
public static readonly InstrumentProfileType OTHER
Field Value
PRODUCT
Grouping instrument for futures, aka futures product.
public static readonly InstrumentProfileType PRODUCT
Field Value
REMOVED
Special instrument type indicating instrument removal.
public static readonly InstrumentProfileType REMOVED
Field Value
SPREAD
Composite virtual instrument consisting of two or several individual instruments that represent multileg order.
public static readonly InstrumentProfileType SPREAD
Field Value
STOCK
Tradable equities, excluding ETFs and mutual funds.
public static readonly InstrumentProfileType STOCK
Field Value
WARRANT
Derivative that gives the right, but not the obligation, to buy or sell a security at a certain price before expiration.
public static readonly InstrumentProfileType WARRANT
Field Value
Properties
Name
Gets full name this InstrumentProfileType instance.
public string Name { get; }
Property Value
Methods
CompareTypes(string, string)
Compares two specified instrument profile types for order.
public static int CompareTypes(string type1, string type2)
Parameters
type1
stringThe first instrument profile type to compare.
type2
stringThe second instrument profile type to compare.
Returns
- int
A negative integer if
type1
is less thantype2
, zero if they are equal, or a positive integer iftype1
is greater thantype2
. If an unknown type is encountered, it's ordered alphabetically after recognized types.
Remarks
This method returns a negative integer if the first type is less than the second, zero if they are equal, or a positive integer if the first type is greater than the second.
Unlike the natural ordering of the InstrumentProfile class itself, this method supports unknown types, ordering them alphabetically after the recognized types. It's designed primarily for arranging data representation in a file and is not intended for business logic evaluations.Find(string)
Retrieves the corresponding InstrumentProfileType for the given name.
public static InstrumentProfileType? Find(string name)
Parameters
name
stringThe name of the InstrumentProfileType to be retrieved.
Returns
- InstrumentProfileType
The associated InstrumentProfileType if found, otherwise returns
null
.