Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

rluisr/tvbit-bot

Open more actions menu

Repository files navigation

tvbit-bot

release lint

tvbit-bot is TradingView webhook handler for Bybit.

tvbit = T(rading)V(iew) (By)bit

Twitter @rarirureluis

Introduction

  1. Set an alert with webhook and a message as JSON like below:
{
  "name": "alert name, description or something",
  "symbol": "BTCUSDT",
  "type": "Market",
  "price": "0",
  // If type is "Limit" set it as an int greater than 0
  "side": "Buy",
  "qty": "0.014",
  "tp": "0",
  // see below
  "sl": "{{high}}"
  // see below
}

more details, see curl.txt

TP and SL

You have to set tp and sl as a string.

  • {{high}} is an embedded value of TradingView, Also you can set any other TradingView's embedded values.
  • Other methods, you can set as a percent like "tp": "10%" calculate from mark price.
  • "tp": "+40", "sl": "-20" means, TP: mark price + 40 and SL: mark price - 20.

see tv.go or Bybit API Documentation

Path

Path Method Description
/tv POST Create order

Setup

You have to set environment variables

Container

ghcr.io/rluisr/tvbit-bot:latest

MySQL

tvbit-bot saves the order history to MySQL.

Limitation

tvbit-bot does not support to close/cancel positions, recommend to use TP/SL.

Welcome your PR.

Twitter @rarirureluis

About

tvbit-bot is TradingView webhook handler for Bybit.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.