Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Overview

Trading-bot is a project built in scala, which is responsible for generating and placing orders to the orderbook, to make this, the bot has to connect with the lssd grpc app.
Firstly it registers the currencies with which it will be working, after that it creates the trading_pair, then creates orders randomly, to both sides, Sell and Buy and send them to the lssd.

How it works:

  1. Trading bot defines where to find the lnd nodes.
  2. Create the currencies
  3. Define the trading pair
  4. Create the order
  5. Place the order
  6. Wait until order gets matched
  7. Wait until swap is completed
  8. Place a new order when swap is completed

Installation

To run this project you have to install the next components:

Before running the bot we must configure the lnd in the next ports without macaroons:

  • LTC: localhost:10001
  • BTC: localhost:10002
  • XSN: localhost:10003

Clone the repository with

`git clone https://github.com/X9Developers/DexAPI`

Run

Open the project and you must add the cert file into
trading-bot/src/main/resources

Then you must open a terminal in project root and run sbt run