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

Product Information

$54.04
cart Add to cart favorites Add to favorites
User Guide Code Insights

Public chat

Product Details

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.

File Tree

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

Price Information

Price Statistics

Highest Price
$54.04
Average Price
$54.04
Lowest Price
$54.04
AI Price Forecast
$39.34

Insights

Reviews and Ratings
avatar
Apr 26, 2019
This is quite extensive and useful. Can be adapted. Definitely recommended.
ratingsratingsratingsratingsratings

Limited Preview Only


Real Product Contains All Files And Full Code

Check dependencies

See product external dependencies

Randomly Selected Sample File

Project File Statistics

Hierarchy

Choose a sample file
X
user-symbol

Stay in touch

Get Practical Tips For Business and Developers.

Learn about PieceX Community Needs for Source Code Projects.

Be the First to Know PieceX Newest Free Community Code Projects.