
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
@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.

Research
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.