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
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
Function name:
Usage:
Get Margin Lending Ratio
Function name:
Usage:
Get Long/Short Ratio
Function name:
Usage:
Get Contracts Open Interest and Volume
Function name:
Usage:
Get Options Open Interest and Volume
Function name:
Usage:
Get Put/Call Ratio
Function name:
Usage:
Get Open Interest and Volume (expiry)
Function name:
Usage:
Get Open Interest and Volume (strike)
Function name:
Usage:
Get Taker Flow
Function name:
Usage:
Last updated