# Deribit

{% embed url="<https://www.youtube.com/watch?ab_channel=treadfi&v=pQwKpKdWb-I>" %}

### Create sub-account

#### Navigate to Subaccounts

* Once you’re logged in, navigate to your profile icon in the top-right corner.
* Click ”Subaccounts” from the dropdown menu.

#### Create a New Subaccount

* On the Subaccounts page, click ”Add a New Subaccount”.

#### Edit a New Subaccount

* Find the newly created subaccount. Next to the subaccount details, click on the pencil icon.

#### Separate login details for subaccounts

* Add email address/change name of the account/allows separate login/set a password/email address notifications and margin warnings/set up two factor authentication for the subaccount.

### Create API key for sub-account

#### Access API Management

* On the API Management screen, click "ADD NEW KEY".

#### Configure API Key Settings

* Set Account to `read`
* Set Trade to `read_write`
* Enter the IP address of the TaaS server to restrict API access using this key to requests coming from its address: `54.238.80.239`
* Once done, click "Create a new API key".

<figure><img src="/files/78X2JxndBZrRfGQ0OhkP" alt=""><figcaption></figcaption></figure>

### Linking API Key to tread.fi&#x20;

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

* Open up tread's Key Management menu. From the app.tread.fi home page, it can be accessed by clicking on the wallet icon on the top right.
* Click Connect CEX Account
* Select Deribit from the Exchange dropdown
* Set a name for this key for your own reference.
* Copy and Paste the API Key and Secret from Deribit  into the respective boxes.
* Click submit.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcxPKL5LuLWoy8DhaDHamKZHxvlg_XxfPWItdQAsszl7-i0PaGiYD1VCKxBeewjJBQUxbITppwpIrG5JuE6TM_I9P4BPOEM7eijX6gi6DPdUrhHYBW1QDER5NuRZEBfkap2GxjrOICcVywn-NCJS7Oe01XN?key=0Y_t4MkkxDXunkOK3-fvXw" alt=""><figcaption></figcaption></figure>

<br>


---

# 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.tread.fi/account-creation-and-api-key-connection/connecting-to-exchanges/deribit.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.
