Trading Data

Documentation on interacting with a variety of OKX's Trading Data API functions through the PENDAX JavaScript SDK.

The API endpoints of Trading Data do not require authentication.

Trading Data

Get Support Coin

circle-info

Please refer to the official OKX API Docs for the required parameters.

https://www.okx.com/docs-v5/en/#rest-api-trading-data-get-support-coinarrow-up-right

Function name:

getSupportCoin()

Usage:

import { createExchange } from "./exchanges/exchange.js";

  let myOkxAccount = createExchange({
      exchange: "okx",
      authenticate: "true",
      key: "myKeys",
      secret: "mySecret",
      passphrase: "myPassphrase",
      label: "okx",
      marginType: "usdt"
});

async function getSupportCoin(exchange) {
    try {
        let result = await exchange.getSupportCoin();
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

const result = await getSupportCoin(myOkxAccount)

Get Taker Volume

circle-info

Please refer to the official OKX API Docs for required parameters.

https://www.okx.com/docs-v5/en/#rest-api-trading-data-get-taker-volumearrow-up-right

Function name:

Usage:

Get Margin Lending Ratio

circle-info

Please refer to the official OKX API Docs for required parameters.

https://www.okx.com/docs-v5/en/#rest-api-trading-data-get-margin-lending-ratioarrow-up-right

Function name:

Usage:

Get Long/Short Ratio

circle-info

Please refer to the official OKX API Docs for required parameters.

https://www.okx.com/docs-v5/en/#rest-api-trading-data-get-long-short-ratioarrow-up-right

Function name:

Usage:

Get Contracts Open Interest and Volume

circle-info

Function name:

Usage:

Get Options Open Interest and Volume

circle-info

Function name:

Usage:

Get Put/Call Ratio

circle-info

Please refer to the official OKX API Docs for required parameters.

https://www.okx.com/docs-v5/en/#rest-api-trading-data-get-put-call-ratioarrow-up-right

Function name:

Usage:

Get Open Interest and Volume (expiry)

circle-info

Function name:

Usage:

Get Open Interest and Volume (strike)

circle-info

Function name:

Usage:

Get Taker Flow

circle-info

Please refer to the official OKX API Docs for required parameters.

https://www.okx.com/docs-v5/en/#rest-api-trading-data-get-taker-flowarrow-up-right

Function name:

Usage:

Last updated