Minimalist service designed to execute TradingView webhooks and process them to Bybit.
$ apt install npm
$ npm install -g n
$ n lts
$ npm install -g npm
$ npm install
$ npm run start
You can use the bot by interacting with its API.
-
Add main account under the stub
main
curl -d '{"stub": "MAIN", "exchange":"bybit", "apiKey": "YOUR_API_KEY", "secret": "YOUR_SECRET_KEY" }' -X POST http://YOUR.STATIC.IP.ADDRESS/accounts -H 'Content-Type: application/json; charset=utf-8'
-
Open a long position of 11$ on MATICUSDT using
main
stub :curl -d '{"stub": "main", "symbol": "MATICUSDT", "size": "11", "direction": "long" }' -X POST http://YOUR.STATIC.IP.ADDRESS/trades -H 'Content-Type: application/json; charset=utf-8'
-
Close 100% of a long position on MATICUSDT using
main
stub :curl -d '{"stub": "main", "symbol": "ETH-MATICUSDT", "direction": "close" }' -X POST http://YOUR.STATIC.IP.ADDRESS/trades -H 'Content-Type: application/json; charset=utf-8'