# Đăng nhập tài khoản

**Quản lý phiên đăng nhập**

<br>

| Tham số  | Mô tả                        |
| -------- | ---------------------------- |
| username | Tên đăng nhập của người dùng |
| password | Mật khẩu của người dùng      |

**Phương thức**

| Tên phương thức                               | Mã lỗi | Mô tả                                    |
| --------------------------------------------- | ------ | ---------------------------------------- |
| User does not exist (Tài khoản không tồn tại) | 400    | <p>Người dùng nhập sai username.<br></p> |
| Incorrect password (Mật khẩu không đúng)      | 400    | Người dùng nhập sai password.            |

Truy cập phiên đăng nhập

<pre class="language-python"><code class="lang-python"><strong>from FiinQuantX import FiinSession
</strong>

username = 'REPLACE_WITH_YOUR_USER_NAME'
password = 'REPLACE_WITH_YOUR_PASS_WORD'

client = FiinSession(
    username=username,
    password=password,
).login()
</code></pre>


---

# 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://docs.fiinquant.vn/tai-lieu-ki-thuat/dang-nhap-tai-khoan.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.
