# Introduction & Installation

### Introduction

**Orion Terminal CLI** is a FREE command line interface trading environment that lets traders add speed, precision, and automation to their trading through a low-code environment, no matter the trading style.

**Key Features**

* 3 Exchanges (7+ Planned) 🆕
* Auto-TP 🔥
* Customizable Hotkeys 🔥
* Aliases & Triggers 🔥
* Auto-Complete and Auto-Suggest
* Pre-Built Commands
* Color-Coded Interface
* Synthetic Markets 🔜
* Pair Trading 🔜
* GUI Algo Builder  🔜
* Partner Integrations (Webhook, Tradingview, etc) 🔜

### Installation & Setup

1. Download Orion Terminal:\
   &#x20;    \- [Windows](/introduction-and-installation/windows-installation)\
   &#x20;    \- [Mac](/introduction-and-installation/macos-installation)\
   &#x20;    \- [Linux](/introduction-and-installation/linux-installation)
2. Run the Terminal
3. Type `login <exchange>`
4. As of version 0.71b, Orion Terminal works with 3 exchanges: **Bybit**, **Bitget (BETA)**, and **Binance**. You will need API Keys for each of the exchanges you want to use:
   * For Binance, generate your API keys [here](https://www.binance.com/en/my/settings/api-management).
   * [For Bitget (BETA), please follow the instructions here.](/introduction-and-installation/bitget-beta-account-and-api-key-creation)
   * [For Bybit, please follow the instructions here.](/introduction-and-installation/bybit-account-and-api-key-creation)
5. Get started with [Commands Overview & Examples](/commands-overview-and-examples)


# Windows Installation

{% hint style="info" %}
[**Download Orion Terminal here**](https://github.com/orionterminal/orion-windows/releases/download/v0.71f/orionterminal-v0.71f.exe)
{% endhint %}

Next steps:

* Type `login <exchange>`
* As of version 0.71c, Orion Terminal works with 3 exchanges: **Bybit**, **Bitget (BETA)**, and **Binance**. You will need API Keys for each of the exchanges you want to use:
  * For Binance, generate your API keys [here](https://www.binance.com/en/my/settings/api-management).
  * [For Bitget (BETA), please follow the instructions here.](/introduction-and-installation/bitget-beta-account-and-api-key-creation)
  * [For Bybit, please follow the instructions here.](/introduction-and-installation/bybit-account-and-api-key-creation)
* Get started with [Commands Overview & Examples](/commands-overview-and-examples)


# macOS Installation

{% hint style="info" %}
[**Download Orion Terminal here**](https://github.com/orionterminal/orion-macos/releases/download/1.0.1/Orion.Terminal.app.zip)
{% endhint %}

**1. Double-click "Orion.Terminal.app.zip"**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/52f32f5b-56f9-4cec-a414-2bf3fd59c00e/user_cropped_screenshot.jpeg?tl_px=1066,0\&br_px=2559,840\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=482,35)

**2. Double-click "Orion Terminal"**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/d81fd695-4ba8-424a-9e40-08e492d0ee57/ascreenshot.jpeg?tl_px=1066,0\&br_px=2559,840\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=487,131)

{% hint style="info" %}
**Tip: macOS will complain about malicious software, we are working on getting our Code Signing Certificates in place to prevent this in the future.**&#x20;
{% endhint %}

**3. Click&#x20;***<mark style="color:purple;">**OK**</mark>*

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/836b24bb-8829-4806-9d02-d7842b0e2e29/user_cropped_screenshot.jpeg?tl_px=659,406\&br_px=2152,1246\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**4. Navigate to System Preferences -> Privacy & Security.**

**5. Scroll down until you get to the "Security" section. Click on&#x20;***<mark style="color:purple;">**Open Anyway**</mark>***.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/20da4940-3785-48a3-8c0f-7522bb46cf43/user_cropped_screenshot.jpeg?tl_px=1066,446\&br_px=2559,1286\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=277,139)

**6. macOS will say it can't be opened, click&#x20;***<mark style="color:purple;">**Open**</mark>***&#x20;to silence this warning.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/d1fe1d7c-122f-4682-a962-dbedaf9cb558/user_cropped_screenshot.jpeg?tl_px=531,350\&br_px=2024,1190\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**7. Keep the Privacy & Security window open (we'll need it again shortly), now Right Click on "Orion Terminal".**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/15dab604-9c78-47c7-87a4-c65f2e5a98a2/user_cropped_screenshot.jpeg?tl_px=1066,0\&br_px=2559,840\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=484,130)

