# Các câu lệnh API để đặt lệnh qua Ami X

<figure><img src="/files/XgSzlYoc7uZdghjjvyHL" alt=""><figcaption></figcaption></figure>

Hiện tại DNSE cung cấp dịch vụ API cho toàn bộ khách hàng có tài khoản chứng khoán: Khách hàng có thể lấy dữ liệu giá chứng khoán (Market data) từ DNSE và đặt lệnh giao dịch chứng khoán qua cổng API (Trading API) do DNSE cung cấp​.&#x20;

Đăng ký tại: <https://hdsd.dnse.com.vn/san-pham-dich-vu/api-lightspeed/i.-huong-dan-dang-ky>

Để đặt lệnh tự động từ Amibroker tới tài khoản chứng khoán tại DNSE qua phần mềm Ami X, bạn cần thêm những câu lệnh gọi API vào trong code AFL của mình.

1. [Hướng dẫn chi tiết các câu lệnh](https://hdsd.dnse.com.vn/san-pham-dich-vu/ami-x/cac-cau-lenh-api-de-dat-lenh-qua-ami-x/1.-huong-dan-chi-tiet-cac-cau-lenh)
2. [Các cài đặt liên quan trong Ami X](https://hdsd.dnse.com.vn/san-pham-dich-vu/ami-x/cac-cau-lenh-api-de-dat-lenh-qua-ami-x/2.-cac-set-up-lien-quan-trong-ami-x)
3. [Tặng 100 Bot có đầy đủ câu lệnh API của Ami X](https://hdsd.dnse.com.vn/san-pham-dich-vu/ami-x/cac-cau-lenh-api-de-dat-lenh-qua-ami-x/3.-tang-bot-full-code-kem-cau-lenh-api)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hdsd.dnse.com.vn/san-pham-dich-vu/ami-x/cac-cau-lenh-api-de-dat-lenh-qua-ami-x.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
