Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.

๐Ÿ’ฐ Alpha Daemon implementation to run automated market making strategies on top of TDEX

License

Notifications You must be signed in to change notification settings

tdex-network/tdex-daemon-alpha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

30 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ’ฐ tdex-daemon-alpha

Alpha Daemon implementation to execute automated market marking strategies on top of TDEX

Usage

In-depth documentation for running tdex-daemon is available at docs.tdex.network

๐Ÿ›ฃ Roadmap

  • Swap protocol
  • Trade protocol
  • Wallet
  • Crawler
  • Constant Product Market making

๐Ÿณ Docker

Build

# Enter the project folder and install node dependencies
$ yarn install
# bundle for Linux amd64 
$ yarn build-linux
# Build docker image
$ docker build -t truedex/tdex-daemon:latest .

๐ŸŒ Browser support

To invoke TDEX trade grpc server from browser do as follows:

  • Start tdex-daemon yarn start
  • Download pre-build binary of grpcwebproxy from here
  • Start gowebproxy grpcwebproxy --backend_addr=localhost:9945 --run_tls_server=false --allow_all_origins

You can also start it with docker:

$ docker run --name gwp --network host -t truedex/grpcwebproxy:latest --backend_addr=:9945 --run_tls_server=false --allow_all_origins 

๐Ÿ–ฅ Local Development

Below is a list of commands you will probably find useful for local development.

yarn start

Runs the project without compiling TypeScript code into plain javascript.

yarn watch

Runs the project in watch mode. Your project will be rebuilt upon changes.

yarn build

Bundles the package to the dist folder.

yarn build-linux

Build the TypeScript project and bundle with Nexe for Linux amd64 platform

yarn build-mac

Build the TypeScript project and bundle with Nexe for Mac OS platform

yarn lint

Try building the project and runs Eslint and Prettier

yarn test

Runs the test watcher (Jest) in an interactive mode. Requires Nigiri to already be installed.

About

๐Ÿ’ฐ Alpha Daemon implementation to run automated market making strategies on top of TDEX

Resources

License

Stars

Watchers

Forks

Packages

No packages published