Ejemplo n.º 1
0
 public IBContractDetails()
 {
     Summary        = new IBContract();
     ValidExchanges = OrderTypes = Multiplier = TradingClass = MarketName = null;
     PriceMagnifier = ContractId = 0;
     MinTick        = 0;
 }
Ejemplo n.º 2
0
 private void DumpContract(IBContract c)
 {
   Debug.WriteLine(String.Format("{0} {1} {2} {3} {4} {5} {6}", c.Symbol, c.SecurityType, c.Expiry, c.Strike, c.Right,
                                 c.Exchange, c.Currency));
 }
Ejemplo n.º 3
0
 public IBContractDetails()
 {
   Summary = new IBContract();
   ValidExchanges = OrderTypes = Multiplier = TradingClass = MarketName = null;
   PriceMagnifier = ContractId = 0;
   MinTick = 0;
 }
Ejemplo n.º 4
0
    private void RegisterContractList(IList<IBSimplefiedContract> list, Grid grid)
    {
      var i = 1;
      foreach (var c in list)
      {
        var contract = new IBContract
          {
            Currency = c.Currency,
            Symbol = c.Symbol,
            Exchange = c.Exchange,
            SecurityType = c.SecurityType,
            Expiry = c.Expiry,
            Multiplier = c.Multiplier.ToString(),
            Strike = c.Strike,
            Right = c.PutOrCall
          };

        _client.RequestMarketData(contract, null);
        _symbolDataMap.Add(contract, new InstrumentDataRecord() {Grid = grid, Row = i});
        i++;
      }
    }