Webhooks now support partial selling

When you use an automated system to send a trade to your chart.observer account, we used to treat the SELL orders as a signal to sell 100% of the token pair. But we just made an update that supports sending a percent in the “count” parameter. So if you wanted to sell 50% of your available Bitcoin, that webhook message would look like this:

{
"tokenpair": "BTCUSD",
"count":
50%”,
"usdprice": 98100,
"action": "sell",
"exchange": "Coinbase",
"user": "123456789123"
}

So previously, the “count” was ignored if “action” is set to “sell”. Users had to assume their position would be closed at market price. However, with this latest update, our platform allows part of the position to remain open, which is favorable under certain strategy conditions.

More information on automating your trades using our API is found under the “Webhook URL” section of your account.

Leave a Reply

Your email address will not be published. Required fields are marked *