> For the complete documentation index, see [llms.txt](https://hdsd.dnse.com.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hdsd.dnse.com.vn/san-pham-dich-vu/ami-x/iii.-giao-dich-tu-dong-api/1.-cai-dat-xac-thuc-lenh.md).

# 1. Cài đặt xác thực lệnh

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeF_Xue8adHyvZVoBEH1LpWrxFdYI389kYR11mu3O3IwK-VKZUyQqD_LDyjejXtU1YThoH_nWz2jeoN1C5xhlx7bWIdRsc9LJevBFP7yxoxGUF4rJX18RvnaJB7aflO4ABg-dPfHkRgMeqNrlPBd7SnRiGF?key=cPUVtDEL9UPu0gPsYuXEhw" alt=""><figcaption></figcaption></figure>

* Vào tab Cài đặt giao dịch trên Ami X.
* Để có thể đặt lệnh tự động trên tài khoản chứng khoán tại DNSE, cần Cài đặt xác thực đặt lệnh qua OTP. Có thể lấy OTP từ:&#x20;

&#x20;      \- Smart OTP: nhập thủ công OTP từ app EntradeX.

&#x20;      \- Email OTP:&#x20;

&#x20;      \+ Bạn cần đăng ký với DNSE để sử dụng tính năng này. Link đăng ký: <https://hdsd.dnse.com.vn/san-pham-dich-vu/api-lightspeed/i.-huong-dan-dang-ky>&#x20;

&#x20;      \+ Xem Video hướng dẫn cài đặt lấy OTP tự động qua Gmail: <https://www.youtube.com/watch?v=Hxih-ciQXaw&t>&#x20;

Lưu *ý: Thời gian hiệu lực của OTP là 8 tiếng.*
