Class BrokerClientIB.InstrumentInfo
Container holding instrument info and quotes.
Inheritance
Inherited Members
Namespace: TuringTrader.Simulator
Assembly: TuringTrader.Simulator.dll
Syntax
public class BrokerClientIB.InstrumentInfo
Constructors
| Improve this Doc 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 |
IBApi.ContractDetails | details | contract details |
Fields
| Improve this Doc View SourceDetails
Contract details for this instrument.
Declaration
public readonly ContractDetails Details
Field Value
Type | Description |
---|---|
IBApi.ContractDetails |
Properties
| Improve this Doc 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
| Improve this Doc 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()