Class BrokerClientIB.InstrumentInfo
Container holding instrument info and quotes.
Inherited Members
Namespace: TuringTrader.Simulator
Assembly: TuringTrader.Simulator.dll
Syntax
public class BrokerClientIB.InstrumentInfo
Constructors
| Edit this page View SourceInstrumentInfo(BrokerClientIB, ContractDetails)
Create and initialize instrument info.
Declaration
public InstrumentInfo(BrokerClientIB client, ContractDetails details)
Parameters
| Type | Name | Description |
|---|---|---|
| BrokerClientIB | client | parent broker client |
| ContractDetails | details | contract details |
Fields
| Edit this page View SourceDetails
Contract details for this instrument.
Declaration
public readonly ContractDetails Details
Field Value
| Type | Description |
|---|---|
| ContractDetails |
Properties
| Edit this page View SourceAsk
Ask price. Will be retrieved from IB as required.
Declaration
public double Ask { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
AskSize
Ask size. Will be retrieved from IB as required.
Declaration
public int AskSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Bid
Bid price. Will be retrieved from IB, as required.
Declaration
public double Bid { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
BidSize
Bid size. Will be retrieved from IB as required.
Declaration
public int BidSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Close
Close price. Will be retrieved from IB as required.
Declaration
public double Close { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
High
High price. Will be retrieved from IB as required.
Declaration
public double High { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Last
Last price. Will be retrieved from IB as required.
Declaration
public double Last { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
LastSize
Last size. Will be retrieved from IB as required.
Declaration
public int LastSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Low
Low price. Will be retrieved from IB as required.
Declaration
public double Low { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Open
Open price. Will be retrieved from IB as required.
Declaration
public double Open { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Volume
Trade volume. Will be retrieved from IB as required.
Declaration
public int Volume { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
| Edit this page View SourceCancelMarketData()
Cancel market data subscription for this instrument.
Declaration
public void CancelMarketData()
RequestMarketData()
Subscribe to market data for this instrument.
Declaration
public void RequestMarketData()