Block or unblock DCA for a coin

POST https://api.cryptohopper.com/v1/hopper/{id}/position/dca/block

Blocks or unblocks DCA orders for one coin of the hopper. Send block 1 to block, 0 or leave it out to unblock.

coin is required. When unblocking, data is "DCA block released for BTC.". Not available for exchange arbitrage, market maker, copy and grid bots.

Example request

curl -X POST "https://api.cryptohopper.com/v1/hopper/HOPPER_ID/position/dca/block" \
  -H "access-token: YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"coin":"BTC","block":1}'

Parameters

Headers

NameTypeRequiredDescription
access-token string Required The OAuth access token of the user.

Path parameters

NameTypeRequiredDescription
id string Required Hopper ID.

Response

Example response (illustrative values)

{
    "data": "DCA block setted for BTC."
}

Status codes: 200. Errors return JSON with status, error and message. See How the API works for response codes and rate limits.