C# Класс Krs.Ats.IBNet.Contract

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Contract ( ) : System

Undefined Contract Constructor

Contract ( int contractId ) : System

Get a Contract by its unique contractId

Contract ( int contractId, String symbol, SecurityType securityType, String expiry, double strike, RightType right, String multiplier, string exchange, string currency, string localSymbol, string primaryExchange, SecurityIdType secIdType, string secId ) : System

Default Contract Constructor

Contract ( string symbol, string exchange, SecurityType securityType, string currency ) : System

Indice Contract Constructor

Contract ( string symbol, string exchange, SecurityType securityType, string currency, string expiry ) : System

Futures Contract Constructor

Описание методов

Contract() публичный Метод

Undefined Contract Constructor
public Contract ( ) : System
Результат System

Contract() публичный Метод

Get a Contract by its unique contractId
public Contract ( int contractId ) : System
contractId int
Результат System

Contract() публичный Метод

Default Contract Constructor
public Contract ( int contractId, String symbol, SecurityType securityType, String expiry, double strike, RightType right, String multiplier, string exchange, string currency, string localSymbol, string primaryExchange, SecurityIdType secIdType, string secId ) : System
contractId int The unique contract identifier.
symbol String This is the symbol of the underlying asset.
securityType SecurityType This is the security type.
expiry String The expiration date. Use the format YYYYMM.
strike double The strike price.
right RightType Specifies a Put or Call.
multiplier String Allows you to specify a future or option contract multiplier. /// This is only necessary when multiple possibilities exist.
exchange string The order destination, such as Smart.
currency string Specifies the currency.
localSymbol string This is the local exchange symbol of the underlying asset.
primaryExchange string Identifies the listing exchange for the contract (do not list SMART).
secIdType SecurityIdType Security identifier, when querying contract details or when placing orders.
secId string Unique identifier for the secIdType.
Результат System

Contract() публичный Метод

Indice Contract Constructor
public Contract ( string symbol, string exchange, SecurityType securityType, string currency ) : System
symbol string This is the symbol of the underlying asset.
exchange string The order destination, such as Smart.
securityType SecurityType This is the security type.
currency string Specifies the currency.
Результат System

Contract() публичный Метод

Futures Contract Constructor
public Contract ( string symbol, string exchange, SecurityType securityType, string currency, string expiry ) : System
symbol string This is the symbol of the underlying asset.
exchange string The order destination, such as Smart.
securityType SecurityType This is the security type.
currency string Specifies the currency.
expiry string The expiration date. Use the format YYYYMM.
Результат System