# Gemini

{% hint style="info" %}
Connect your Gemini data to Integral using a read-only API key. Create your API key in Gemini [here](https://exchange.gemini.com/settings/api). Add your new Gemini API key to Integral [here](https://app.integraltreasury.xyz/accounts/add/gemini).&#x20;
{% endhint %}

### Step 1: Create a read-only API key in Gemini

1. Log into your Gemini account
2. In the top-right corner, click on Account > [Settings](https://exchange.gemini.com/settings/profile)
3. In the Settings page, find ["API"](https://exchange.gemini.com/settings/api) in the menu bar on the left side
4. Click on Create API Key

<figure><img src="https://3061199926-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft1fkaxq4yvhcAFiQKv7R%2Fuploads%2FdinQ99vvaNBupTAveDhS%2FScreen%20Shot%202023-06-14%20at%201.20.25%20PM.png?alt=media&#x26;token=26cc6728-807d-4c3b-9ccc-40b0cfffd2f6" alt=""><figcaption><p>Click on "Create API Key" from the Accounts > Settings > API page</p></figcaption></figure>

### Step 2: Configure your API key permissions to read-only&#x20;

1. Click on "Create API Key"
2. Select "Primary" in the scope. This reduces the permissions given to Integral and constrains to read-only.
3. Give your API key a name you can recognize, for example "Integral Gemini read-only"
4. :warning:**Copy and store your API Key and API Secret in a secure place, as you will not be able to access these again.** Do not share these over email, text message, or any non-secure communication channels.&#x20;
5. Select "Auditor" **only** in the settings below.
6. Double check you have copied and stored your API key information, and check the confirmation box.&#x20;
7. Click on "Create API Key".
8. Your API key will appear in the main API Settings page. You can manage the API key from here (rename, delete).&#x20;

<figure><img src="https://3061199926-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft1fkaxq4yvhcAFiQKv7R%2Fuploads%2FxVtww1VRwbyUFn73Q36o%2FScreen%20Shot%202023-06-14%20at%201.24.07%20PM.png?alt=media&#x26;token=03c21013-4ad3-4a53-a5d4-8357e33367de" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3061199926-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft1fkaxq4yvhcAFiQKv7R%2Fuploads%2FvKevZ03n7t8rB8LOBZ7E%2FScreen%20Shot%202023-06-14%20at%201.24.22%20PM.png?alt=media&#x26;token=5efdbe71-44a7-4cce-a9d0-437982aabed5" alt=""><figcaption><p>Copy your API Key and API Secret (hidden in screenshot), and store in a secure place</p></figcaption></figure>

<figure><img src="https://3061199926-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft1fkaxq4yvhcAFiQKv7R%2Fuploads%2FyN9c6rWQorliQIbjoPxT%2FScreen%20Shot%202023-06-14%20at%201.24.54%20PM.png?alt=media&#x26;token=88c77351-8954-4ad8-a72e-77a10c65b36f" alt=""><figcaption><p>Select the "Auditor" settings to give Integral read-only permissions</p></figcaption></figure>

### Step 3: Add your Gemini account to Integral

* Log into Integral
* In the side panel, navigate to [Wallets](https://app.integraltreasury.xyz/wallets) > `+Wallet`
* Search for Gemini and click on the corresponding icon ([link](https://app.integraltreasury.xyz/accounts/add/gemini))
* Paste in your API key and API Passphrase

{% hint style="warning" %}
Ensure to include "Account-" from the beginning of your API key
{% endhint %}

* Click "Sync"
* It may take a few minutes for all your transactions to load into Integral. You can see transactions trickle in from the [Bookkeeping](https://app.integraltreasury.xyz/accounting?category=for-review\&page=1) page.
* Transactions are done loading when your Unrealized Gain/Loss and Transaction Count appear in the Treasury page.

<figure><img src="https://3061199926-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft1fkaxq4yvhcAFiQKv7R%2Fuploads%2FxbNXy0Dz0qlqAhLdzvEV%2FGemini_Keys.gif?alt=media&#x26;token=f72c9627-f98c-4f13-b821-763d8935094d" alt=""><figcaption></figcaption></figure>
