private void Button_Cancel(object sender, RoutedEventArgs e)
        {
            if (this.login == null || this.orderId == null)
            {
                return;
            }

            OrderId response = Kite.Delete <OrderId>(apiKey, login.access_token, Url.PlaceOrder(orderId: this.orderId.order_id), logger: this);

            Log($"cancel: {response?.order_id}");
        }
        private void OnConnectionState(SocketStateEventArgs obj)
        {
            if (obj.KiteConnectState == KiteConnectState.Connected)
            {
                this.ConnectStr = "Disconnect";
            }
            else if (obj.KiteConnectState == KiteConnectState.Disconnected)
            {
                string isLogout = Kite.Delete <string>(apiKey, login?.access_token, Url.Token(apiKey: apiKey, accessToken: login?.access_token), logger: this);
                Log($"logout = {isLogout}");

                this.ConnectStr = "Connect";
            }
            Log(obj.KiteConnectState.ToString());
        }