• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

DiffBit/CryptoTradePlatform: A Machine Readable Cryptocurrency arbitrage bot

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

DiffBit/CryptoTradePlatform

开源软件地址:

https://github.com/DiffBit/CryptoTradePlatform

开源编程语言:

JavaScript 89.1%

开源软件介绍:

License: GPL v3

Crypto Arbitrage - a node.js script to help find and act on arbitrage opportunities.

A cryptocurrency arbitrage opportunity calculator and trading bot. Over 800 currencies and 50 markets.

To use, go to http://www.diffbit.com , for development install nodejs ^V8.00 and run npm install in the folder where the script main.js is. To run the program write node main or npm start. To change market settings, and to add your own markets edit the settings.js file.

Notice:

I am now only focusing on the trading bot. Unfortunately I am going to keep that code private, and will not have time to work on this public version. Feel free to still make pull requests - I will still take a look at any issues when they pop up.

How it works

In short it collects JSON from multipile different cryptocurrency markets, and goes through the results and finds the highest and lowest price for each coin. For example if the results look like this for LTC:

ltc : {
  'bittrex' : 38.23,
  'jubi' : 39.78,
  'chbtc' : 51.8,
}

the script will find the the highest price (chbtc.com), lowest price (bittrex), and divide the two: 51.8/38.23 = ~1.35 (~35% profit margin) and then pushes these results to the browser. It will also find the next highest market pairs, e.g. chbtc / jubi is the second highest pair and chbtc/bittrex the third, jubi/bittrex the fourth and so on until every possible combination has been computed.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Required: Node.js ^ V8.0.0 this program uses ES7 features such as async/await and requires a newer version of node.

Installing

In a terminal write the following:

CD into the correct folder.

cd arbitrage

Install the required npm modules

npm install

To run the program

npm start

Go to localhost:3000 to see a minimal display of the raw data

Currently you will have to add a market object with the correct settings in the array markets, situated in the settings.js file.

You can temporarily stop loading a market from the frontend, or remove the market by deleting the object in settings.js

Built and deployed with

Contributing

Feel free to suggest edits / pull requests or email me at [email protected]

Authors

  • Efi Jeremiah

License

See the LICENSE.md file for details

Donating

  • BTC: 1LGuJchewvHovpzwoGnswxYbfAfPfNq4Uc
  • ETH: 0x9db93092debc4da9f72a259eee8a65ad81a677b6
  • LTC: LVJkTsLn7RtxQfF4sCJyeiX2h31URj9M4n



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap