コード例 #1
0
ファイル: EventHandlers.cs プロジェクト: dismalion/ib-net
 public TWSMarketDataEventArgs(TWSClient client,
                               TWSMarketDataSnapshot snapshot, IBTickType tickType)
     : base(client)
 {
     TickType = tickType;
     Snapshot = snapshot;
 }
コード例 #2
0
        public TWSMarketDataSnapshot(TWSMarketDataSnapshot that)
        {
            _askSize  = that._askSize;
            _bidSize  = that._bidSize;
            _lastSize = that._lastSize;
            _volume   = that._volume;

            Contract        = that.Contract;
            Ask             = that.Ask;
            Bid             = that.Bid;
            Close           = that.Close;
            Open            = that.Open;
            High            = that.High;
            Low             = that.Low;
            Last            = that.Last;
            SyntheticVolume = that.SyntheticVolume;
            VolumeEvents    = that.VolumeEvents;
            VolumeMisses    = that.VolumeMisses;
            TradeEvents     = that.TradeEvents;
            TradeDups       = that.TradeDups;
            BidEvents       = that.BidEvents;
            AskEvents       = that.AskEvents;
            AskDups         = that.AskDups;
            BidDups         = that.BidDups;
            TradeTimeStamp  = that.TradeTimeStamp;
            BidTimeStamp    = that.BidTimeStamp;
            AskTimeStamp    = that.AskTimeStamp;
            Delta           = that.Delta;
            ImpliedVol      = that.ImpliedVol;
            BidDelta        = that.BidDelta;
            BidImpliedVol   = that.BidImpliedVol;
            AskDelta        = that.AskDelta;
            AskImpliedVol   = that.AskImpliedVol;
            PVDividend      = that.PVDividend;
            ModelPrice      = that.ModelPrice;
        }
コード例 #3
0
ファイル: DataRecords.cs プロジェクト: dismalion/ib-net
        public TWSMarketDataSnapshot(TWSMarketDataSnapshot that)
        {
            _askSize = that._askSize;
            _bidSize = that._bidSize;
            _lastSize = that._lastSize;
            _volume = that._volume;

            Contract = that.Contract;
            Ask = that.Ask;
            Bid = that.Bid;
            Close = that.Close;
            Open = that.Open;
            High = that.High;
            Low = that.Low;
            Last = that.Last;
            SyntheticVolume = that.SyntheticVolume;
            VolumeEvents = that.VolumeEvents;
            VolumeMisses = that.VolumeMisses;
            TradeEvents = that.TradeEvents;
            TradeDups = that.TradeDups;
            BidEvents = that.BidEvents;
            AskEvents = that.AskEvents;
            AskDups = that.AskDups;
            BidDups = that.BidDups;
            TradeTimeStamp = that.TradeTimeStamp;
            BidTimeStamp = that.BidTimeStamp;
            AskTimeStamp = that.AskTimeStamp;
            Delta = that.Delta;
            ImpliedVol = that.ImpliedVol;
            BidDelta = that.BidDelta;
            BidImpliedVol = that.BidImpliedVol;
            AskDelta = that.AskDelta;
            AskImpliedVol = that.AskImpliedVol;
            PVDividend = that.PVDividend;
            ModelPrice = that.ModelPrice;
        }
コード例 #4
0
ファイル: EventHandlers.cs プロジェクト: dismalion/ib-net
 public TWSMarketDataEventArgs(TWSClient client, 
     TWSMarketDataSnapshot snapshot, IBTickType tickType)
     : base(client)
 {
     TickType = tickType;
     Snapshot = snapshot;
 }
コード例 #5
0
ファイル: TWSClient.cs プロジェクト: dismalion/ib-net
 protected void OnMarketData(TWSMarketDataSnapshot snapshot, IBTickType tickType)
 {
     if (MarketData != null)
         MarketData(this, new TWSMarketDataEventArgs(this, snapshot, tickType));
 }