Mercor
Search
K

TradingView Alerts

The script below is a template that you can add to your TradingView strategy to fully automate it with just 1 alert.
Webhooks The URL for a direct call buy order will look as follows: https://api.mercor.finance/api/v2/algorithms/0x00...00/ trade?api_key=SECRET 0x00...00 should be replaced with your algorithm address and SECRET should be replaced with your secret key. Both the algorithm address and the secret key will be given to you at the deployment of your algorithm on the Mercor platform.
Alert Message
{
" trade_type ":" BUY " ,
" slippage_amount ": 0.005 ,
" relative_amount ": 1 ,
" symbol ":" BTC "
}
Trade_type - defines if the trade is a buy ("BUY") or a sell ("SELL") order. Slippage_amount - default of 0.5% Relative_amount - default on 100% Both slippage and relative amounts can be left out resulting in the example message below:
{
" trade_type ":" BUY " ,
" symbol ": " BTC "
}