Documentation
  • Welcome
    • 🖥️Insilico Terminal
    • 🚀Terminal 3.8
    • ✍️Registration
    • 🔑Security
    • ❔Frequently Asked Questions
    • 🏛️Terms of Service
  • Setup
    • Creating an API Key
      • Creating a Bybit API Key
      • Creating a Bitmex API Key
      • Creating a Binance Key
      • Creating a Bitget API Key
      • Creating a Coinbase API Key
      • Creating an OKX API Key
      • Creating a BloFin API Key
    • Adding Hyperliquid
    • Adding your API Key to the Terminal
    • Progressive Web App (PWA) Guide
  • Application Elements
    • UI overview
    • Performance
    • Multi Mode
      • Multi Account
      • Multi Layout
      • Link System
      • Hotkeys
    • Classic Mode
    • Mobile Mode
    • Header controls
    • Interactive Chart
      • Designer
    • Tradingview Chart
    • Orderbook
    • Trades
    • Tickers / Instruments
    • Activity
    • Orders
    • Positions
    • DOM
    • PnL Cards
    • Aggr
    • Balances
    • Layouts
    • TradeStream Trading Journal
  • Execution panel
    • Side Panel Overview
    • “Size” Input / Slider bar
    • "Reduce" Switch
    • “TP/SL” Switch
    • Buy / Sell Buttons
    • Margin / Leverage Control
    • Instrument Statistics
  • Limit Tab
    • Limit
    • Stop Limit
    • Click Placement
    • Chase
    • Scale
    • Scale Side
  • Market
    • Market
    • Stop Market Order
    • Swarm
    • TWAP
  • Terminal CLI
    • Overview
    • 'Constant' values
    • User Defined Variables
    • General Commands
    • Simple Ordering
    • Stops
    • Ordering with Stops
    • Cancel Orders
    • Close Position
    • Scale Orders
    • Chase Orders
    • Swarm Order
    • Shortcut / Hotkeys
    • UI Control
  • Changelog
    • v3.8
    • v3.7
    • v3.6
    • v3.5
    • V3.4
    • v3.3.0
    • v3.1.15
    • v3.1.13
    • v3.1.11
    • v3.1.0
    • v3.0.0
    • v2.2.0
    • v2.1.0
    • v2.0.2
Powered by GitBook
On this page
  1. Setup
  2. Creating an API Key

Creating an OKX API Key

Watch our instructional video or follow the steps below:

PreviousCreating a Coinbase API KeyNextCreating a BloFin API Key

Last updated 1 year ago

In order to add an OKX account you will firstly need to create an account by clicking here:

The link can also be found in your settings menu, click on accounts then the OKX tab. You can click on the button that states "OKX API Keys"

Click on the user-icon in the upper right corner to open a drop-down menu.

Select API keys.

Choose if you want to create the API key for your main account or a sub account.

Click on Create V5 API key.

In the next form, select Linking thirt-party apps and select Insilicoterminal. In doing so the API key will automatically be restricted to the IP addresses of the Terminal.

Enter a name for the API key.

Enter a Passphrase. Make sure to retain your passphrase for the API key, as it will be required when adding to the Terminal.

Enable Trade for the Permissions.

Click on Confirm. You will be asked for a verification code / 2FA .

From the next menu you can now copy your generated API key and the Secret key and add it to the Terminal.

In the Terminal proceed to the 'Settings' section. From there, navigate to the 'Account' tab, where you will be welcomed by a screen as seen below. Choose a name for the account, input the API key and the Secret key into the respective fields and ensure that you include the Passphrase you generated.

Please make sure to set your OKX account mode to at least Single-currency margin in your trading settings.

IP Access Restrictions [Optional]

If you want to manually set up the API key for the Terminal in OKX (by setting up a general API key and not one which is linked to a third-party app), you will need to whitelist the IP addresses of our Terminal servers. You may copy and paste all the IP addresses provided below:

18.167.89.125,18.167.8.216,43.198.26.42,18.166.216.236,18.163.207.89,43.198.196.202,43.198.149.125,43.198.214.66,18.167.53.222,18.166.252.235,16.163.177.207,18.167.243.99,18.167.32.21,18.166.224.0,18.166.106.248,18.162.176.190,16.163.65.4,18.167.188.106,16.163.19.198,18.167.49.196

Make sure you copy all the IP addresses, there should be 20 in total!

https://www.okx.com/join/73702724