**8. Click "Show Package Contents"**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/87312c88-1f98-46c6-8a5e-69eeb0fa8a5b/user_cropped_screenshot.jpeg?tl_px=1066,32\&br_px=2559,872\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=460,139)

**9. Click on "Contents"**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/893fc3f7-8ed0-44d2-a90c-47a12a118c15/user_cropped_screenshot.jpeg?tl_px=222,0\&br_px=1715,840\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,108)

**10. Click on "Resources"**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/4e483d2c-93ef-45be-a49b-d483ff24f079/user_cropped_screenshot.jpeg?tl_px=536,98\&br_px=2029,938\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**11. Double-click on "cli"**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/7700c428-20ea-479c-ac1c-fa5769f00a66/user_cropped_screenshot.jpeg?tl_px=760,0\&br_px=2253,840\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,112)

**12. Once you see the green text "**<mark style="color:green;">**Connected to backend**</mark>**" Orion Terminal is working. However you will notice the warning regarding Input event monitoring, lets fix that. Navigate back to System Preferences -> Privacy and Security.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/8a648142-5e46-407c-89f5-cbb88dd5c9aa/user_cropped_screenshot.jpeg?tl_px=380,94\&br_px=1873,934\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**13. Click the Accessibility button**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/3e6e4efa-7066-4b08-b638-cc32fcce0988/user_cropped_screenshot.jpeg?tl_px=693,303\&br_px=2186,1143\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**14. Toggle the switch on "Terminal".**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/73fcc3b5-fe5d-4152-88b1-c53a1e055f8f/user_cropped_screenshot.jpeg?tl_px=1066,319\&br_px=2559,1159\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=291,139)

**15. Now navigate back to the "cli" file and Right Click**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/8031c36d-8dc6-4349-aace-fb1deca05863/user_cropped_screenshot.jpeg?tl_px=643,0\&br_px=2136,840\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,115)

**16. Click "Make Alias"**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/391dafc4-deea-48ef-847f-89d8fb8c20e1/user_cropped_screenshot.jpeg?tl_px=797,299\&br_px=2290,1139\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**17. Type "Orion\_Terminal \[\[Enter]]"**

**18. This alias will point to the cli, so you can store it in your favorites or Applications. Happy Trading!**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/ada6df2d-dc64-460e-8d64-ce5265b10731/user_cropped_screenshot.jpeg?tl_px=578,9\&br_px=2071,849\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

Next steps:

