コード例 #1
0
 private void _tsi_b_Click(MTPA_OrdrActn act)
 {
     try
     {
         Prof.PlaceOrder(
             new OrderParams
         {
             action    = act,
             category  = MTPA_OrdrCtgry.eMTPA_OC_Market,
             contracts = 1,
             tif       = MTPA_OrdrTimeInForce.eMTPA_TIF_GTC
         });
     }
     catch (Exception e)
     {
         MessageBox.Show(e.Message);
     }
 }
コード例 #2
0
 private void _tsi_b_Click(MTPA_OrdrActn act)
 {
     try
     {
         Prof.PlaceOrder(
             new OrderParams
                 {
                     action = act,
                     category = MTPA_OrdrCtgry.eMTPA_OC_Market,
                     contracts = 1,
                     tif = MTPA_OrdrTimeInForce.eMTPA_TIF_GTC
                 });
     }
     catch (Exception e)
     {
         MessageBox.Show(e.Message);
     }
 }