> ## Documentation Index
> Fetch the complete documentation index at: https://flashapi.phs.vn/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Phụ lục

## 12.1 Bảng tra cứu nhanh toàn bộ API

| **API**                                     | **Phương thức** | **Đường dẫn (thêm vào sau base URL)**           |
| :------------------------------------------ | :-------------- | :---------------------------------------------- |
| A1. Lấy dữ liệu mới nhất theo mã            | GET             | /priceboard/symbol-latest-data                  |
| A2. Lấy dữ liệu thống kê khớp lệnh theo mã  | GET             | /priceboard/symbol-statics-data                 |
| A3. Lấy dữ liệu khớp lệnh theo mã           | GET             | /priceboard/symbol-matching-data                |
| A4. Lấy danh sách toàn bộ mã chứng khoán    | GET             | /priceboard/all-stocks                          |
| A5. Lấy dữ liệu nến (candlestick)           | GET             | /priceboard/candlestick-data                    |
| B1. Xác thực — Cơ sở                        | POST            | /auth/gen-secret-key/underlying                 |
| B2. Xác thực — Phái sinh                    | POST            | /auth/gen-secret-key/derivative                 |
| C1. Đặt lệnh (Cơ sở)                        | POST            | /accounts/:accountId/orders/underlying          |
| C2. Sửa lệnh (Cơ sở)                        | PUT             | /accounts/:accountId/orders/underlying/:orderId |
| C3. Hủy lệnh (Cơ sở)                        | DELETE          | /accounts/:accountId/orders/underlying/:orderId |
| C4. Lấy sức mua Cơ sở                       | GET             | /accounts/:accountId/underlying/buyingPower     |
| D1. Đặt lệnh (Phái sinh)                    | POST            | /accounts/:accountId/orders/derivative          |
| D2. Sửa lệnh (Phái sinh)                    | PUT             | /accounts/:accountId/orders/derivative/:orderId |
| D3. Hủy lệnh (Phái sinh)                    | DELETE          | /accounts/:accountId/orders/derivative/:orderId |
| D4. Lấy sức mua Phái sinh                   | GET             | /accounts/:accountId/derivative/buyingPower     |
| E1. Danh mục (Cơ sở)                        | GET             | /accounts/:accountId/underlying/portfolio       |
| E2. Lệnh trong ngày (Cơ sở)                 | GET             | /accounts/:accountId/underlying/dailyOrder      |
| E3. Báo cáo lệnh (Cơ sở)                    | GET             | /accounts/:accountId/underlying/orderReport     |
| E4. Số dư / Tài sản (Cơ sở)                 | GET             | /accounts/:accountId/underlying/assets          |
| F1. Vị thế đang mở (Phái sinh)              | GET             | /accounts/:accountId/derivative/openPositions   |
| F2. Vị thế đã đóng (Phái sinh)              | GET             | /accounts/:accountId/derivative/closedPositions |
| F3. Lệnh trong ngày (Phái sinh)             | GET             | /accounts/:accountId/derivative/dailyOrder      |
| F4. Báo cáo lệnh / Lịch sử lệnh (Phái sinh) | GET             | /accounts/:accountId/derivative/orderHistory    |
| F5. Số dư / Tài sản (Phái sinh)             | GET             | /accounts/:accountId/derivative/assets          |

## 12.2 Biến môi trường Postman

| **Biến**            | **Giá trị ví dụ**                                                            | **Được thiết lập bởi**                       |
| :------------------ | :--------------------------------------------------------------------------- | :------------------------------------------- |
| base\_url           | [https://flashapi.phs.vn/sandbox/oapi](https://flashapi.phs.vn/sandbox/oapi) | Bạn (đã điền sẵn trong environment đính kèm) |
| username / password | tài khoản demo Sandbox của bạn                                               | Bạn                                          |
| access\_token       | (tự động điền)                                                               | Test script của request Xác thực             |
| otp\_token          | (tự động điền)                                                               | Test script của request Xác thực             |
| account\_id         | mã tài khoản test Sandbox của bạn                                            | Bạn                                          |
| order\_id           | (tự động điền từ phản hồi Đặt lệnh)                                          | Test script của request Đặt lệnh             |