* Type `login <exchange>`
* As of version 0.71b, Orion Terminal works with 3 exchanges: **Bybit**, **Bitget (BETA)**, and **Binance**. You will need API Keys for each of the exchanges you want to use:
  * For Binance, generate your API keys [here](https://www.binance.com/en/my/settings/api-management).
  * [For Bitget (BETA), please follow the instructions here.](/introduction-and-installation/bitget-beta-account-and-api-key-creation)
  * [For Bybit, please follow the instructions here.](/introduction-and-installation/bybit-account-and-api-key-creation)
* Get started with [Commands Overview & Examples](/commands-overview-and-examples)


# Linux Installation

{% hint style="info" %}
[**Download Orion Terminal here**](https://github.com/orionterminal/orion-linux/archive/refs/tags/0.71b.zip)
{% endhint %}

1\. Open a terminal and run `chmod +x orionterminal-v0.63b.bin` to make it executable

2\. Open it by clicking it or running `./orionterminal-v0.63b.bin`

Next steps:

* Type `login <exchange>`
* As of version 0.71b, Orion Terminal works with 3 exchanges: **Bybit**, **Bitget (BETA)**, and **Binance**. You will need API Keys for each of the exchanges you want to use:
  * For Binance, generate your API keys [here](https://www.binance.com/en/my/settings/api-management).
  * [For Bitget (BETA), please follow the instructions here.](/introduction-and-installation/bitget-beta-account-and-api-key-creation)
  * [For Bybit, please follow the instructions here.](/introduction-and-installation/bybit-account-and-api-key-creation)
* Get started with [Commands Overview & Examples](/commands-overview-and-examples)


# Bitget (BETA) Account and API Key Creation

> ### <mark style="color:red;">**In order to use Orion Terminal with Bitget, you must have an account that was created with the Orion referral code.**</mark> [**Register now.**](https://partner.bitget.com/bg/R60KYJ)

**1. After tapping on the Orion Terminal referral link, create an account with an email and password.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/306dadce-559c-4ac0-b4ff-40e84e2751ac/screenshot.jpeg?tl_px=745,144\&br_px=1491,564\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**2. Before tapping "Create Account" make sure the referral code is filled in.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/3db69665-198c-4060-be23-ecb8ec452710/screenshot.jpeg?tl_px=822,435\&br_px=1568,855\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**3. Solve the captcha to finish logging in.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/1ed474b7-9096-41eb-9374-1944ed8983f3/screenshot.jpeg?tl_px=461,451\&br_px=1207,871\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

{% hint style="info" %} <mark style="color:green;">**Tip: Bitget has an additional layer of security with email verification codes. When setting up your new account, you'll need to input a few email codes, we recommend having your email open so you can quickly copy and paste the codes during this process.**</mark>
{% endhint %}

**4. Put in your email verification and your account will be complete.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/ac21b99f-509e-46eb-bf04-2aaa7795f412/user_cropped_screenshot.jpeg?tl_px=674,136\&br_px=1420,556\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

{% hint style="info" %} <mark style="color:green;">**Tip: The next steps are for creating API Keys. In order to have API keys on your account, you need to setup Google 2FA. Once you have setup Google2FA on Bitget, continue on for setting up your API Keys.**</mark>
{% endhint %}

**5. If you haven't done so, follow the prompts for setting up Google 2FA.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/0a276e24-a125-4118-a3a8-ee25c1eb492e/screenshot.jpeg?tl_px=564,477\&br_px=1310,897\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**6. Once you are at the home page, tap here.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/4b7a40e1-8524-4fea-9a01-43ed26018fd1/screenshot.jpeg?tl_px=0,0\&br_px=746,420\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=117,66)

**7. Click "API"**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/848393c3-5273-4395-a536-b9ce112e4b94/screenshot.jpeg?tl_px=241,451\&br_px=987,871\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**8. Click "Create API keys"**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/85825e97-9e32-40f9-b6d6-91da4b68b4a9/screenshot.jpeg?tl_px=54,202\&br_px=800,622\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**9. Click "Create API key"**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/b13f056d-44cb-4474-8d6a-1592bcec5529/screenshot.jpeg?tl_px=1173,194\&br_px=1919,614\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=480,139)

**10. Tap "Notes" to add a label for this key (Orion Terminal is good)**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/6ae72aee-7ec8-4e93-9b00-cefbff46ad6d/screenshot.jpeg?tl_px=448,200\&br_px=1194,620\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**11. Tap the Passphrase field to input a passphrase that will be required when installing the keys. Just letters and numbers no symbols.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/0e4e61e5-573c-4227-b3e6-d40a13bcb8b3/screenshot.jpeg?tl_px=464,313\&br_px=1210,733\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**12. Click "Trade" in Permission Settings.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/b9d5e451-7763-480c-8ed4-46cab1cd82dd/user_cropped_screenshot.jpeg?tl_px=495,319\&br_px=1241,739\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**13. Click "Transfer" in Permission Settings**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/6d4c88a7-d575-4a56-9526-790f94e0e861/user_cropped_screenshot.jpeg?tl_px=586,316\&br_px=1332,736\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**14. Scroll down for next steps. You can optionally link IP addresses. Here you will have 60 seconds to request an email verification code and input it here along with your Google Authenticator code (Multiple monitors recommended here).**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/35702177-8b32-4cce-8997-d28492941f4c/user_cropped_screenshot.jpeg?tl_px=771,304\&br_px=1517,724\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**15. Press Next as soon as you input the Email Verification Code and your Google Authenticator verification code**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/b4f24550-8265-40cc-9016-b437b7f37036/user_cropped_screenshot.jpeg?tl_px=568,539\&br_px=1314,959\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,141)

**Tip: Once you create your keys, you will be presented a "Create Succeeded" popup. This is your only opportunity to copy your keys to somewhere safe or temporary place like a Note App. Once you close this popup, you won't be able to see the keys again.**

**16. Copy your APIKey to your Note App.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/a7c46050-e233-48e0-8bbe-972e740982da/user_cropped_screenshot.jpeg?tl_px=754,71\&br_px=1500,491\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**17. Copy your "SecretKey" to your Note App.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/585fdb90-5485-4ba3-9aa5-0f3960983949/user_cropped_screenshot.jpeg?tl_px=766,167\&br_px=1512,587\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

\*\*Alert: Make sure you copy the key and secret as once you push "Confirm" or close the popup, you won't see the keys again. \*\*

**Tip: If you loose access to your keys, you can always make a new pair.**

**18. Click "Confirm" to close the popup.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/5583d357-571e-4dcd-8380-5e684546da3f/user_cropped_screenshot.jpeg?tl_px=591,535\&br_px=1337,955\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,157)

