Exemplo n.º 1
0
        public async Task Sell()
        {
            try
            {
                _isSelling = true;

                if (await _api.DirectSell(new Trade()
                {
                    Uuid = this.Uuid
                }))
                {
                    await UserDialogs.Instance.AlertAsync("Sell order placed. Should be processed soon.", "Great success", "OK");

                    await CoreMethods.PopPageModel();
                }
                else
                {
                    await UserDialogs.Instance.AlertAsync("Couldn't quick sell. Try again later.", "Sorry", "OK");
                }
            }
            catch (Exception xe)
            {
                await UserDialogs.Instance.AlertAsync("Couldn't quick sell. Try again later.", "Sorry", "OK");

                _isSelling = false;
            }
        }