
Security News
Critical Security Vulnerability in React Server Components
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.
@coinex-org/coinex
Advanced tools
A lightweight, type-safe TypeScript HTTP client for the official CoinEx API v2, covering all major modules including Spot, Futures, Account, and Assets.
A lightweight, type-safe TypeScript client for the official CoinEx API v2.
ky for HTTP requests.npm install @coinex-org/coinex
pnpm
pnpm install @coinex-org/coinex
yarn
yarn add @coinex-org/coinex
First, you need to import and initialize the CoinExClient with your API Key and Secret Key.
import { CoinExClient } from '@coinex-org/coinex';
const client = new CoinExClient({
apiKey: 'YOUR_API_KEY',
secretKey: 'YOUR_SECRET_KEY',
});
// Example: Get server time (public endpoint)
const serverTime = await client.getSystemTime();
console.log('Server Time:', serverTime);
// Example: Get account information (private endpoint)
const accountInfo = await client.account.getAccountInfo();
console.log('Account Info:', accountInfo);
// Example: Get spot market list
const spotMarkets = await client.spot.market.listMarket();
console.log('Spot Markets:', spotMarkets.slice(0, 5)); // Log first 5 for brevity
For all configuration options, please see the API docs.
The client is organized into modules that mirror the official CoinEx API structure.
client.ping(): Ping the server.client.getSystemTime(): Get the server time.client.account)createSubAccount, getSubAccountList, disableSubAccount, enableSubAccount, createSubAccountApiKey, getSubAccountApiKeyDetail, getSubAccountInfo, subAccountTransfer, getSubAccountTransferHistory, getSubAccountApiKeyList, getSubAccountSpotBalance, editSubAccountApiKey, deleteSubAccountApiKeygetAccountTradeFeesgetFuturesMarketSettings, modifyAccountSettings, modifyFuturesMarketSettingsgetAccountInfo(): Get main account information.client.assets)addAMMLiquidity, getAMMIncomeHistory, getAMMLiquidityPool, removeAMMLiquiditygetAMMLiquidity, getCreditBalance, getCreditInfo, getFinancialBalance, getFuturesBalance, getMarginBalance, getSpotBalance, getSpotTransactionHistorygetMarginBorrowHistory, getMarginInterestLimit, marginBorrow, marginRepaycancelWithdrawal, getDepositAddress, getDepositWithdrawalConfig, getAllDepositWithdrawalConfig, getAssetInfo, getDepositHistory, getWithdrawalHistory, updateDepositAddress, withdrawalgetAssetTransferHistory, transferclient.spot)listMarket, listMarketTicker, listMarketDepth, listMarketKline, listMarketDeals, listMarketIndexputOrder, putStopOrder, getOrderStatus, getMultiOrderStatus, listPendingOrder, listFinishedOrder, listPendingStopOrder, listFinishedStopOrder, editOrder, editStopOrder, cancelOrder, cancelOrderByClientId, cancelStopOrder, cancelStopOrderByClientId, cancelAllOrder, cancelBatchOrder, cancelBatchStopOrder, putMultiOrder, putMultiStopOrderlistUserDeals, listUserOrderDealsclient.futures)listMarketBasisHistory, listMarketDeals, listMarketDepth, listMarketFundingRateHistory, listMarketFundingRate, listMarketIndex, listMarketKline, listMarketLiquidationHistory, listMarketPositionLevel, listMarketPremiumHistory, listMarketTicker, listMarketputOrder, putStopOrder, getOrderStatus, getMultiOrderStatus, listPendingOrder, listFinishedOrder, listPendingStopOrder, listFinishedStopOrder, editOrder, editStopOrder, cancelOrder, cancelOrderByClientId, cancelStopOrder, cancelStopOrderByClientId, cancelAllOrder, cancelBatchOrder, cancelBatchStopOrder, putMultiOrder, putMultiStopOrderadjustPositionLeverage, adjustPositionMargin, closePosition, listFinishedPosition, listPendingPosition, listPositionAdlHistory, listPositionFundingHistory, listPositionMarginHistory, listPositionSettleHistory, setPositionStopLoss, setPositionTakeProfitlistUserDeals, listUserOrderDealsclient.maintain)getMaintenanceInfo(): Get system maintenance information.MIT © Shahrad Elahi and contributors.
FAQs
A lightweight, type-safe TypeScript HTTP client for the official CoinEx API v2, covering all major modules including Spot, Futures, Account, and Assets.
We found that @coinex-org/coinex demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.

Research
/Security News
We spotted a wave of auto-generated “elf-*” npm packages published every two minutes from new accounts, with simple malware variants and early takedowns underway.

Security News
TypeScript 6.0 will be the last JavaScript-based major release, as the project shifts to the TypeScript 7 native toolchain with major build speedups.