**19. On Bitget's Page, navigate to the icon that looks like a person. You will see your user name which you will need for logging in to Orion Terminal**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/c2767ff7-ede1-4428-ba50-c37c174d6437/user_cropped_screenshot.jpeg?tl_px=586,268\&br_px=1332,688\&force_format=png\&width=560)

**20. Open Orion Terminal and type "login bitget" and press&#x20;**<mark style="color:orange;">**Enter**</mark>**.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/fe4d02b6-276c-4b16-99b6-6d6911a26262/user_cropped_screenshot.jpeg?tl_px=175,294\&br_px=921,714\&force_format=png\&width=560)

**21. Enter your account name**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/3fbfa514-e5e2-46d6-b349-88f7a0173d46/screenshot.jpeg?tl_px=0,433\&br_px=746,853\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=186,139)

**22. After entering your account name, you will have a prompt for "api\_key". Copy your api\_key and paste here and press&#x20;**<mark style="color:orange;">**Enter**</mark>**.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/a2ddb42c-8029-4eec-a02c-d12fc2395b92/user_cropped_screenshot.jpeg?tl_px=0,436\&br_px=746,856\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=86,139)

**23. After entering your api\_key, you will be prompted to enter your api\_secret, paste into the terminal and press&#x20;**<mark style="color:orange;">**Enter**</mark>**.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/aa58538d-11bf-49eb-b2a2-b24a75a7e487/user_cropped_screenshot.jpeg?tl_px=0,458\&br_px=746,878\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=158,139)

**24. Last, you'll be given a prompt for api\_passphrase, enter that into the terminal and press&#x20;**<mark style="color:orange;">**Enter**</mark>**.**

