Skip to content

This repository is an API server for upbit profit and loss calculations based on Deno.

Notifications You must be signed in to change notification settings

basejb/bitox-api

Repository files navigation

bitox-api

  • bitox-api는 Upbit에서 내 자산의 일일 손익을 계산하는 간단한 API입니다.
  • deno를 가볍게 익혀보면서 외부 서비스의 open API를 경험을 목적으로한 프로젝트입니다.

Start

1. Installation

Homebrew (Mac):

brew install deno

2. Setting

2.1 Upbit Open API key 발급

❗️ Open API key 발급시 자산 조회 주문 조회 출금 조회 입금 조회를 제외한 개인 자산에 접근하는 항목은 체크하지 않습니다.
❗️ 이로인한 보안 이슈 발생시 책임지지 않습니다.

upbit-open-api-key-options

2.2 database setting

# DB 생성
$ CREATE DATABASE bitox;
# table 생성
# ~/bitox-api/
$ deno run --allow-net ./db/migrations/create_users.ts
$ deno run --allow-net ./db/migrations/create_assets.ts

2.3 .env

UPBIT_ACCESS_KEY=업비트에서 발급받은 access key
UPBIT_SECRET_KEY=업비트에서 발급받은 secret key

MYSQL_HOST=127.0.0.1
MYSQL_NAME=xxxx
MYSQL_PASSWORD=xxxx

3. Run

$ deno task dev

About

This repository is an API server for upbit profit and loss calculations based on Deno.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published