OKX Learning HandbookSecurity · Funds · Trading

How can I do derivatives trading with the Jupyter Notebook?

Share your love

Find out how you can do simple derivatives trading with the same tools. Let's us

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

  1. How can I get the market data for derivatives trading with the Jupyter Notebook using Get market data?
  2. How can I get available trading pairs for derivatives trading with the Jupyter Notebook using Get instruments?
  3. As in the same manner, choose the instType that you'd like to get information for.
  4. How can I check your balance for derivatives trading with the Jupyter Notebook using Get balance?
  5. What account mode and margin/trade mode are eligible for derivatives trading with the Jupyter Notebook?
  6. How can I set leverage for derivatives trading with the Jupyter Notebook via Set account leverage?
  7. There are 9 different scenarios for leverage settings via OKX open APIs. Please refer to Set leverage scenarios for different cases.
  8. Set leverage for SWAP instruments under cross-margin trade at contract level.
  9. Set leverage for SWAP instruments under isolated-margin trade mode and buy/sell position mode at contract level.
  10. Set leverage for SWAP instruments under isolated-margin trade mode and long/short position mode at contract and position side level.
  11. How can I place orders for derivatives trading with the Jupyter Notebook under different position (order placement) modes: long/short and buy/sell?
  12. 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.

Share your love
CQCC

CQCC

OKX step guides and risk notes. Official docs prevail when details differ.

ARTICLES: 442

Leave a Reply

Your email address will not be published. Required fields are marked *