TradingView webhook commands
Last updated 1 year ago
Was this helpful?
Endpoint:
{ "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": "", "is_long": "true" }
{ "api_key": "", "action": "close-all-positions", "strategy_id": "", "base_asset": "", "quote_asset": "", "is_long": "true" }