1.2.0 • Published 11 months ago

node-upbit v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

node-upbit

npm version npm downloads

npm 사용:

$ npm i node-upbit

yarn 사용:

$ yarn add node-upbit

예제(usage)

TypeScript 사용 예제

import { ExchangeService, QuoationService } from "node-upbit";

Quoation API

업비트 ACCESS_KEY없이 코인 시세정보를 조회할 수 있는 API

const quoationService = new QuoationService();
//마켓 코드 조회
const res = await quoationService.getMarketAllInfo();
// 분 캔들 조회
const res2 = await quoationService.getMinutesCandles({
  minutes: "60",
  marketCoin: "KRW-BTC",
  count: 10,
});
// 일 캔들 조회
const res3 = await quoationService.getDayCandles({
  marketCoin: "KRW-BTC",
  count: 10,
});
// 주 캔들 조회
const res4 = await quoationService.getWeekCandles({
  marketCoin: "KRW-BTC",
  count: 10,
});
// 월 캔들 조회
const res5 = await quoationService.getMonthCandles({
  marketCoin: "KRW-BTC",
  count: 10,
});
// 현재가 정보 조회
const res6 = await quoationService.getTicker(["KRW-BTC"]);
// 호가 정보 조회
const res7 = await quoationService.getOrderbook(["KRW-BTC"]);

Exchange API

업비트에서 발급받은 ACCESS_KEY, SERET_KEY를 이용하여 자산조회,주문 등을 할 수 있는 API

// UBIT_ACCESS_KEY 업비트에서 발급받은 ACCESS_KEY
// UBIT_SECRET_KEY 업비트에서 발급받은 SECRET_KEY
const exchangeService = new ExchangeService(UBIT_ACCESS_KEY, UBIT_SECRET_KEY);
//전체 계좌 조회
const res8 = await exchangeService.getAllAccount();
//주문 가능 정보
const res9 = await exchangeService.getOrderChance("KRW-BTC");
// API 키 리스트 조회
const res10 = await exchangeService.getApiKeyStatus();

Resources

License

MIT

1.2.0

11 months ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.0

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago