Skip to content
Sign up

Recurring buys

Change a recurring buy

Change a plan's amount or rhythm, or pause and resume it.

PATCH/api/v1/recurring/{reference}Get a key
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"
}

The next buy keeps its date. Pausing and resuming always work, even while your account can't trade, and a plan brought back buys next on its rhythm from today.

Path parameters

  • referencestringrequired

    The plan's reference, such as RB-7K2M4Q.

Bodyapplication/json

  • amountstring

    The new amount, in euro.

  • frequencystring

    The new rhythm.

    One ofdailyweeklybiweeklymonthly

  • statusstring

    paused to pause the plan, active to resume it.

    One ofactivepaused

Response

  • referencestring

    The plan's reference, such as RB-7K2M4Q.

  • symbolstring

    What it buys.

  • amountstring

    What it spends each time, in euro.

  • frequencystring

    daily, weekly, biweekly or monthly.

  • statusstring

    active or paused.

  • nextRunAtstring

    When it buys next.

  • buysinteger

    How many buys it has made.

  • investedstring

    What it has spent so far, in euro.

  • unitsstring

    What it has bought so far.

  • valuestring

    What that is worth now, in euro.

  • createdAtstring

    When the plan started.