@exchange-connect/coinex
TypeScript icon, indicating that this package has built-in type declarations

0.10.2 • Public • Published

Exchange Connect

Coinex Software Development Kit

This is a module or a part of Exchange Connect project and you can use it seperatly for the Coinex Exchange

  • You are allowed to interact with Advanced ( raw ) APIs through SDK functions
  • Catching an well-defined error by type
  • Integrating in your Javascript apps flawlessly
  • No need to handling WebSocket connections by your own. it's already done!

Usage

Be Cautious: It's currently under development

Installation:

npm i --save @exchange-connect/coinex

Use SDK:

const CoinexSDK = require("@exchange-connect/coinex");
const coinex = new CoinexSDK("YOUR_API_KEY", "YOUR_API_SECRET");

const { INVALID_METHOD } = coinex.errors;
const { acquireAllMarketInfo } = coinex.https;
const { futuresAssetSubscribe } = coinex.streams;

//Access All of the HTTP/Rest APIs with "CoinexSDK.http"
//For Example
try{
    const allTheMarkets = await acquireAllMarketInfo();
}catch(error){
    //And Even you can recogonize the error just simply by the "instanceof" from the error section
    if(error instanceof INVALID_METHOD){
        //Handle the error
    }
    //Look at the "API Refrence" for more information
}

API Refrence

See API Refrence For more information on SDK.

Folder Structure

src/                Source code
├─ constants/       Constant variables
├─ errors/          Classified-Errors folder
│  ├─ http/         Server-Generated HTTP Response Errors
│  ├─ stream/       Server-Generated Web Socket Errors
├─ http/            HTTP API Requests
│  ├─ account/      "account" Requests
│  ├─ futures/      "futures" Requests
│  ├─ market/       "market" Requests
│  ├─ spot/         "spot" Requests
│  ├─ trading/      "trading" Requests
├─ stream/          Web Socket Functionalities
│  ├─ futures/      Futures WS Functions
│  ├─ spot/         Spot WS Functions
docs/               JSDoc-Generated Documentations

Roadmap

  • [x] Full Rest API Support

    • [x] Account
    • [x] Futures
    • [x] Market
    • [x] Trading
    • [x] Spot
  • [x] Full WebSocket API Support

    • [x] Futures
    • [x] Spot
  • [x] Document All of the SDKs

    • [x] HTTP API
    • [x] Web Socket API
  • [x] Error handling

  • [x] Error types

  • [ ] Rate Limiter

Package Sidebar

Install

npm i @exchange-connect/coinex

Weekly Downloads

0

Version

0.10.2

License

MIT

Unpacked Size

557 kB

Total Files

261

Last publish

Collaborators

  • mohammadhb