Giter VIP home page Giter VIP logo

gitbitex-new's Introduction

GitBitEX is an open source cryptocurrency exchange.

微信图片_20220417184255

Features

  • All in memory matching engine
  • Support distributed deployment (standby mode:only one matching engine is running at the same time)
  • Support 100000 orders per second (Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz 3.79 GHz 32.0 GB RAM 1T SSD)
  • Support the replay of matching engine commands and ensure that each result is completely consistent

Quick Start

Prerequisites

127.0.0.1       mongo1
127.0.0.1       mongo2
127.0.0.1       mongo3

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:

  • gbe_matching_engine_command_processed_total : The number of commands processed by the matching engine. The greater the value change, the faster the processing.
  • gbe_matching_engine_modified_object_created_total : This value represents the number of objects that have modified,Wait to save to database.
  • gbe_matching_engine_modified_object_saved_total : The number of modified objects that have been saved. If the difference between this value and gbe_matching_engine_modified_object_created_total is too large, it means that saving to disk is too slow.
  • gbe_matching_engine_snapshot_taker_modified_objects_queue_size : Objects that have not been written to the snapshot. This value reflects the performance of the snapshot thread.

Where is the API document?

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

gitbitex-new's People

Contributors

greensheng avatar cloud-market avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.