API Trading - TradingView
TradingView webhook commands
{
"api_key": "",
"action": "open-position",
"strategy_id": "",
"base_asset": "BTC",
"quote_asset":"USDT",
"is_long": "true",
"size": "1"
}
size indicates the relative size of the position. If you are sure that the position will bring profit use 1, otherwise scale down the size to reduce risks.
{
"api_key": "",
"action": "open-position",
"strategy_id": "",
"base_asset": "BTC",
"quote_asset":"USDT",
"is_long": "false",
"size": "1"
}
{
"api_key": "",
"action": "close-position",
"strategy_id": "",
"position_id": ""
}
{
"api_key": "",
"action": "close-all-positions",
"strategy_id": ""
}
{
"api_key": "",
"action": "close-all-positions",
"strategy_id": "",
"base_asset": "",
"quote_asset": ""
}
Last modified 8mo ago