コード例 #1
0
 public int SubmitContractNote(ContractNoteInfo contractNote)
 {
     object[] results = this.Invoke("SubmitContractNote", new object[] {
         contractNote
     });
     return((int)(results[0]));
 }
コード例 #2
0
        static void Main(string[] args)
        {
            //intantiate web service proxy
            STPProvider.PostTradeService postTradeSvc = new STPProvider.PostTradeService();
            //SignData(postTradeSvc);
            //prepare contract note information
            STPProvider.ContractNoteInfo contractNote = new STPProvider.ContractNoteInfo();
            contractNote.Symbol   = "MSFT";
            contractNote.Price    = 25;
            contractNote.Quantity = 100;
            contractNote.BuySell  = STPProvider.BuySellEnum.Buy;
            //submit contract note information through web service
            int ackId = postTradeSvc.SubmitContractNote(contractNote);

            //display the ack no received from web service
            Console.WriteLine("Acknowledgement Id: " + ackId);
        }
コード例 #3
0
 /// <remarks/>
 public System.IAsyncResult BeginSubmitContractNote(ContractNoteInfo contractNote, System.AsyncCallback callback, object asyncState)
 {
     return(this.BeginInvoke("SubmitContractNote", new object[] {
         contractNote
     }, callback, asyncState));
 }