Mizar
Search…
⌃K

DCA Bot - TradingView

TradingView webhook commands

Open position

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

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

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>"
}

Close position

{
"bot_id": "1",
"action": "close-position",
"base_asset": "BTC",
"quote_asset": "USDT",
"api_key": "<API KEY>"
}

Shift safety orders

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>"
}

Close all positions

{
"bot_id": "1",
"action": "close-all-positions",
"api_key": "<API KEY>"
}

Stop bot and close all positions

{
"bot_id": "1",
"action": "stop-bot-and-close-all-positions",
"api_key": "<API KEY>"
}