Example #1
0
 public async Task ChangeDrpParticipation(Guid stockId, bool participate)
 {
     var command = new ChangeDrpParticipationCommand()
     {
         Holding     = stockId,
         Participate = participate
     };
     await _MessageHandler.PostAsync <ChangeDrpParticipationCommand>("/api/portfolio/" + _MessageHandler.Portfolio + "/holdings/" + stockId + "/changedrpparticipation", command);
 }
 public async Task Update(TradingCalendar calendar)
 {
     await _MessageHandler.PostAsync <TradingCalendar>("tradingcalendars/" + calendar.Year.ToString(), calendar);
 }
        public async Task Add(Transaction transaction)
        {
            var url = "portfolio/" + _MessageHandler.Portfolio + "/transactions";

            await _MessageHandler.PostAsync <Transaction>(url, transaction);
        }
Example #4
0
 public async Task CreateStock(CreateStockCommand command)
 {
     await _MessageHandler.PostAsync <CreateStockCommand>("stocks", command);
 }
Example #5
0
 public async Task Add(Guid stockId, CorporateAction corporateAction)
 {
     await _MessageHandler.PostAsync <CorporateAction>("stocks/" + stockId + "/corporateactions", corporateAction);
 }