Buying Signals

Last updated 2 months ago

Open positions automatically from your buying signals.

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

https://zignaly.com
/api/signals.php
This endpoint allows you to send buying signals. If you want to use GET instead of POST, just add the parameters to the URL.
Request
Response
Query Parameters
MDXXXXXX
optional
string
This is a free field for sending metadata. Start the word with MD, followed by whatever name you want to give, example: MDSource and it will be stored as metaData->Source.
pair
required
string
The pair for what this signal is, example: XRPBTC.
key
required
string
The generated key that was created in the provider creation step.
type
optional
string
buy or sell, default is buy.
volume
optional
number
you can send the current volume at the time the signal was sent. Currently we don't use it for anything.
term
optional
string
short, shortmid, mid or long. If term is present, the position will be opened only if the term is selected in the provider configuration.
stopLoss
optional
number
If the option from the provider configuration Get Stop Loss Value From Signal is checked, the position will use this price as stop loss.
price
optional
number
If present, the buying order will sent with this price plus the configured Buy Price Deviation from your settings
signalId
optional
string
An unique identification for this signal. It could be used lately for selling the position through a sell signal.
exchange
optional
string
The signal would be opened only for this exchange. If it's missed, then it will be opened for your main exchange.
200: OK
Signal received.
{
}
400: Bad Request
The pair parameter is missing.
{
}
401: Unauthorized
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 example:

https://zignaly.com/api/signals.php?key=YOUR_PROVIDER_KEY&signalId=YOUR_UNIQUE_SIGNAL_ID&pair=XXXXXX&type=buy&price=0.0034&exchange=binance

‚Äč