okex-withdrawal-fee
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

okex-withdrawal-fee

Get OKEx withdrawal fees of all currencies.

Quick start

npx okex-withdrawal-fee USDT ERC20

How to use

/* eslint-disable import/no-unresolved,no-console */
const { getWithdrawalFee } = require('okex-withdrawal-fee');

console.info(getWithdrawalFee('BTC'));

console.info(getWithdrawalFee('USDT', 'ERC20'));

API Manual

There is only one API in this library:

/**
 * Get withdrawal fee of the symbol.
 *
 * @param symbol The symbol name
 * @param platform The platform, optional
 * @returns WithdrawalFee or undefined
 */
export declare function getWithdrawalFee(
  symbol: string,
  platform?: string,
): WithdrawalFee | undefined;

Which returns a WithdrawalFee:

export interface WithdrawalFee {
  withdrawal_fee: number;
  min_withdraw_amount: number;
  platform?: 'ERC20' | 'TRC20' | 'OMNI';
}

Package Sidebar

Install

npm i okex-withdrawal-fee

Weekly Downloads

0

Version

0.1.0

License

Apache-2.0

Unpacked Size

34.1 kB

Total Files

11

Last publish

Collaborators

  • soulmachine