> For the complete documentation index, see [llms.txt](https://docs.origami.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.origami.tech/accounts/exchanges/okx.md).

# OKX

Create OKX API keys and connect your OKX account to Origami Tech to trade and run bots from your project.

Follow this guide to create OKX API keys and connect them to Origami Tech for secure trading automation and multi-market execution.

## Step One

If you haven't already, go to [OKX](https://www.okx.com/join/3802272) website and create an account. Proceed with KYC.

## Step Two

Verify your account, add 2FA and get started with creation of sub-account

<figure><img src="https://3075831504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh6BkURa7HNU017yGuhBt%2Fuploads%2FSlPgKySfHh1pQo7SIabQ%2Ftelegram-cloud-photo-size-4-5949680163946087470-y.jpg?alt=media&#x26;token=34c318ed-1cbe-4298-a4a6-b34262d0d9c6" alt="okx api for origami tech, go to sub-accounts menu"><figcaption></figcaption></figure>

<figure><img src="https://3075831504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh6BkURa7HNU017yGuhBt%2Fuploads%2Fz1ifmIJ0JYi7D6zKYmf4%2Ftelegram-cloud-photo-size-4-5949680163946087471-y.jpg?alt=media&#x26;token=f1da6fa2-4385-485d-853e-9f4658487572" alt="okx api for origami tech, create sub-account"><figcaption></figcaption></figure>

Create a login name to Sub-account and use Standard sub-account → click on Submit all

<figure><img src="https://3075831504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh6BkURa7HNU017yGuhBt%2Fuploads%2FpYpwgdAy3zygqWWCcTKE%2Ftelegram-cloud-photo-size-4-5949680163946087472-y.jpg?alt=media&#x26;token=b301c50a-792e-40b5-911d-5a4b15e80c35" alt="okx api for origami tech, set up sub-account"><figcaption></figcaption></figure>

Complete creation of Sub-account with 2FA

<figure><img src="https://3075831504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh6BkURa7HNU017yGuhBt%2Fuploads%2F4Hm9ap9hhwOgy7WNKp6Q%2Ftelegram-cloud-photo-size-4-5949680163946087474-y.jpg?alt=media&#x26;token=ed1ad004-6ddd-466c-9dd5-e6b6cff9ba29" alt="okx api for origami tech, 2 factor authentication"><figcaption></figcaption></figure>

## Step Three

Go to Sub-account page and click on Action → Manage API

<figure><img src="https://3075831504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh6BkURa7HNU017yGuhBt%2Fuploads%2FF0AwAnvm3qga4bnkKUBB%2Ftelegram-cloud-photo-size-4-5949680163946087475-y.jpg?alt=media&#x26;token=4a918924-f55a-4b36-b7c5-75e7291032c6" alt="okx api for origami tech, go to actions, manage API"><figcaption></figcaption></figure>

Create API Name, choose Account (sub-account if created previously, Main if not).

Use API trading Purpose, link this IP address to allowlist: **15.235.202.52**

Permissions: Read, Trade

Come up with Passphrase (you must remember it)

<figure><img src="https://3075831504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh6BkURa7HNU017yGuhBt%2Fuploads%2F0nA3mEWtSHVoZf6FIt6i%2Fimage%20(17).png?alt=media&#x26;token=b8e43c05-dec0-427d-a0d5-4fd0dac4ed51" alt="okx api for origami tech, set up api"><figcaption></figcaption></figure>

Click on Submit all and proceed with Email and 2FA to finish API creation
