Skip to content

Johnny1110/crypto-exchange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

140 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crypto-exchange



A crypto-exchange implement by Golang




startup ganache (A quick local Ethereum blockchain node)

node.js is required


$> node install
$> node node_modules/.bin/ganache


Document

  • How to startup?

    > go install
    > go run
    

    It will listen on port:8080





Order Book Benchmark Test:


  1. Limit Order (all maker)
goos: darwin
goarch: amd64
pkg: github.com/johnny1110/crypto-exchange/engine-v2/book
cpu: VirtualApple @ 2.50GHz
BenchmarkMakeLimitOrder
BenchmarkMakeLimitOrder-8   	 1978701/s	       694.7 ns/op

  1. Limit Order full match (Taker)
goos: darwin
goarch: amd64
pkg: github.com/johnny1110/crypto-exchange/engine-v2/book
cpu: VirtualApple @ 2.50GHz
BenchmarkTakeLimitOrder_FullMatch
BenchmarkTakeLimitOrder_FullMatch-8   	 1882754/s	       743.3 ns/op

  1. Market Order
goos: darwin
goarch: amd64
pkg: github.com/johnny1110/crypto-exchange/engine-v2/book
cpu: VirtualApple @ 2.50GHz
BenchmarkTakeMarketOrder
BenchmarkTakeMarketOrder-8   	 1789549/s	       680.6 ns/op

  1. Cancel Order
goos: darwin
goarch: amd64
pkg: github.com/johnny1110/crypto-exchange/engine-v2/book
cpu: VirtualApple @ 2.50GHz
BenchmarkCancelOrder
BenchmarkCancelOrder-8   	 5864726/s	       259.0 ns/op



📄 License: link

About

A crypto-exchange implement by Golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors