gitbitex / gitbitex-new

an open source cryptocurrency exchange
Apache License 2.0
230 stars 84 forks source link
btc cryptocurrency exchange matching-algorithm matching-engine orderbooks prometheus

GitBitEX is an open source cryptocurrency exchange.

微信图片_20220417184255

Features

Architecture

gitbitex-architecture

Quick Start

Prerequisites

Run

git clone https://github.com/gitbitex/gitbitex-new.git
cd gitbitex-new
docker compose up -d
mvn clean package -Dmaven.test.skip=true
cd target
java -jar gitbitex-0.0.1-SNAPSHOT.jar
#visit http://127.0.0.1/

FAQ

How do i add new product (currency pair)?

curl -X PUT -H "Content-Type:application/json" http://127.0.0.1/api/admin/products -d '{"baseCurrency":"BTC","quoteCurrency":"USDT"}'

Does the project include blockchain wallets?

No, you need to implement it yourself, and then connect to gitbiex. For example, after users recharge/withdraw, send DepositCommand/WithdrawalCommand to the matching engine

Can I use this project for production?

Probably not. Some customers I know use this project in production, but they all have professional technicians. If you want to use it in production, you need professional technicians to help you. Like me .

How can I monitor the performance of the matching engine?

Some prometheus metrics for measuring performance have been built into the project. You can visit http://127.0.0.1:7002/actuator/prometheus see.You can use Prometheus and grafana to monitor. The metrics are as follows:

Where is the API document?

http://127.0.0.1/swagger-ui/index.html#/

Web code

https://github.com/gitbitex/gitbitex-web

Contact Me