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); }
public async Task <IEnumerable <Position> > GetPostitions() { return(await AccountGrain.GetPositions()); }
public async Task DeleteOrder(Guid orderId) { await AccountGrain.CancelOrder(orderId); }
public async Task <IEnumerable <Order> > GetOrders() { return(await AccountGrain.GetOpenOrders()); }