跳到正文
注册

定投

修改定投

修改计划的金额或节奏,或暂停和恢复计划。

PATCH/api/v1/recurring/{reference}获取密钥
curl --request PATCH \
  --url "https://reirex.com/api/v1/recurring/RB-7K2M4Q" \
  --header "GX-API-KEY: $GX_API_KEY" \
  --header "GX-API-TIMESTAMP: $TIMESTAMP" \
  --header "GX-API-SIGN: $SIGNATURE" \
  --header "Content-Type: application/json" \
  --data '{"amount":"75"}'

200 OKapplication/json

{
  "reference": "RB-7K2M4Q",
  "symbol": "BTC",
  "amount": "75.00",
  "frequency": "weekly",
  "status": "active",
  "nextRunAt": "2026-10-21T16:14:15.412Z",
  "buys": 12,
  "invested": "600.00",
  "units": "0.00824710",
  "value": "612.40",
  "createdAt": "2026-07-29T16:14:15.412Z"
}

下一次买入日期保持不变。暂停和恢复始终有效,即使你的账户无法交易;恢复后的计划从今天起按其节奏进行下一次买入。

路径参数

  • referencestring必填

    计划编号,例如 RB-7K2M4Q。

请求体application/json

  • amountstring

    新的欧元金额。

  • frequencystring

    新的节奏。

    可选值dailyweeklybiweeklymonthly

  • statusstring

    paused 暂停计划,active 恢复计划。

    可选值activepaused

响应

  • referencestring

    计划编号,例如 RB-7K2M4Q。

  • symbolstring

    买入的品种。

  • amountstring

    每次花费的欧元金额。

  • frequencystring

    daily、weekly、biweekly 或 monthly。

  • statusstring

    active 或 paused。

  • nextRunAtstring

    下次买入时间。

  • buysinteger

    已完成的买入次数。

  • investedstring

    目前已花费的欧元金额。

  • unitsstring

    目前已买入的数量。

  • valuestring

    其当前价值,以欧元计。

  • createdAtstring

    计划开始时间。