OKX icon

OKX

Cryptocurrency exchange API for spot and derivatives trading, orders, and market data.

6 searches4 actionsPollingAuth: API key

AI-assisted documentation6 min read

This documentation is compiled from our integration source code, internal specs for OKX, its official API documentation and anonymized requests logs we collect from our support team[2].

Open OKX on WEXTL →

Before you set up the credential, make sure you have an active OKX account and an API access token from your account settings ready.[3]

  • API KeytextRequired

    You can generate API Key, Secret Key, and Passphrase from Dashboard -> Account -> APIs

    [1]
  • API SecrettextRequired
  • API PassphrasetextRequired
  • EnvironmentselectRequired
  1. Log in to your WEXTL account, add the OKX node module to your workflow, and click Create new credential.
  2. Optional: In the Credential name field, enter a name for the credential.
  3. Enter the authentication credentials you copied from your OKX account, or follow the on-screen instructions to create the credential.
  4. If prompted, authenticate your account and confirm access.
  5. If you want to make changes to your credential in the future, follow the steps in Manage credentials →
Connecting OKX to WEXTL®
Video slide demonstrates how to integrate OKX in the WEXTL visual workflow builder.[4]

Notes

Credentials are org-scoped; share them with teammates from the Credentials picker on any of its nodes.For detailed information on connecting an application, see Connect an application →

Cancel Multiple OrdersSearch
Input fields[3]
FieldType
Ordersarray
Instrument TypeRequired
choice
Order IDRequired
text
Client Order IDtext
Output fields[3]
FieldType
Client Order IDtext
Order IDtext
Success Codetext
Success Messagetext
Get an OrderAction
Input fields[3]
FieldType
Instrument TypeRequired
choice
Order IDRequired
text
Client Order IDtext
Output fields[3]
FieldType
Acc Fill Sizetext
Algo Client Ord IDtext
Algo IDtext
Attach Algo Client Ord IDtext
Attach Algo Ordersarray
Avg Pricetext
Creation Timetext
Cancel Sourcetext
Cancel Source Reasontext
Categorytext
Margin Currencytext
Client Ord IDtext
Feetext
Fee Currencytext
Fill Pricetext
Fill Sizetext
Fill Timetext
Instrument IDtext
Instrument Typetext
Is Tp Limittext
31other output fields
Get Funding RateSearch
Input fields[3]
FieldType
Instrument IDRequired
choice
Limitnumber
Output fields[3]
FieldType
Funding Ratetext
Funding Timetext
Instrument IDtext
Instrument Typetext
Methodtext
Max Funding Ratetext
Min Funding Ratetext
Next Funding Ratetext
Next Funding Timetext
Premiumtext
Sett Funding Ratetext
Sett Statetext
Timestamptext
Get Market TickersSearch
Input fields[3]
FieldType
Instrument TypeRequired
choice
Limitnumber
Output fields[3]
FieldType
Instrument Typetext
Instrument IDtext
Lasttext
Last Sztext
Ask Pxtext
Ask Sztext
Bid Pxtext
Bid Sztext
Open 24htext
High 24htext
Low 24htext
Vol Ccy 24htext
Vol 24htext
Sod Utc 0text
Sod Utc 8text
Tstext
Get Open InterestSearch
Input fields[3]
FieldType
Instrument TypeRequired
choice
Limitnumber
Output fields[3]
FieldType
Instrument Typetext
Instrument IDtext
Open interest (cont)text
Open interest (coin)text
Timestamptext
Get Order BookSearch
Input fields[3]
FieldType
Instrument TypeRequired
choice
Sizenumber
Limitnumber
Output fields[3]
FieldType
Asksarray
Bidsarray
Tstext
Amend an OrderAction
Input fields[3]
FieldType
Instrument TypeRequired
choice
Close On Failboolean
Order IDRequired
text
Client Order IDtext
Request IDtext
New Sizetext
TP/SL informationarray
Algo IDtext
Client Order IDtext
New TP order kindchoice
New Take-profit trigger price typechoice
New Stop-loss trigger price typechoice
SL Based On Trigger?choice
Sizetext
Amend Price on Trigger Typechoice
Output fields[3]
FieldType
Client Order IDtext
Order IDtext
Request IDtext
Success Codetext
Success Messagetext
Cancel an OrderAction
Input fields[3]
FieldType
Instrument TypeRequired
choice
Order IDRequired
text
Client Order IDtext
Output fields[3]
FieldType
Client Order IDtext
Order IDtext
Success Codetext
Success Messagetext
Make an API Calluniversal
Input fields[3]
FieldType
URLRequired
text
MethodRequired
choice
Headersarray
Keytext
Valuetext
Query Stringarray
Keytext
Valuetext
Bodytext
Output fields[3]
FieldType
Bodytext
Headersobject
Status codenumber
Place an OrderAction
Input fields[3]
FieldType
SideRequired
choice
SizeRequired
text
Trade ModeRequired
choice
Instrument TypeRequired
choice
Margin Currencytext
Client Order IDtext
Tagtext
Self trade prevention mode.choice
TP/SL informationarray
Client Order IDtext
TP order kindchoice
Take-profit trigger price typechoice
Stop-loss trigger price typechoice
SL Based On Trigger?choice
Sizetext
Amend Price on Trigger Typechoice
Output fields[3]
FieldType
Client Order IDtext
Order IDtext
Tagtext
Success Codetext
Success Messagetext

Look for OKX templates in the WEXTL template library.

Browse templates →
  1. WEXTL® OKX Source Code connector implementation.
  2. Our users use cases and automations.
  3. Official API Documentation for OKX.
  4. WEXTL® visual workflow builder data.

Last updated: Jul 24, 2026 18:12