Orders
Create a Sell Order
Creates a sell (off-ramp) order request for exchanging cryptocurrency for fiat currency, specifying payment and cryptocurrency details.
post/orders/sell
Request
- Base URL: https://api.eldorado.io/api
- URL: https://api.eldorado.io/api/orders/sell
- Auth: none declared. Required headers: X-Client-ID, X-Referral-ID, Authorization
Headers
X-Client-IDstring required
X-Referral-IDstring required
User-Agentstring
Authorizationstring required
Bearer token
Request body
Example request
{
"fiatDetails": {
"details": {
"bankName": "SuperBank",
"accountNumber": "1000AB12345"
}
},
"quoteId": "123e4567-e89b-12d3-a456-426614174000",
"externalReferenceId": "123e4567-e89b-12d3-a456-426614174000"
}Response
New order details
Example response
{
"order": {
"userId": "user_123",
"apiOrderId": "order_123",
"orderStatus": "WAITING_FOR_FUNDS",
"type": "SELL",
"createdDate": "2023-01-01T00:00:00Z",
"updatedDate": "2023-01-01T00:00:00Z",
"quote": {
"quoteId": "quote_123",
"createdAt": "2023-01-01T00:00:00Z",
"expiresAt": "2023-01-01T00:00:00Z",
"fixedAmountSide": "IN",
"orderType": "SELL",
"fees": {
"amountInToken": "0.02",
"amountInFiat": "0.02",
"breakdown": {
"platformFees": {
"amountInToken": "0.01",
"amountInFiat": "0.01",
"rate": "0.5"
},
"integratorFees": {
"amountInToken": "0.01",
"amountInFiat": "0.01",
"rate": "0.5"
}
}
},
"out": {
"amount": "100",
"currency": "USD",
"paymentMethodId": "pm_123",
"min": "100"
},
"in": {
"amount": "0.1",
"currency": "BTC",
"chain": "BTC"
},
"kind": "estimate"
},
"fiatDetails": {
"paymentMethodId": "pm_123",
"payerDetails": {
"name": "John Doe",
"email": "john.doe@example.com"
},
"payerDetailsId": "payer_123",
"payeeDetails": {
"name": "Jane Doe",
"email": "jane.doe@example.com"
},
"payeeDetailsId": "payee_123"
},
"cryptoDetails": {
"tokenAddress": "0x1234567890abcdef",
"chainId": "1",
"depositAddress": "0xabcdef1234567890"
},
"dueDate": "2023-01-01T00:00:00Z",
"externalReferenceId": "123e4567-e89b-12d3-a456-426614174000"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.