Find out how you can do simple derivatives trading with the same tools. Let's use the comprehensive features available in python-okx at a higher level!
Derivatives Types
Checklist
- How can I get the market data for derivatives trading with the Jupyter Notebook using Get market data?
- How can I get available trading pairs for derivatives trading with the Jupyter Notebook using Get instruments?
- As in the same manner, choose the instType that you'd like to get information for.
- How can I check your balance for derivatives trading with the Jupyter Notebook using Get balance?
- What account mode and margin/trade mode are eligible for derivatives trading with the Jupyter Notebook?
- How can I set leverage for derivatives trading with the Jupyter Notebook via Set account leverage?
- There are 9 different scenarios for leverage settings via OKX open APIs. Please refer to Set leverage scenarios for different cases.
- Set leverage for SWAP instruments under cross-margin trade at contract level.
- Set leverage for SWAP instruments under isolated-margin trade mode and buy/sell position mode at contract level.
- Set leverage for SWAP instruments under isolated-margin trade mode and long/short position mode at contract and position side level.
- How can I place orders for derivatives trading with the Jupyter Notebook under different position (order placement) modes: long/short and buy/sell?
- Place a buy order and open/increase a long position: side = buy, posSide = long
Notes
There are three types of derivatives available for trading on OKX:
Expiry
Perpetual
Options
Details follow the official OKX help article; this page is a learning checklist, not an official mirror.










