# 导入衍生品交易

{% hint style="info" %}
支持用户从交易所导入加密货币衍生品数据，涵盖合约的开仓、平仓，期权的买卖，以及与这些交易相关的收益和损失，从而为基于衍生品交易的记账提供必要的数据支持。
{% endhint %}

## **对于支持 API 获取衍生品的交易所**

1. **添加交易所账户**：在添加账户时选择所需导入的数据范围。
2. **数据同步**：保存设置后，系统将通过 API 自动同步 U 本位合约、币本位合约、期权等衍生品交易数据。

<figure><img src="/files/9mMxhhdusFiabO1R5ELR" alt=""><figcaption></figcaption></figure>

## **对于不支持 API 获取衍生品的交易所**

可以通过导入 CSV 文件的方式导入衍生品交易。

1. **下载模板**：获取衍生品交易模板并按照指定格式处理数据。
2. **上传 CSV 文件**：完成数据处理后上传文件即可导入交易数据。

<figure><img src="/files/9GItXVrODpwUWGkegJsx" alt=""><figcaption></figcaption></figure>

## **查看交易数据**

进入交易管理页面查看已导入的衍生品交易数据。

1. **Transfer 页面**：记录关于衍生品的资金费、手续费等流水数据。

   <figure><img src="/files/uJi2OHFNPMl51ryyp7ef" alt=""><figcaption></figcaption></figure>
2. **Trade 页面**：显示衍生品的开仓、平仓、买卖等交易数据。

   <figure><img src="/files/C5Wz371egwGEM44vg1R2" alt=""><figcaption></figcaption></figure>
3. **Gain/Loss 页面**：展示衍生品的收益和损失数据。

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

<figure><img src="https://elvencom.feishu.cn/space/api/box/stream/download/asynccode/?code=ZDIxZDU4MDdhMjBlYmMxZmM0NDRiZDJkZTAzMzkyMDRfanBwOVlFYmFSOVZ2NHp3c29UMzNxM2FEcHBpMzVLWGFfVG9rZW46VzNsamJpVTM4b0drSHF4dzlJRGM0bFFDbnByXzE3MjQ5Mjg4NDc6MTcyNDkzMjQ0N19WNA" alt=""><figcaption></figcaption></figure>


---

# 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.elven.com/v3/chinese/accounts-management/dao-ru-jiao-yi-shu-ju/dao-ru-yan-sheng-pin-jiao-yi.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.
