コード例 #1
0
 @Test
 public void testGetIndex() {
   ISecurity newSecurity = securitiesFactory.getSecurity(MarketTypes.Indexes, 0);
   assertTrue(newSecurity instanceof Index);
 }
コード例 #2
0
 @Test
 public void testGetOption() {
   ISecurity newSecurity = securitiesFactory.getSecurity(MarketTypes.Options, 0);
   assertTrue(newSecurity instanceof Option);
 }
コード例 #3
0
 @Test
 public void testGetBond() {
   ISecurity newSecurity = securitiesFactory.getSecurity(MarketTypes.Catalyst, 0);
   assertTrue(newSecurity instanceof Bond);
 }
コード例 #4
0
 @Test
 public void testGetFutureContract() {
   ISecurity newSecurity = securitiesFactory.getSecurity(MarketTypes.Futures, 0);
   assertTrue(newSecurity instanceof FutureContract);
 }
コード例 #5
0
 @Test
 public void testGetStock() {
   ISecurity newSecurity = securitiesFactory.getSecurity(MarketTypes.NewConnect, 0);
   assertTrue(newSecurity instanceof Share);
 }