C# Class Krs.Ats.IBNet.Contract

Datei anzeigen Open project: qusma/ib-csharp Class Usage Examples

Public Methods

Method Description
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

Method Details

Contract() public method

Undefined Contract Constructor
public Contract ( ) : System
return System

Contract() public method

Get a Contract by its unique contractId
public Contract ( int contractId ) : System
contractId int
return System

Contract() public method

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.
return System

Contract() public method

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.
return System

Contract() public method

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.
return System