Alert
client → serverSets up an alert on a trading pair across exchanges. Mail is sent when the spread clears your profit band, net of the fee you supply, until the expiry date passes.
Parameters
- event
"Alert"- exchange
- Exchanges to include.
"All"watches every exchange. - pairs
- Trading pairs to monitor, each with an
instrumentfield. - channel
- Data channel to monitor.
- type
- Type of data to monitor.
- Where alert notifications are sent.
- min_profit
- Minimum profit percentage that triggers the alert.
- max_profit
- Maximum profit percentage.
- fee
- Overall fee percentage subtracted from profit.
- expire_date
- When the alert expires and stops firing.
{
"event": "Alert",
"exchange": "All",
"pairs": [
{
"instrument": "BTC/USD"
}
],
"channel": "Book",
"type": "Quote",
"email": "example@mail.com",
"min_profit": 1.0,
"max_profit": 100.0,
"fee": 0.05,
"expire_date": "2027-06-26 10:46:00.000"
}