Place a DCA order for a position

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

Places a DCA buy order for one open position, priced at the current ask and sized by the hopper's DCA size setting.

OAuth scope: read manage trade About scopes

The body is optional and takes the same fields as DCA positions (market_order, dca_mode, trailing_buy, trailing_buy_percentage). If the body contains position_ids, those positions are used instead of the path position. 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/POSITION_ID" \
  -H "access-token: YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"market_order":0,"dca_mode":"individual"}'

Parameters

Headers

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

Path parameters

NameTypeRequiredDescription
position_id string Required Open position ID.
id string Required Hopper ID.

Response

Example response (illustrative values)

{
    "data": "DCA order(s) created."
}

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