https://github.com/tbenr/loopring-mm-bot
A simple market maker bot for loopring 3
https://github.com/tbenr/loopring-mm-bot
blockchain ethereum exchange loopring market-maker-bot
Last synced: about 1 month ago
JSON representation
A simple market maker bot for loopring 3
- Host: GitHub
- URL: https://github.com/tbenr/loopring-mm-bot
- Owner: tbenr
- Created: 2021-02-04T07:33:38.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-21T18:39:02.000Z (about 5 years ago)
- Last Synced: 2025-01-29T17:44:56.540Z (over 1 year ago)
- Topics: blockchain, ethereum, exchange, loopring, market-maker-bot
- Language: TypeScript
- Homepage:
- Size: 193 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# loopring-mm-bot
A simple market maker bot for loopring 3
## configuration
configuration is read in `config.json` from working dirirectory. The file must follow this structure:
```
{
"restAPIBaseUrl": "https://api3.loopring.io",
"wsBaseUrl": "wss://ws.api3.loopring.io",
"account": {
"exchangeName": "Loopring Exchange v2",
"exchangeAddress": "0x0BABA1Ad5bE3a5C0a66E7ac838a129Bf948f1eA4",
"accountAddress": "0x...",
"accountId": 0,
"apiKey": "...",
"publicKeyX": "0x...",
"publicKeyY": "0x...",
"privateKey": "0x..."
},
"pair": "DAI-USDT",
"maxBuyPrice": "1.0002",
"minSellPrice": "1.0000",
"reconnectWsAfterMissedPingSeconds": 60
}
```
## implemented strategy
the bot allocates available funds with buy\sell orders with the minimum spread possible.
## TODO
- complete test cases
- add max amount to limit the allocated fund
- honor maximum order amounts of token configuration