# How To Use Bitquery With OpenBB Terminal

**URL:** https://community.bitquery.io/t/how-to-use-bitquery-with-openbb-terminal/1149
**Category:** GraphQL Tutorials
**Tags:** tutorial
**Created:** [August 1, 2022, 6:23pm UTC](https://community.bitquery.io/t/how-to-use-bitquery-with-openbb-terminal/1149 "2022-08-01T18:23:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bitquery-support](https://avatars.discourse-cdn.com/v4/letter/b/71c47a/32.png) [@bitquery-support](https://community.bitquery.io/u/bitquery-support)
#### Post date: [August 1, 2022, 6:23pm UTC](https://community.bitquery.io/t/how-to-use-bitquery-with-openbb-terminal/1149/1 "2022-08-01T18:23:41Z")

</div>

# How To Use Bitquery With OpenBB Terminal

 ![bitquery-openbb-logo](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/714d8693590a167cfa910bf2d755973a351f3a5b.jpeg)

> **Table of Contents**
>
> 1. [Sign Up on Bitquery](#how-to-sign-up-on-bitquery) 
> 2. [Get a Bitquery API Key](#how-to-get-a-bitquery-api-key)
> 3. [What is OpenBB Terminal](#what-is-openbb-terminal)
> 4. [How to Install OpenBB Terminal](#how-to-install-openbb-terminal)
> 5. [Setup Bitquery on OpenBB Terminal](#setup-bitquery-on-openbb-terminal)
> 6. [References](#references)

## How to Sign up On Bitquery

_If you already have a Bitquery account, you can skip this step._

To create an account you will have to go to [Bitquery IDE](https://graphql.bitquery.io/) and click on the `Do not have account? button. Sign Up`, once you have clicked the button you will have to fill in all the required fields, then you will solve the Captcha and click `Sign Up`.

> **Spoiler**
>
> ![sign-up](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/71e2067941a3a8e20bd7c520433a7044bb5f2b28.jpeg)
> 
> ![sign-in-fields](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/e8e5583724787ed7edfdd21a2291005e7dedb913.jpeg)

## How to Get a Bitquery API Key

To get the API Key you just need to click on your account logo (next to your e-mail) and then click on `API Key`.

If you want to regenerate your API Key just press the `Re-generate key` button, note that all applications using that Key will stop working.

_Try not to give your API Key to anyone!_

> **Spoiler**
>
> ![account](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/546edc9c63fcd41d47dabb619566c783fc9b898d.jpeg)
> 
> ![api-key-button](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/03306eccba77568c081ba657fbef86f7a77a2bdd.jpeg)
> 
> ![api-box](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/d14995540db52a04decf7aa462abc7d107958d22.jpeg)

## What is OpenBB Terminal

> ![openbb-page](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/5ed854ffa7557804dd27518f740688927ae69427.jpeg)  
> OpenBB Terminal provides a modern Python-based integrated environment for investment research, that allows an average joe retail trader to leverage state-of-the-art Data Science and Machine Learning technologies.

In a nutshell OpenBB Terminal is an open source alternative to Bloomberg-Terminal, this application will help us in the crypto and stock market.  
Thanks to Bitquery we will give a boost up to OpenBB, with which we will be able to use certain commands that will be very useful to obtain information at onchain level in cryptocurrencies.

## How to Install OpenBB Terminal

To install OpenBB Terminal it will depend on your operating system.

#### macOS and Windows

For macOS and Windows we can go directly to the [official page](https://www.openbb.co/products/terminal) or [github releases](https://github.com/OpenBB-finance/OpenBBTerminal/releases/tag/v1.6.0).

#### Linux

Requirements:

- Python 3.8 or 3.9
- [Anaconda](https://docs.anaconda.com/anaconda/install/index.html)
- Preferably a debian based linux

For linux you can follow these steps:

```auto
conda install -c anaconda git # Install git
sudo apt update
sudo apt install -y cmake gcc # Install cmake and gcc
pip install cmake
git clone https://github.com/OpenBB-finance/OpenBBTerminal.git # Clone the repository
cd OpenBBTerminal/ 
conda env create -n obb --file build/conda/conda-3-9-env.yaml # You can change the environment name for whatever you want, in this case, obb
conda activate obb # Activate the environment 
pip install -r requirements.txt # Install the dependencies
python terminal.py # Run the App!

```

Remember that sometimes depending on what python is installed it could be `python`, `python3`, `python3.8`, `py`, etc, as well as pip could be `pip`, `pip3` or `pip3.8`. That will depend on the distribution and how you have installed python.

> ![openbb-terminal-1](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/b39aef9d0bac543497e0635681ab4906b67c5bf9.png)  
> This is the menu that will appear when you run it

## Setup Bitquery on OpenBB Terminal

To use Bitquery in OpenBB Terminal we will have to define our API Key. To define it we will execute the command `keys` and then `bitquery <API-KEY>`. Note that it is without the “\<” and “\>”.

> ![setting-api](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/a2de0a8b90c2d5d82335d7ad7c944ebd1dab31f4.jpeg)  
> It is important that when the command is executed the output says `defined, test passed`.

We have correctly defined our API Key, now we will be able to use commands that require bitquery.

The syntax of OpenBB Terminal is very similar to that of ordinary terminals, you can navigate through the menus with the arrow keys as well as execute commands with `ENTER`.

Some of the most important commands are:

`cls`: allows us to clear the screen/terminal.

`help`, `h`, or `?`: will allow us to show information about the menu we are in.

`quit`, `q`, or `..`: will allow us to go back to the previous menu (similar to `cd ..` on terminals)

`about <topic>`: will redirect you to the official page for more information.

### Useful Commands that Require Bitquery

To get to the section where the Bitquery commands are we will go to the path /crypto/onchain/. If you have just opened OpenBB Terminal you will have to type `crypto` and then `onchain`. Once in the path we can type `help` to review some of the commands that can be done with Bitquery.

 ![bitquery-commands](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/bab0bf2f19352aaa30e82dd333a3eda705fb5057.png)

## References

If you have any specific problem with the installation or with bitquery, maybe these links will help you:

[OpenBB Official Page](https://openbb.co/)

[Official OpenBB Terminal repository](https://github.com/OpenBB-finance/OpenBBTerminal)

[OpenBB on Discord](https://discord.gg/Up2QGbMKHY)

[Bitquery Official Page](https://bitquery.io/)

[Bitquery Forum](https://community.bitquery.io/)

[Bitquery on Telegram](https://t.me/Bloxy_info)

---

<div class="post-metadata">

### Author: ![Divya](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@Divya](https://community.bitquery.io/u/Divya)
#### Post date: [June 15, 2023, 10:59am UTC](https://community.bitquery.io/t/how-to-use-bitquery-with-openbb-terminal/1149/2 "2023-06-15T10:59:28Z")

</div>

Here’s the video tutorial for the same.

[![](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/f06c26a7ff8ae173509341c898e7054058f00508.jpeg "How to get Blockchain data via OpenBB Terminal") ](https://www.youtube.com/watch?v=VB1ZP-a3igQ)
