Table of Contents

Class InstrumentProfileType

Namespace
DxFeed.Graal.Net.Ipf
Assembly
DxFeed.Graal.Net.dll

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

InstrumentProfileType

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

InstrumentProfileType

CURRENCY

The currency type.

public static readonly InstrumentProfileType CURRENCY

Field Value

InstrumentProfileType

ETF

Exchange-traded fund.

public static readonly InstrumentProfileType ETF

Field Value

InstrumentProfileType

FOREX

Foreign exchange market or cryptocurrency.

public static readonly InstrumentProfileType FOREX

Field Value

InstrumentProfileType

FUTURE

Futures contract, derivative instrument.

public static readonly InstrumentProfileType FUTURE

Field Value

InstrumentProfileType

INDEX

Non-tradable market performance indicators.

public static readonly InstrumentProfileType INDEX

Field Value

InstrumentProfileType

MONEY_MARKET_FUND

Funds that invest in short-term debt instruments.

public static readonly InstrumentProfileType MONEY_MARKET_FUND

Field Value

InstrumentProfileType

MUTUAL_FUND

Investment funds, excluding ETFs and money market funds.

public static readonly InstrumentProfileType MUTUAL_FUND

Field Value

InstrumentProfileType

OPTION

Option contract, derivative instrument.

public static readonly InstrumentProfileType OPTION

Field Value

InstrumentProfileType

OTHER

Non-tradable miscellaneous instruments.

public static readonly InstrumentProfileType OTHER

Field Value

InstrumentProfileType

PRODUCT

Grouping instrument for futures, aka futures product.

public static readonly InstrumentProfileType PRODUCT

Field Value

InstrumentProfileType

REMOVED

Special instrument type indicating instrument removal.

public static readonly InstrumentProfileType REMOVED

Field Value

InstrumentProfileType

SPREAD

Composite virtual instrument consisting of two or several individual instruments that represent multileg order.

public static readonly InstrumentProfileType SPREAD

Field Value

InstrumentProfileType

STOCK

Tradable equities, excluding ETFs and mutual funds.

public static readonly InstrumentProfileType STOCK

Field Value

InstrumentProfileType

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

InstrumentProfileType

Properties

Name

Gets full name this InstrumentProfileType instance.

public string Name { get; }

Property Value

string

Methods

CompareTypes(string, string)

Compares two specified instrument profile types for order.

public static int CompareTypes(string type1, string type2)

Parameters

type1 string

The first instrument profile type to compare.

type2 string

The second instrument profile type to compare.

Returns

int

A negative integer if type1 is less than type2, zero if they are equal, or a positive integer if type1 is greater than type2. 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 string

The name of the InstrumentProfileType to be retrieved.

Returns

InstrumentProfileType

The associated InstrumentProfileType if found, otherwise returns null.