![](https://3361186594-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffw1zkMrok7fVuA4b3tKr%2Fuploads%2Fl2lFjFf6QJRmoWaxl88c%2FScreenshot%202023-06-16%20at%2010.19.41.png?alt=media\&token=68f7d59b-e286-4619-a98a-3d7fb27e48ef)

**25. You will see green text as confirmation you logged in to your Bitget account and your API keys were installed successfully.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/df60f3fb-f3ef-4079-b942-6fb830154b7a/user_cropped_screenshot.jpeg?tl_px=166,292\&br_px=912,712\&force_format=png\&width=560)


# Bybit Account and API Key Creation

> ### <mark style="color:red;">**In order to use Orion Terminal with Bybit, you must have an account that was created with the Orion referral code.**</mark> [**Register now**](https://partner.bybit.com/b/orionterminal)[**.**](https://partner.bybit.com/b/orionterminal)

**1. After you click on the link, you can create your account following these steps:**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/2a2cdbb8-6bc1-4bf7-8986-0eb3adee8195/screenshot.jpeg?tl_px=453,124\&br_px=1199,544\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**2. After putting your email and password in, double check that the referral code is added and tap on "Get My Welcome Gifts"**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/da9976b7-a5e9-4934-ab34-8cfd5ba84dda/screenshot.jpeg?tl_px=624,407\&br_px=1370,827\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**3. Solve the captcha upon logging in.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/f85f43ca-4e56-4b96-aa94-fdf7489a8441/screenshot.jpeg?tl_px=109,415\&br_px=855,835\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

{% hint style="info" %}
**Tip: The next steps are for creating API Keys. In order to have API keys on your account, you need to setup Google 2FA. Once you have setup Google2FA on Bybit, continue on for setting up your API Keys.**
{% endhint %}

**4. On The home screen, tap on your account and then tap on "API"**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/71956f62-781b-4187-8f43-f53942d62a8b/ascreenshot.jpeg?tl_px=1066,760\&br_px=2559,1600\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=346,191)

**5. Click "Create New Key"**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/9c075358-af0d-4ed8-9fec-944a8ab67912/screenshot.jpeg?tl_px=0,269\&br_px=746,689\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=189,139)

**6. Click "System-generated API Keys"**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/2ead3405-16c0-451d-8c5c-d41eec5ca5a4/screenshot.jpeg?tl_px=186,119\&br_px=932,539\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**7. Click "Connect to Third-Party Applications  "**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/6fd51392-165e-411f-9d42-4910750d9c1f/screenshot.jpeg?tl_px=0,143\&br_px=746,563\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=205,139)

**8. Click on "Application Name"**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/83f6414a-a91a-4d69-a8aa-b815f82c9a70/screenshot.jpeg?tl_px=0,368\&br_px=746,788\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=201,139)

**9. Type "Orion"  and press&#x20;**<mark style="color:orange;">**Enter**</mark>

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/a5673080-1ad6-4a7d-9021-fb35c1ecf7bb/screenshot.jpeg?tl_px=0,368\&br_px=746,788\&force_format=png\&width=560)

**10. Click "Read-Write "**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/e54faf74-a6d3-497f-a9ef-a00a3b83a675/screenshot.jpeg?tl_px=0,303\&br_px=746,723\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=104,139)

**11. Click the top box to select all types of actions.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/ef414b2c-6879-41ee-902d-116fb2e99088/screenshot.jpeg?tl_px=0,67\&br_px=746,487\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=219,139)

**12. Click "Submit"**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/0d9aea13-669e-4976-8cd5-c5c9ac143a2c/screenshot.jpeg?tl_px=0,559\&br_px=746,979\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=155,139)

**13. Enter your Google 2FA code**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/eea8718c-e450-4d33-a2c5-008843b1b6ce/screenshot.jpeg?tl_px=0,353\&br_px=746,773\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=255,139)

**14. Your new API Key and API Secret will be displayed, you will only see this screen once, so copy the Key And Secret as follows:**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/83f8c466-128c-4f11-9fe5-27dc298ca864/user_cropped_screenshot.jpeg?tl_px=586,330\&br_px=1332,750\&force_format=png\&width=560)

