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

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

https://www.okx.com/docs-v5/en/#rest-api-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

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

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

Function Name:

Usage:

Get Account Asset Valuation

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

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

Function Name:

Usage:

Funds Transfer

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

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

Function Name:

Usage:

Get Funds Transfer State

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

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

Function Name:

Usage:

Asset Bill Details

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

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

Function Name:

Usage:

Get Deposit Address

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

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

Function Name:

Usage:

Get Deposit History

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

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

Function Name:

Usage:

Withdrawal

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

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

Function Name:

Usage:

Get Withdrawal History

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

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

Function Name:

Usage:

Small Assets Convert

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

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

Function Name:

Usage:

Get Saving Balance

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

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

Function Name:

Usage:

Savings Purchase/Redemption

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

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

Function Name:

Usage:

Set Lending Rate

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

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

Function Name:

Usage:

Get Lending History

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

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

Function Name:

Usage:

Get Public Borrow 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-public

Function Name:

Usage:

Get Public Borrow History

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-public

Function Name:

Usage:

Lightning Deposits

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

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

Function Name:

Usage:

Lightning Withdrawals

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

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

Function Name:

Usage:

Cancel Withdrawal

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

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

Function Name:

Usage:

Last updated