public async Task <TradingCalendar> Get(int year)
 {
     return(await _MessageHandler.GetAsync <TradingCalendar>("tradingcalendars/" + year.ToString()));
 }
Exemplo n.º 2
0
        public async Task <List <Holding> > Get(Date date)
        {
            var url = "/api/portfolio/" + _MessageHandler.Portfolio + "/holdings?date=" + date.ToIsoDateString();

            return(await _MessageHandler.GetAsync <List <Holding> >(url));
        }
Exemplo n.º 3
0
 public async Task <PortfolioPropertiesResponse> GetProperties()
 {
     return(await _MessageHandler.GetAsync <PortfolioPropertiesResponse>("portfolio/" + _MessageHandler.Portfolio + "/properties"));
 }
Exemplo n.º 4
0
 public async Task <List <StockResponse> > Get()
 {
     return(await _MessageHandler.GetAsync <List <StockResponse> >("stocks"));
 }
        public async Task <Transaction> Get(Guid id)
        {
            var url = "portfolio/" + _MessageHandler.Portfolio + "/transactions/" + id;

            return(await _MessageHandler.GetAsync <Transaction>(url));
        }
Exemplo n.º 6
0
 public async Task <List <CorporateAction> > GetAll(Guid stockId)
 {
     return(await _MessageHandler.GetAsync <List <CorporateAction> >("stocks/" + stockId + "/corporateactions"));
 }