Selling Signals

Last updated 4 months ago

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
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.