Selling Signals

Close opened positions automatically from external signals that previously have been opened with a buying signal indicating a signal ID.

post
It works with GET too, but POST is more secure.

https://zignaly.com/api/signals.php
This endpoint allows you to send selling signals. If you want to use GET instead of POST, just add the parameters to the URL.
Request
Response
Query Parameters
limitPrice
optional
number
The suggested final selling price. It only works for orderType=limit. it doesn't have into consideration the "Sell Price Deviation".
price
optional
number
The suggested selling price, it only works for limit orderType, if you don't send any, and you are using orderType=limit, the current market price will be used. Price parameter is modified by the user "Sell Price Deviation".
orderType
optional
string
market or limit. Limit orders type remove the current undone take profits targets from the user and place a new one, for the remaining amount at the suggested price in the signal.
key
required
string
The generated key that was created in the provider creation step.
pair
required
string
The pair for what this signal is, example: XRPBTC
type
required
string
It has to be sell.
signalId
required
string
The signal ID used to open a position previously from a buying signal.
200: OK
Signal successfully retrieved.
{
}
400: Bad Request
The pair parameter is missing.
{
}
404: Not Found
The key parameter is missing.
{
}

In case you want to use GET instead of POST, parameters can be sent in the URL as in the following example:

https://zignaly.com/api/signals.php?key=YOUR_PROVIDER_KEY&signalId=THE_SIGNAL_ID_WITH_WHAT_YOU_OPENED_THE_POSITION&pair=XXXXXX&type=sell

In order to accept selling signals from any provider, you need to check the checkbox Accept Sell Signals?, from the provider settings.