DCA Bot - TradingView
TradingView webhook commands
Open position with take profits and stop loss set with the bot values
{
"bot_id": "1",
"action": "open-position",
"base_asset": "BTC",
"quote_asset": "USDT",
"api_key": "<API KEY>"
}
Open position with take profit set to 5%
{
"bot_id": "1",
"action": "open-position",
"base_asset": "BTC",
"quote_asset": "USDT",
"take_profit_pct": "0.05",
"api_key": "<API KEY>"
}
Open position with stop loss set to 5%
{
"bot_id": "1",
"action": "open-position",
"base_asset": "BTC",
"quote_asset": "USDT",
"stop_loss_pct": "0.05",
"api_key": "<API KEY>"
}
Edit take profit for existing position to 5%
{
"bot_id": "1",
"action": "edit-take-profit-pct",
"base_asset": "BTC",
"quote_asset": "USDT",
"take_profit_pct": "0.05",
"api_key": "<API KEY>"
}
Edit stop loss for existing position to 5%
{
"bot_id": "1",
"action": "edit-take-profit-pct",
"base_asset": "BTC",
"quote_asset": "USDT",
"take_profit_pct": "0.05",
"api_key": "<API KEY>"
}
{
"bot_id": "1",
"action": "close-position",
"base_asset": "BTC",
"quote_asset": "USDT",
"api_key": "<API KEY>"
}
Shift first safety order to be at 2500
{
"bot_id": "1",
"action": "shift-safety-orders",
"safety_orders_start_price": "25000",
"base_asset": "BTC",
"quote_asset": "USDT",
"api_key": "<API KEY>"
}
Execute the first available safety order as a market order
{
"bot_id": "1",
"action": "shift-safety-orders",
"base_asset": "BTC",
"quote_asset": "USDT",
"api_key": "<API KEY>"
}
{
"bot_id": "1",
"action": "close-all-positions",
"api_key": "<API KEY>"
}
{
"bot_id": "1",
"action": "stop-bot-and-close-all-positions",
"api_key": "<API KEY>"
}
Last modified 10d ago