This endpoint allows partners to create an automated buy order for a user.
Users can specify a price target at which a buy order will be executed. Once the market price reaches the set target price, a market buy order will be automatically placed.
The target price can be above the current price to initiate an stop buy order or below the current price to initiate a limit-market order.
Coming soon: automated sell orders are expected in the future iterations. This feature will allow your users to set the target price below the current price to initiate a stop loss order or above the current price to initiate a take-profit order. We will keep you posted.
The automated order to be created.
Success Response (New order has been created)
Error
Unauthorized
Account is inactive
Not Found
Not Allowed
Unprocessable Entity
Error
Maintenance or Service unavailable
{- "type": "buy",
- "fiat_id": "ea96ccef-edee-11eb-9bf0-06502b1fe55d",
- "asset_id": "ea96ccef-edee-11eb-9bf0-06502b1fe55d",
- "amount": "1.99",
- "target_price": "40743.41527688"
}
{- "data": {
- "id": "2e4c89ac-1290-426f-8de0-4c7b40b91d3a",
- "type": "buy",
- "fiat_id": "ea96ccef-edee-11eb-9bf0-06502b1fe55d",
- "asset_id": "ea96ccef-edee-11eb-9bf0-06502b1fe55d",
- "fiat_amount": "1.89",
- "asset_amount": "0.00004884",
- "target_price": "40743.41527688",
- "created_at": "2024-06-13T13:30:32Z"
}
}