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

circle-info

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

https://www.okx.com/docs-v5/en/#rest-api-funding-get-currenciesarrow-up-right

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

circle-info

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

https://www.okx.com/docs-v5/en/#rest-api-funding-get-balancearrow-up-right

Function Name:

Usage:

Get Account Asset Valuation

circle-info

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

https://www.okx.com/docs-v5/en/#rest-api-funding-get-account-asset-valuationarrow-up-right

Function Name:

Usage:

Funds Transfer

circle-info

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

https://www.okx.com/docs-v5/en/#rest-api-funding-funds-transferarrow-up-right

Function Name:

Usage:

Get Funds Transfer State

circle-info

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

https://www.okx.com/docs-v5/en/#rest-api-funding-get-funds-transfer-statearrow-up-right

Function Name:

Usage:

Asset Bill Details

circle-info

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

https://www.okx.com/docs-v5/en/#rest-api-funding-asset-bills-detailsarrow-up-right

Function Name:

Usage:

Get Deposit Address

circle-info

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

https://www.okx.com/docs-v5/en/#rest-api-funding-get-deposit-addressarrow-up-right

Function Name:

Usage:

Get Deposit History

circle-info

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

https://www.okx.com/docs-v5/en/#rest-api-funding-get-deposit-historyarrow-up-right

Function Name:

Usage:

Withdrawal

circle-info

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

https://www.okx.com/docs-v5/en/#rest-api-funding-withdrawalarrow-up-right

Function Name:

Usage:

Get Withdrawal History

circle-info

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

https://www.okx.com/docs-v5/en/#rest-api-funding-get-withdrawal-historyarrow-up-right

Function Name:

Usage:

Small Assets Convert

circle-info

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

https://www.okx.com/docs-v5/en/#rest-api-funding-small-assets-convertarrow-up-right

Function Name:

Usage:

Get Saving Balance

circle-info

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

https://www.okx.com/docs-v5/en/#rest-api-funding-get-saving-balancearrow-up-right

Function Name:

Usage:

Savings Purchase/Redemption

circle-info

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

https://www.okx.com/docs-v5/en/#rest-api-funding-savings-purchase-redemptionarrow-up-right

Function Name:

Usage:

Set Lending Rate

circle-info

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

https://www.okx.com/docs-v5/en/#rest-api-funding-set-lending-ratearrow-up-right

Function Name:

Usage:

Get Lending History

circle-info

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

https://www.okx.com/docs-v5/en/#rest-api-funding-get-lending-historyarrow-up-right

Function Name:

Usage:

Get Public Borrow Info

circle-info

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

https://www.okx.com/docs-v5/en/#rest-api-funding-get-public-borrow-info-publicarrow-up-right

Function Name:

Usage:

Get Public Borrow History

circle-info

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

https://www.okx.com/docs-v5/en/#rest-api-funding-get-public-borrow-history-publicarrow-up-right

Function Name:

Usage:

Lightning Deposits

circle-exclamation
circle-info

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

https://www.okx.com/docs-v5/en/#rest-api-funding-lightning-depositsarrow-up-right

Function Name:

Usage:

Lightning Withdrawals

circle-exclamation
circle-info

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

https://www.okx.com/docs-v5/en/#rest-api-funding-lightning-withdrawalsarrow-up-right

Function Name:

Usage:

Cancel Withdrawal

circle-info

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

https://www.okx.com/docs-v5/en/#rest-api-funding-cancel-withdrawalarrow-up-right

Function Name:

Usage:

Last updated