**15. Open any Note app (NotePad for windows, Apple Notes, etc...)**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/438ed5aa-2144-45bd-b1d6-69ffda9f2df7/screenshot.jpeg?tl_px=879,660\&br_px=1625,1080\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,292)

**16. Click to copy "API Key"**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/012a6fea-c649-4092-aec8-c00aff137d9b/user_cropped_screenshot.jpeg?tl_px=381,340\&br_px=1127,760\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**17. In your Note app, paste the key**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/e4d2eaf4-092f-499c-a059-5190edbbb16c/user_cropped_screenshot.jpeg?tl_px=31,0\&br_px=777,420\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,104)

**18. Now copy your "API Secret"**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/47f69b98-7df5-4c1b-9c49-7f9bebd76329/user_cropped_screenshot.jpeg?tl_px=383,443\&br_px=1129,863\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**19. Paste your API Secret in your Note App**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/da3d6d9f-cb06-43fb-8812-2c196f17045f/user_cropped_screenshot.jpeg?tl_px=365,0\&br_px=1111,420\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,120)

**20. Go to your Orion Terminal**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-15/28cc1a15-1501-4cc8-b47b-3fdd056508eb/screenshot.jpeg?tl_px=967,528\&br_px=1713,948\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=262,139)

**21. Type "login bybit" and press&#x20;**<mark style="color:orange;">**Enter**</mark>

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/ea69cfcb-ec72-45bc-907f-d7542a8d2ab1/user_cropped_screenshot.jpeg?tl_px=586,330\&br_px=1332,750\&force_format=png\&width=560)

**22. A prompt for "Account name" will appear -- type in your account name (typically your email you created your account with)**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/72002c13-a833-4278-be13-ed4ac7d82326/user_cropped_screenshot.jpeg?tl_px=12,330\&br_px=758,750\&force_format=png\&width=560)

**23. You will now have a prompt for "api\_key", copy your api key (making sure its only the numbers and letters, no quotes or other characters like "key") and paste into the terminal and press Enter.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/3ac64dfa-c206-460c-8ebc-2f2ec8968266/user_cropped_screenshot.jpeg?tl_px=0,531\&br_px=746,951\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=62,139)

> <mark style="color:red;">**Alert: Some versions of Windows power shell does not have CTRL + V as a binding for paste , which you can right click on the terminal window and that should paste your clipboard. macOS and Linux terminals do not have this issue.**</mark>

**24. After you paste your api key and press enter, a prompt for the "api\_secret" will appear. Copy your secret and paste into the terminal and press Enter.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/84c485a2-2beb-4b52-a1ab-7458f85b308e/user_cropped_screenshot.jpeg?tl_px=0,547\&br_px=746,967\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=102,139)

**25. You will see green text showing a successful login to the terminal and your API keys successfully installed.**

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2023-06-16/a56c1100-144f-4810-8185-d8a019b180fa/user_cropped_screenshot.jpeg?tl_px=0,0\&br_px=619,420\&force_format=png\&width=560\&wat_scale=50\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=152,66)


# Commands Overview & Examples

### Commands Overview

