Skip to content

imwh0im/node-bithumb

Repository files navigation

NPM Version

node-bithumb


Description

  • Typescript Support
  • SDK for bithumb API

How to Use

$ npm i --save node-bithumb
import ApiBithumb from "node-bithumb";

/** 'apiKey', 'secretKey', 'payment currency (krw, btc, eth, etc..)' */
const BithumbApi = new ApiBithumb("apiKey", "secretKey", "BTC");

/** {httpMethod}{ApiEndpoint(to camel case)} [eg. post, order_detail => postOrderDetail()] */
const buyRes = await BithumbApi.postMarketBuy(10, "ETH");
const sellRes = await BithumbApi.postMarketSell(10, "ETH");