@Test public void testGetIndex() { ISecurity newSecurity = securitiesFactory.getSecurity(MarketTypes.Indexes, 0); assertTrue(newSecurity instanceof Index); }
@Test public void testGetOption() { ISecurity newSecurity = securitiesFactory.getSecurity(MarketTypes.Options, 0); assertTrue(newSecurity instanceof Option); }
@Test public void testGetBond() { ISecurity newSecurity = securitiesFactory.getSecurity(MarketTypes.Catalyst, 0); assertTrue(newSecurity instanceof Bond); }
@Test public void testGetFutureContract() { ISecurity newSecurity = securitiesFactory.getSecurity(MarketTypes.Futures, 0); assertTrue(newSecurity instanceof FutureContract); }
@Test public void testGetStock() { ISecurity newSecurity = securitiesFactory.getSecurity(MarketTypes.NewConnect, 0); assertTrue(newSecurity instanceof Share); }