Trading & Orders
Documentation on interacting with a variety of OKX trading and order API functions through the PENDAX SDK.
All Trading & Order API endpoints require authentication. Please create OKX API keys to interact with these functions successfully. Accounts must be funded or collateralized for any trades to successfully post. Please note that some endpoints for Algo & Block trading are currently under development.
Placing and Manipulating Orders
Place Order
Please refer to the official OKX API Docs for the required parameters. You can place an order only if you have sufficient funds.
Function Name:
Usage:
Place Multiple Orders
Please refer to the official OKX API Docs for the required parameters.
https://www.okx.com/docs-v5/en/#rest-api-trade-place-multiple-orders
Function Name:
Usage:
Cancel Order
Please refer to the official OKX API Docs for the required parameters.
Function Name:
Usage:
Cancel Multiple Orders
Please refer to the official OKX API Docs for the required parameters.
https://www.okx.com/docs-v5/en/#rest-api-trade-cancel-multiple-orders
Function Name:
Usage:
Amend Order
Please refer to the official OKX API Docs for the required parameters.
Function Name:
Usage:
Amend Multiple Orders
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-trade-amend-multiple-orders
Function Name:
Usage:
Close Positions
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-trade-close-positions
Function Name:
Usage:
Order Details And Transaction History
Get Order Details
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-trade-get-order-details
Function Name:
Usage:
Get Order List
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-trade-get-order-list
Function Name:
Usage:
Get Order History (last 7 days)
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-trade-get-order-history-last-7-days
Function Name:
Usage:
Get Order History (last 3 months)
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-trade-get-order-history-last-3-months
Function Name:
Usage:
Get Transaction Details (last 3 days)
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-trade-get-transaction-details-last-3-days
Function Name:
Usage:
Get Transaction Details (last 3 months)
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-trade-get-transaction-details-last-3-months
Function Name:
Usage:
Placing & Editing Algo Orders
Place Algo Order
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-trade-place-algo-order
Function Name:
Usage:
Cancel Algo Order
This endpoint is currently under development
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-trade-cancel-algo-order
Function Name:
Usage:
Cancel Advance Algo Order
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-trade-cancel-advance-algo-order
Function Name:
Usage:
Get Algo Order List
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-trade-get-algo-order-list
Function Name:
Usage:
Get Algo Order History
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-trade-get-algo-order-history
Function Name:
Usage:
One-Click & Easy Convert
Get Easy Convert Currency List
This endpoint is currently under development.
Place Easy Convert
This endpoint is currently under development.
Get Easy Convert History
This endpoint is currently under development.
Get One-Click Repay Currency List
This endpoint is currently under development.
Trade One-Click Repay
This endpoint is currently under development.
Get One-Click Repay History
This endpoint is currently under development.
Block Trading
Get Counterparties
This endpoint is under development
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-block-trading-get-counterparties
Function Name:
Usage:
Create RFQ
This endpoint is under development
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-block-trading-create-rfq
Function Name:
Usage:
Cancel RFQ
This endpoint is under development
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-block-trading-cancel-rfq
Function Name:
Usage:
Cancel Multiple RFQ's
This endpoint is under development
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-block-trading-cancel-multiple-rfqs
Function Name:
Usage:
Cancel All RFQ's
This endpoint is under development
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-block-trading-cancel-all-rfqs
Function Name:
Usage:
Execute Quote
This endpoint is under development
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-block-trading-execute-quote
Function Name:
Usage:
Set Quote Products
This endpoint is under development
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-block-trading-set-quote-products
Function Name:
Usage:
Reset MMP Status
This endpoint is under development
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-block-trading-reset-mmp-status
Function Name:
Usage:
Create Quote
This endpoint is under development
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-block-trading-create-quote
Function Name:
Usage:
Cancel Quote
This endpoint is under development
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-block-trading-cancel-quote
Function Name:
Usage:
Cancel Multiple Quotes
This endpoint is under development
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-block-trading-cancel-multiple-quotes
Function Name:
Usage:
Cancel All Quotes
This endpoint is under development
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-block-trading-cancel-all-quotes
Function Name:
Usage:
Get RFQ's
This endpoint is under development
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-block-trading-get-rfqs
Function Name:
Usage:
Get Quotes
This endpoint is under development
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-block-trading-get-quotes
Function Name:
Usage:
Get Trades
This endpoint is under development
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-block-trading-get-trades
Function Name:
Usage:
Get Public Trades
This endpoint is under development
Please refer to the official OKX API Docs for required parameters.
https://www.okx.com/docs-v5/en/#rest-api-block-trading-get-public-trades
Function Name:
Usage:
Last updated