Пример #1
0
        public async Task <Order> SubmitOrder([FromBody] Order order)
        {
            order.AccountId = this.User.Identity.Name;
            logger.LogInformation("Submitting order: {0}", order);
            await AccountGrain.SubmitOrder(order);

            logger.LogInformation("Order submitted: {0}", order);
            return(order);
        }
Пример #2
0
 public async Task <IEnumerable <Position> > GetPostitions()
 {
     return(await AccountGrain.GetPositions());
 }
Пример #3
0
 public async Task DeleteOrder(Guid orderId)
 {
     await AccountGrain.CancelOrder(orderId);
 }
Пример #4
0
 public async Task <IEnumerable <Order> > GetOrders()
 {
     return(await AccountGrain.GetOpenOrders());
 }