https://github.com/billstclair/arbitrage
Automatic Crypto Arbitrage trading
https://github.com/billstclair/arbitrage
Last synced: about 1 month ago
JSON representation
Automatic Crypto Arbitrage trading
- Host: GitHub
- URL: https://github.com/billstclair/arbitrage
- Owner: billstclair
- License: mit
- Created: 2024-10-15T03:34:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-23T08:22:25.000Z (over 1 year ago)
- Last Synced: 2025-03-02T19:43:04.500Z (over 1 year ago)
- Language: Elm
- Homepage: https://arbitrage.wtf
- Size: 2.86 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[Arbitrage](https://arbitrage.wtf) is an Automated Crypto Arbitrage trading system.
I have abandoned work on this.
It's too hard to find pricing info.
For development:
$ cd .../arbitrage
$ elm reactor
Then aim your browser at http://localhost:8000/site/index.html
To build the Elm code into `site/elm.js`:
$ cd .../arbitrage
$ ./bin/build
## Emacs Lisp code for arbitrage.
From my ~/.emacs file. Added while writing code for a sports gambling web site that encouraged professional gamblers.
```
(defun arbitrage (&rest odds)
(/ 1 (apply '+ (mapcar (lambda (x) (/ 1.0 x)) odds))))
(defun min-arbitrage-bet (arbitrage &rest odds)
(let* ((denom (apply '+ (mapcar (lambda (x) (/ 1.0 x)) odds)))
(bet (- (/ 1 arbitrage) denom)))
(values bet (apply 'arbitrage bet odds))))
```