Mercor
Search…
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
1
{
2
" trade_type ":" BUY " ,
3
" slippage_amount ": 0.005 ,
4
" relative_amount ": 1 ,
5
" symbol ":" BTC "
6
}
Copied!
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:
1
​
2
{
3
" trade_type ":" BUY " ,
4
" symbol ": " BTC "
5
}
6
​
Copied!
Copy link