<table><thead><tr><th width="185">Command</th><th>Arguments</th><th>Description</th></tr></thead><tbody><tr><td><code>login</code></td><td>&#x3C;exchange></td><td>Logs in to an account on a exchange</td></tr><tr><td><code>account</code> OR <code>&#x3C;account></code> </td><td>&#x3C;account></td><td>Set the default account</td></tr><tr><td></td><td></td><td></td></tr><tr><td><code>symbol</code> OR <code>&#x3C;symbol></code></td><td>&#x3C;symbol></td><td>Set the default symbol, specifying it in a command will override this</td></tr><tr><td><code>size</code></td><td>&#x3C;size></td><td>Set the default size, specifying it in a command will override this</td></tr><tr><td><code>buy</code>, <code>sell</code></td><td>&#x3C;size> &#x3C;symbol | price> &#x3C;price | symbol></td><td>Buy or Sell at market or at specific price</td></tr><tr><td><code>close</code></td><td>&#x3C;symbol | size> &#x3C;symbol | price> &#x3C;price></td><td>Close a position or a portion of a position</td></tr><tr><td><code>cancel</code></td><td>&#x3C;order_type | symbol> &#x3C;symbol | start_price> &#x3C;stop_price></td><td>Cancel orders of a specific type, on a symbol or in a price range </td></tr><tr><td><code>stop</code></td><td>&#x3C;side | size> &#x3C;size | symbol | price> &#x3C;symbol | price> &#x3C;price></td><td>Create a new stop/trigger order</td></tr><tr><td><code>split</code></td><td>&#x3C;side> &#x3C;size> &#x3C;symbol | number> &#x3C;number | start> &#x3C;start | stop> &#x3C;stop></td><td>Splits buys/sells into a number of orders from start price to stop price</td></tr><tr><td><code>leverage</code></td><td>&#x3C;symbol | leverage> &#x3C;leverage | symbol></td><td>Change leverage for a symbol</td></tr><tr><td></td><td></td><td></td></tr><tr><td><code>orders</code></td><td>&#x3C;symbol: *></td><td>List all orders</td></tr><tr><td><code>positions</code></td><td>&#x3C;symbol: *></td><td>List all positions</td></tr><tr><td><code>balance</code></td><td></td><td>List all balances</td></tr><tr><td><code>wait</code></td><td>&#x3C;seconds></td><td>Wait for some time in seconds</td></tr><tr><td></td><td></td><td></td></tr><tr><td><code>autotp</code></td><td>&#x3C;orders> &#x3C;start_pct> &#x3C;stop_pct> &#x3C;symbol: *></td><td>Make a new autotp, this will place orders from start % to stop % when you enter a position</td></tr><tr><td><code>trigger</code></td><td>&#x3C;event> command*</td><td>Triggers a command on an event</td></tr><tr><td><code>triggers</code></td><td></td><td>List all triggers</td></tr><tr><td><code>bind</code></td><td>command*</td><td>Bind keys to a command</td></tr><tr><td><code>binds</code></td><td></td><td>List all keybinds</td></tr><tr><td><code>alias</code></td><td>&#x3C;alias> command*</td><td>Alias a specific command</td></tr><tr><td><code>aliases</code></td><td></td><td>List all aliases</td></tr><tr><td></td><td></td><td></td></tr><tr><td><code>enable</code></td><td>[autotp, keybinds]</td><td>Enable option</td></tr><tr><td><code>disable</code></td><td>[autotp, keybinds]</td><td>Disable option</td></tr><tr><td><code>toggle</code></td><td>[autotp, keybinds]</td><td>Toggle option</td></tr><tr><td></td><td></td><td></td></tr><tr><td><code>set</code></td><td>&#x3C;variable> &#x3C;value></td><td>Set a variable to a value</td></tr><tr><td><code>variables</code></td><td></td><td>List all variables and their values</td></tr><tr><td><code>del</code></td><td>&#x3C;variable | alias | bind | trigger></td><td>Deletes a variable, alias, bind or trigger</td></tr><tr><td></td><td></td><td></td></tr><tr><td><code>help</code></td><td></td><td>Displays all commands</td></tr><tr><td><code>clear</code></td><td></td><td>Clears the terminal</td></tr><tr><td><code>log</code></td><td>text*</td><td>Log text or variables</td></tr><tr><td></td><td></td><td></td></tr><tr><td><code>save</code></td><td>&#x3C;name></td><td>Save the current profile/session</td></tr><tr><td><code>load</code></td><td>&#x3C;name></td><td>Load a session from name</td></tr><tr><td><code>quit</code></td><td></td><td>Save current session and quit the terminal</td></tr></tbody></table>

