Funding
Documentation on interacting with a variety of OKX API functions related to Funding data and information through the PENDAX SDK.
All Funding & Account API endpoints require authentication. Please create OKX API keys to interact with these functions successfully.
Funding
Get Currencies
Function Name:
fundingGetCurrencies()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 fundingGetCurrencies(exchange, options) {
try {
let result = await exchange.fundingGetCurrencies(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
const result = await fundingGetCurrencies(myOkxAccount)Get Balance
Function Name:
Usage:
Get Account Asset Valuation
Function Name:
Usage:
Funds Transfer
Function Name:
Usage:
Get Funds Transfer State
Function Name:
Usage:
Asset Bill Details
Function Name:
Usage:
Get Deposit Address
Function Name:
Usage:
Get Deposit History
Function Name:
Usage:
Withdrawal
Function Name:
Usage:
Get Withdrawal History
Function Name:
Usage:
Small Assets Convert
Function Name:
Usage:
Get Saving Balance
Function Name:
Usage:
Savings Purchase/Redemption
Function Name:
Usage:
Set Lending Rate
Function Name:
Usage:
Get Lending History
Function Name:
Usage:
Get Public Borrow Info
Function Name:
Usage:
Get Public Borrow History
Function Name:
Usage:
Lightning Deposits
Not currently supported
Function Name:
Usage:
Lightning Withdrawals
Not currently supported
Function Name:
Usage:
Cancel Withdrawal
Function Name:
Usage:
Last updated