# Importing derivatives transactions

This page illustrates how to import crytocurrency derivatives data from exchanges, including contract's position opening and closing, options buying and selling, as well as PnL related to these transactions.&#x20;

## **For Exchanges that provide API for Derivatives data**

1. Adding Exchange Account: When adding an account, select the data range you wish to include
2. Data Sync: After saving the settings, Elven will automatically sync derivatives trading data such as USD-margined contracts, coin-margined contracts, and options via API

## **For Exchanges that not provide API for Derivatives data**

You can import the derivatives trading data via CSV files.

1. Download CSV template: Obtain the template and transform your data into the specified format.
2. Upload CSV file: After transforming the data into the template's format, upload the file to import the trading data.

## **Viewing Trading data**

From the project homepage, enter the **Transactions** page to view the imported derivatives trading data.

1. **Transfer tab:** Records the financial flows related to derivatives, such as funding fees and transaction fees.
2. **Trade tab:** Displays derivatives trading data, including contract openings, closings, and buying, selling.
3. **Gain/Loss tab:** Shows the profits and losses from derivatives.

<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/acount-management/importing-transactions/importing-derivatives-transactions.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.