###

### Command Examples

`buy 100$ btc` - **Market buy 100$ of BTC**

`sell 1 btc` - **Market sell 1 BTC**

`buy 1 btc 21000` - **Limit buy 1 BTC at 21000**

`sell 1 btc 24000 !ro` - **Limit close 1 BTC at 24000 - reduceOnly**

`eth, buy 1` - **Set default symbol to ETH and market buy 1 ETH**

`close eth` - **Market close the current position on eth**&#x20;

`close eth 2000` - **Limit close the current position of ETH at 2000**

`split buy 1000$ doge 20 0.05 0.06` - **Buy a 1000$ worth of doge in 20 orders from 0.05 to 0.06**

`doge`                                     - **Set default symbol to DOGE**\
`split buy 1000$ 20 0.05 0.06` - **Buys a 1000$ worth of doge in 20 orders from 0.05 to 0.06**

`split buy 1000$ doge 20 last-3% last-1%` - **Buy a 1000$ worth of doge in 20 orders from the last price - 3% to the last price - 1%**

`stop buy 0.01 btc 30000` - **Market buy 0.01 BTC once the price is >= 30,000**

`leverage btc 10` - **Set the leverage to 10x on btc**

`wait 20:00, buy 0.01 btc` - **Wait until 20:00 and buy 0.01 BTC**

`wait 10s, sell 0.01 btc` - **Wait 10 seconds and sell 0.01 BTC**

`cancel buys` - **Cancel buy orders on all pairs (or default symbol)**

`cancel buys eth` - **Cancel all buy orders on ETH**

`cancel btc 19000 21000` - **Cancel all orders on BTC in the price range of 19000-210080**

`bind buy 1000$ doge` - **Bind \`buy 1000$ doge\` to the key(s) you press afterwards**

`autotp 5 1% 3%` - **Closes position when one opens in 5 orders from 1% from entry to 3% from entry**

`autotp 5 1% 3% doge` - **Does the same as the one above but only on DOGE**


# Flags, Variables, and Operators

### Flags

<table><thead><tr><th width="172">Flag</th><th></th></tr></thead><tbody><tr><td><code>!ro</code></td><td>Makes order reduce only</td></tr><tr><td><code>!po</code></td><td>Makes order post only</td></tr></tbody></table>

### Global Variables

<table><thead><tr><th width="175">Name</th><th>Description</th></tr></thead><tbody><tr><td><code>last</code></td><td>Last traded price of symbol</td></tr><tr><td><code>ask</code></td><td>Best ask of symbol</td></tr><tr><td><code>bid</code></td><td>Best bid of symbol</td></tr><tr><td><code>best</code></td><td>Best bid for buys / Best ask for sells</td></tr><tr><td><code>mark</code></td><td>Market price of symbol, exchange calculated (varies)</td></tr><tr><td><code>index</code></td><td>Index price of the underlying of a derivative</td></tr><tr><td></td><td></td></tr><tr><td><code>entry</code></td><td>Position average entry</td></tr><tr><td><code>position</code></td><td>Position size</td></tr><tr><td><code>side</code></td><td>Position side (buy or sell)</td></tr><tr><td><code>close</code></td><td>Position close side (opposite of <code>side</code>)</td></tr></tbody></table>

### Operators for Variables

<table><thead><tr><th width="193"></th><th width="705.3333333333333"></th></tr></thead><tbody><tr><td><code>var+1%</code> or <code>var-1%</code></td><td>Percentages after variables or values will add or subtract the percentage from the variable</td></tr><tr><td><code>10%var</code></td><td>Percentages before variables will give you that percentage of the variable</td></tr><tr><td><code>var+1</code> or <code>var-1</code></td><td>Addition or subtraction to/from variables</td></tr><tr><td><code>var?1%</code></td><td>Equal to <code>+</code> if the position is long or <code>-</code> if it is short</td></tr></tbody></table>


