自选与提醒
创建价格提醒
价格一到达你的目标,或在 24 小时内波动到你设定的幅度,即刻通知你。
curl --request POST \
--url "https://reirex.com/api/v1/alerts" \
--header "GX-API-KEY: $GX_API_KEY" \
--header "GX-API-TIMESTAMP: $TIMESTAMP" \
--header "GX-API-SIGN: $SIGNATURE" \
--header "Content-Type: application/json" \
--data '{"symbol":"BTC","mode":"price","target":"80000","currency":"EUR","direction":"above","repeat":"once","channels":["push","email"]}'201 Createdapplication/json
{
"alertId": 12,
"symbol": "BTC",
"mode": "price",
"target": "80000",
"currency": "EUR",
"direction": "above",
"move": null,
"repeat": "once",
"channels": ["push", "email"],
"createdAt": "2026-10-14T16:14:15.412Z"
}price 提醒需要 target、currency 和 direction;move 提醒需要 move,单位为百分比。提醒通过推送、电子邮件或两者同时发送。
请求体application/json
symbolstring必填品种。
modestring必填price表示目标价格,move表示 24 小时内的涨跌幅。可选值
pricemovetargetstring要关注的价格,以十进制字符串表示。
currencystringtarget的货币,例如EUR或USD。directionstringabove表示涨到目标价,below表示跌到目标价。可选值
abovebelowmovestring涨跌幅百分比,不论方向,例如
5。repeatstring必填once,或always表示每次都通知。可选值
oncealwayschannelsstring[]必填push、email或两者。可选值
pushemail
响应
alertIdinteger我们为提醒分配的 id。
symbolstring提醒关注的品种。
modestringprice或move。targetstring | null目标价格;涨跌幅提醒为
null。currencystring | null目标价格的货币;涨跌幅提醒为
null。directionstring | nullabove或below;涨跌幅提醒为null。movestring | null涨跌幅百分比;价格提醒为
null。repeatstringonce或always。channelsstring[]通知方式:
push、email或两者。createdAtstring设置时间。

