Skip to content

quadency/quad-kucoin-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quad-kucoin-client

node client for kucoin V2 api

Client to allow easier access to Kucoin's V2 rest and websocket api.

* There are a handlful of assets that have been normalized to ccxt's library.

Rest Example

import kucoin from 'quad-kucoin-client';

// For authenticated endpoints, provide object of credentials.  
// This is not required for public rest endpoints
const exchangeClient = new kucoin.RestClient({
  apiKey: 'your api key',
  secret: 'your secret',
  password: 'your passphrase',
});

// if using a proxy, set proxy value
if (PROXY_HOST) {
  exchangeClient.proxy = 'http://yourproxyhost';
}
const allMyOrderForBTCUSDT = await exchangeClient.fetchOrders('BTC-USDT')

Websocket Example

import kucoin from 'quad-kucoin-client';

// For authenticated endpoints, provide object of credentials.  
// This is not required for public rest endpoints
const exchangeClient = new kucoin.WebsocketClient({
  apiKey: 'your api key',
  secret: 'your secret',
  password: 'your passphras',
});

exchangeClient.subscribeBalance((balanceUpdate, disconnectFn)=>{
  console.log('My balance update:', balanceUpdate);
  
  setTimeout(() => { disconnectFn(); }, 5000);
});

About

node client for kucoin V2 api

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 6

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy