{"_id":"binance-triangle-arbitrage","_rev":"1-b27b97eef136a72ad61a7f619834d007","name":"binance-triangle-arbitrage","dist-tags":{"latest":"5.2.1"},"versions":{"5.2.1":{"name":"binance-triangle-arbitrage","version":"5.2.1","repository":{"type":"git","url":"git+https://github.com/bmino/binance-triangle-arbitrage.git"},"author":{"name":"Brandon Mino"},"engines":{"node":"11.10.1","npm":"6.10.0"},"scripts":{"start":"node src/main/Main.js"},"dependencies":{"blessed":"^0.1.81","node-binance-api":"^0.9.5","pino":"^5.13.2","pino-pretty":"^3.2.0"},"license":"MIT","gitHead":"c6c627f99e77a8956def190d559130c2c6fcc3c4","description":"<p align=\"center\">     <img src=\"https://github.com/bmino/binance-triangle-arbitrage/blob/master/src/resources/mainDisplay.png\"> </p>","bugs":{"url":"https://github.com/bmino/binance-triangle-arbitrage/issues"},"homepage":"https://github.com/bmino/binance-triangle-arbitrage#readme","_id":"binance-triangle-arbitrage@5.2.1","_nodeVersion":"12.8.0","_npmVersion":"6.10.3","dist":{"integrity":"sha512-PqEayI9kThhLQNYmYFGX18o5zs5R+0bFLR2mr1d0vc61e+ibOC1oZrxkUGzX55B0EJMyZI1abptyZYC/0h2c6Q==","shasum":"beb222e74a53761f57e0585479edf377c612175a","tarball":"https://registry.npmjs.org/binance-triangle-arbitrage/-/binance-triangle-arbitrage-5.2.1.tgz","fileCount":17,"unpackedSize":1841972,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdTQs5CRA9TVsSAnZWagAAkGgP/2XVY/vDl4DG5FKB7RPv\n2kNoOrxv11dP+1U93kQOg08Ip143T2Qd5viPxd7V8M52IawuCy9GQL1mv+OX\n41RJBrN7Hj48zDjTo9KRrAK2esVph5RFTXRnBhNt9KbNa8Wn5nIq7RGYwJTD\nyGgFiM2Vyv2II6CVwiFKt88cASlga1v9e+BqPkM6iomKUONGa3mHNHx+Iu8H\nYM916cWKrBuN1mmiHDRSipOF/xjZHvrfXbYjUxnxtnx3LhjrejJlmr4owjJa\nSQv0yqzj3ES8uY444I5SXUkm/+/8uoXg79ZR+phtcTsKZbtLypnoXJuKMxyH\nEwWkblh/+VNq0mcpMJUy/ILwDFlVzDr3CaMj5Cd91381ziRibQaoo1Eo2Ilk\nVr7M8eubOsu2KsWv+U+xJFUuqvIUQMRNAC+iH6sxHlAvoJOAGuHlm/NA8DHT\nIkOgrvY2r6qKdbun0WiGTxBea861mAAeCoNAQqfMai1OWGLwSIAtz8S+Bu/0\nhuMXZMh3FRwJzgVzS5a16oa9K8i4Gj35yqcPiK7Vx2FF7zUUPPZtKkY2c/6L\nqjtt3snMCvH4bf6MTbqSY4zrD5UO/FZYbwx2POR37lqZFY+eLUc7zy5Xjun4\nXDfth7SbOHZlzw8YZRhuulGFkAJ5IYSNbmkcxUHHeNp2AKPkCH2/1MRxTqXN\n+fTu\r\n=tLRL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICa2MTsxHrGzbk5OI1imjLjXqJCEbOhoxP6O+zw9i6vSAiB+vJOGWJ9RVMXc50hYoz7PCUCCX4eQHQFHoeK5soAKgg=="}]},"maintainers":[{"name":"daleforsyth","email":"df.cryptotrading@gmail.com"}],"_npmUser":{"name":"daleforsyth","email":"df.cryptotrading@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/binance-triangle-arbitrage_5.2.1_1565330232836_0.2654021047176329"},"_hasShrinkwrap":false}},"time":{"created":"2019-08-09T05:57:12.835Z","5.2.1":"2019-08-09T05:57:12.998Z","modified":"2022-04-11T17:48:18.144Z"},"maintainers":[{"name":"daleforsyth","email":"df.cryptotrading@gmail.com"}],"description":"<p align=\"center\">     <img src=\"https://github.com/bmino/binance-triangle-arbitrage/blob/master/src/resources/mainDisplay.png\"> </p>","homepage":"https://github.com/bmino/binance-triangle-arbitrage#readme","repository":{"type":"git","url":"git+https://github.com/bmino/binance-triangle-arbitrage.git"},"author":{"name":"Brandon Mino"},"bugs":{"url":"https://github.com/bmino/binance-triangle-arbitrage/issues"},"license":"MIT","readme":"# Binance Triangle Arbitrage\n\n<p align=\"center\">\n    <img src=\"https://github.com/bmino/binance-triangle-arbitrage/blob/master/src/resources/mainDisplay.png\">\n</p>\n\nThis app monitors the [Binance](https://www.binance.com) cryptocurrency exchange in search of triangle arbitrage opportunities.\n\n## The HUD\nThe HUD is the chart displayed above. It is repainted after each calculation cycle to show snapshots of currently detected\narbitrage opportunities. To disable the HUD, set `HUD.ENABLED` to false.\n\n\n### Reading the HUD\n* **Trade** - Three symbols related by exchange rates that are involved in the triangle arbitrage.\n* **Profit** - Percent profit or loss from executing the triangle arbitrage. This includes trading fees specified via `TRADING.TAKER_FEE` config.\n* **AB Age** - Time in seconds since the most recent update of the market ticker relating the first and second symbols in the arbitrage.\n* **BC Age** - Time in seconds since the most recent update of the market ticker relating the second and third symbols in the arbitrage.\n* **CA Age** - Time in seconds since the most recent update of the market ticker relating the third and first symbols in the arbitrage.\n* **Age** - Time in seconds since the least recently updated market ticker involved in the triangle arbitrage.\n\n\n## Getting Started\nThese instructions will get a copy of the project up and running on your local machine for development and testing purposes.\n\n\n### Install Prerequisites\nThe following dependencies are recommended to run an instance:\n\n1. **NodeJS** - 11.10.0\n2. **Npm** - 6.10.0\n\n\n### Obtain the Codebase\n* Clone from github\n    ```\n    git clone https://github.com/bmino/binance-triangle-arbitrage.git\n    ```\n* Download a zip of the [latest release](https://github.com/bmino/binance-triangle-arbitrage/releases/latest)\n\n\n### Configuration\nAll configuration is done inside the `/config` directory.\nTo setup your configuration for the first time, duplicate the `config.json.example` file and remove the \".example\" extension.\nThis process must be done before deploying the app for the first time and redone after each major version update where the configuration has changed.\nExplanations of each value can be found [here](config/readme.md).\n\n### Assumptions\n1. All fees are [paid via BNB balance](https://binance.zendesk.com/hc/en-us/articles/115000583311)\n2. Sufficient quantity of BNB is maintained during the runtime of the bot\n\n### Deployment\n1. Install project dependencies\n    ```\n    cd binance-triangle-arbitrage\n    npm install\n    ```\n\n2. Start the application\n    ```\n    npm start\n    ```\n\n\n## Execution strategies\nThere are two supported methods of executing an identified triangle arbitrage opportunity. More details [here](src/resources/docs/strategies.md)\n\n* **Linear** - Three trades are executed sequentially with each being initiated after the previous has completed\n* **Parallel** - Three trades are executed asynchronously with each being initiated at the same time\n\n\n## Logging\nAll logs are stored in the `/logs` directory. The log level is set via the `LOG.LEVEL` configuration property.\n\n* **performance.log** - Data about performance and speed\n* **execution.log** - Market interactions and profits\n\n\n## Authors\n* **[Brandon Mino](https://github.com/bmino)** - *Project Lead*\n\nSee also the list of [contributors](https://github.com/bmino/binance-triangle-arbitrage/contributors) who participated in this project.\n\n\n## Donations\nThe developers listed above created and currently maintain this project for free.\nI don't expect any compensation nor donations, but if you appreciate my work feel free to donate to the following addresses:\n\n* Bitcoin (BTC): 1KLBb9qzFN19RxaQwD35CQmnYZvW1819XZ\n* Binance Coin (BNB): 0xb046b6991eb1bdc838cae567cff838b542e9f19d\n\n\n## License\nThis project is licensed under mit\n\n","readmeFilename":"readme.md"}