🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@coinex-org/coinex

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coinex-org/coinex

A lightweight, type-safe TypeScript HTTP client for the official CoinEx API v2, covering all major modules including Spot, Futures, Account, and Assets.

latest
Source
npmnpm
Version
0.0.0
Version published
Maintainers
1
Created
Source

@coinex-org/coinex

A lightweight, type-safe TypeScript client for the official CoinEx API v2.

Features

  • Type-Safe: Fully typed requests and responses for better developer experience and fewer runtime errors.
  • Comprehensive: Covers all major V2 API modules including Spot, Futures, Account, and Assets.
  • Modern: Built with modern tools and libraries, including ky for HTTP requests.
  • Clear Documentation: All methods and types are documented with JSDoc, linking back to the official CoinEx API documentation.

Installation

npm install @coinex-org/coinex
Install using your favorite package manager

pnpm

pnpm install @coinex-org/coinex

yarn

yarn add @coinex-org/coinex

Usage

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

Documentation

For all configuration options, please see the API docs.

API Modules

The client is organized into modules that mirror the official CoinEx API structure.

Common

Account (client.account)

Assets (client.assets)

Spot (client.spot)

Futures (client.futures)

Maintain (client.maintain)

License

MIT © Shahrad Elahi and contributors.

Keywords

coinex

FAQs

Package last updated on 07 Aug 2025

Did you know?

Socket

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.

Install

Related posts