R2 Bitcoin Arbitrager is an automatic arbitrage trading system powered by Node.js + TypeScript.


R2 Bitcoin Arbitrager is an automatic arbitrage trading application targeting Bitcoin exchanges.

(This project is licensed under the MIT License - see the LICENSE file for [details](https://github.com/bitrinjani/r2/blob/master/LICENSE))
How to Use:
1. Install Node.js 8.5 or newer.
2. Clone this repository.
```
git clone https://github.com/bitrinjani/r2.git
```
3. Run npm install. (or yarn)
```
cd r2
npm install
```

4. Rename config_default.json in the folder to config.json
5. Replace key and secret fields with your API keys (tokens) and secrets. Set enabled to false for exchanges you do not use.
6. To run R2 in Web UI mode, set webGateway.enabled to true. By default, R2 starts in Console mode.
7. Start the application by npm start or yarn start.
```
npm start
```

8. Open http://127.0.0.1:8720 in Chrome.
or
1. Install Docker
2. Clone this repository.
```
git clone https://github.com/bitrinjani/r2.git
```

3. Run docker build and docker run.
```
cd r2
docker build -t r2:latest .
docker run --rm -it r2:latest
```


Every 3 seconds, R2 downloads quotes from exchanges.
Filters out quotes that are not usable for arbitrage. For example, if maxShortPosition config is 0 and the current position is 0 for a broker, the ask quotes for the broker will be filtered out.
Calculates the best ask and the best bid from the filtered quotes and checks if the expected profit is larger than the configured minimum value, minTargetProfitPercent. If there is no arbitrage opportunity, R2 waits for the next iteration.
R2 concurrently sends a buy leg and a sell leg to each broker that offered the best price.
R2 checks whether the legs are filled or not for the configured period, say 30 seconds.
If the both legs are filled, shows the profit. If one of the legs are not fully filled, R2 tries to send a cover order in order to balance the position. The covering behavior is configurable in onSingleLeg config.
After the spread has became smaller than the configured value, exitNetProfitRatio, R2 tries to close the pair.

User Guide Document

Download
Highest Price
42.50
Lowest Price
42.50
Average Price
42.50
AI Price Forecast
42.50
Add a comment regarding this product. (If you have any question regarding this source code, you can ask a question to Seller of this source code.)

AnandAhuja05
| Apr 25, 2019 | Price : 36.47$

This is quite extensive and useful. Can be adapted. Definitely recommended.