Getting Started
Webhooks and Integration Guide
introduction if you have purchased a tuned subscription, you are eligible to receive a free sagemaster subscription for live execution of your trades if you are not signed up yet with sagemaster, you can create an account for free to claim your free sagemaster upgrade, please contact sagemaster support at support\@sagemaster io mailto\ support\@sagemaster io provide your sagemaster login email, and our support team will manually activate your account additionally, you can follow up on the tuned discord server should there be any delay in activating your sagemaster account, and we will reach out to the sagemaster team on your behalf this guide explains how to connect your tuned strategy with sagemaster's dca assist for seamless trade execution connecting tuned with sagemaster dca assist step 1 enable webhook in tuned once you have developed your strategy and are running it on paper trading in tuned, open the settings window of the running strategy check the box labeled "enable webhook" after enabling the webhook, you will see the following fields webhook url start long message shart short message close long message close short message step 2 obtain your free sagemaster account ensure your sagemaster account is activated by contacting sagemaster support (see above) step 3 connect your exchange account to sagemaster link your futures exchange account to sagemaster by visiting sagemaster exchange connections https //app sagemaster io/exchanges step 4 create two dca assists in sagemaster you need to create two dca assists—one for long trades and another for short trades key settings for dca assists main settings type choose single pair for one strategy or multi pair if you want to use the assist for multiple strategies or pairs strategy position type select long for the long dca assist and short for the short dca assist note the "both" option is currently unsupported but will be fixed soon base order margin and leverage set these to match your desired order size trigger condition use custom tradingview alert check "ignore the exchange from the trade idea that was sent by a provider" if you plan to execute signals on a different exchange extra orders set max extra orders to 0 for futures trading take profit / stop loss configure advanced strategies like smart take profit or smart trailing for risk management step 5 retrieve webhook url and messages from sagemaster image png open the details page for each dca assist navigate to the alerts section copy the following details webhook url this url is the same for all users and assists alert to start deal message template for starting trades alert to close order at market price message template for closing trades (optional) step 6 configure webhook settings in tuned fill in the tuned webhook settings as follows webhook url use the webhook url in the format https //api sagemaster io/deals idea/\<user id> message to start long trade copy the "alert to start deal" message from your long dca assist message to start short trade copy the "alert to start deal" message from your short dca assist message to close long trade copy the "alert to close order at market price" message from your long dca assist (optional) message to close short trade copy the "alert to close order at market price" message from your short dca assist (optional) click save to complete the configuration step 7 test the integration on the next trade, tuned will send a webhook to sagemaster, and the trade will be executed you can monitor the full event log on the dca assist details page to debug or understand trade execution faq q why do i see the error initial order error binanceusdm {"code" 4061,"msg" "order's position side does not match user's setting "} ? a this error occurs when hedge mode is enabled on your binance futures account to fix it, disable hedge mode and enable one way mode in your binance account settings note since tuned webhook integration is universal, you can use webhooks with any platform that supports receiving webhooks