Name Last Update
config Loading commit data...
images Loading commit data...
models Loading commit data...
.gitignore Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
index.js Loading commit data...
package-lock.json Loading commit data...
package.json Loading commit data...
Logo

업비트 암호화폐 자동 매매 서비스

About The Project

about

24시간 시세가 변하는 암호화폐를 위한 자동 매매 서비스

해당 서비스를 만든 이유
● 24시간 가격변동이 있지만 사람이 하루종일 보고 있을 수는 없다.
● 매매 기준을 정해두어도 이성적인 판단을 못하고 감정적으로 매매를 할 수 있다.
● 일상샐활을 하면서 고정적인 수익을 얻을 수 있다.

DB Schema

  • User

    • uid : 유저의 고유 아이디
    • krw_balance : 보유 원화
    • market : 보유 암호화폐 이름
    • count : 매수 횟수
    • avg_buy_price : 매수 평균가
    • volume : 보유 암호화폐 갯수
  • Coin

    • tid : 거래량별 암호화폐 순위
    • name : 암호화폐 이름
    • korean_name : 암호화폐 한글 이름
    • acc_trade_price_24h : 24시간 거래대금
    • current_price : 현재 암호화폐 가격
    • up_count : 5분 간격 연속 상승 횟수
    • down_count : 5분 간격 연속 하락 횟수

Built With

Installation

  1. repository를 clone한다. sh git clone http://khuhub.khu.ac.kr/Crypto/Crypto_trade_bot.git
  2. NPM package들을 설치한다. sh npm install
  3. 해당 프로젝트는 aws ec2와 ssl인증서를 사용한다. 개인 PC에서 작동하려면 domain과 sslport를 지우고 express.app을 사용해서 서버를 작동시키면 된다.(이 경우 4번은 생략)
  4. 최상위 폴더의 index.js의 domain과 sslport를 본인 domain과 sslport로 변경한다. js const domain = "{your domain}"; const sslport = {your port};
  5. https://cloud.mongodb.com/ 가입 후 db connect url을 복사한다.
  6. /config 폴더에 dev.js 파일 추가 js module.exports = { mongoURI:"복사한 connect url" }
  7. https://upbit.com/service_center/open_api_guide 에서 access_key와 secret_key를 발급받는다.
  8. https://developers.line.biz/en/services/messaging-api/ 에서 line message-api를 생성하고 channel access token을 복사한다.
  9. 3번에서 입력한 도메인을 webhook url로 설정해준다.(4번을 생략했다면 webhook url에 본인 네트워크망IP를 입력)
  10. 프로젝트 최상위 폴더에 .env 파일 추가 env access_key={upbit에서 발급 받은 access_key} secret_key={upbit에서 발급 받은 secret_key} token={line message-api 의 channel access token} userid={테스트 알림을 받을 line userid} ## Usage 프로젝트 최상위 폴더에서 명령어 실행 sh nodemon
    first
    second

Roadmap

  • Add get_marketname
  • Add get_marketInfo
  • Add price_comparison
  • Add transaction_coin
  • Add latest_repeat
  • Add send the order breakdown to the user
  • Add send the asset to the user
  • Add Whenever a sale is signed, the details of the signing are sent.

Contributing

  1. 프로젝트를 fork 하세요.
  2. 여러분의 feature 브랜치를 만들어 주세요.(git checkout -b feature/{function})
  3. 변경사항을 commit 해주세요.(git commit -m 'Add some function)
  4. 원격 브랜치로 push 해주세요.(git push origin feature/{function})
  5. pull request를 보내주세요.

License

MIT License

Contact

이름 - @김다빈,이가원 - dogsoft0937@khu.ac.kr,juneee0864@gmail.com
프로젝트 주소: http://khuhub.khu.ac.kr/Crypto/Crypto_trade_bot

Acknowledgments