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); }
public async Task CreateStock(CreateStockCommand command) { await _MessageHandler.PostAsync <CreateStockCommand>("stocks", command); }
public async Task Add(Guid stockId, CorporateAction corporateAction) { await _MessageHandler.PostAsync <CorporateAction>("stocks/" + stockId + "/corporateactions", corporateAction); }