Loading the API documentation
No notifications.
Language
English
No other language is available yet.
Loading the API documentation
/v1/buy/quotesPrice a purchase in rupiah
Returns the asset amount (rounded down to the asset's decimals), the rupiah price per unit with the margin included, an expiry, and message, the exact text the wallet must sign to place the order.
No parameters.
| Name | Required | Type and limits | Description |
|---|---|---|---|
address | Yes | string | The 0x address that receives the asset |
asset | Yes | string | None |
idrAmount | Yes | integer, at least 1 | None |
| Status | Meaning | Body |
|---|---|---|
| 201 | Created | BuyQuoteResponse |
| 400 | Invalid body, unsold asset or amount outside the limits | Error |
| 503 | No price for the asset right now ( | Error |
curl -s -X POST 'https://exchange.zethareum.com/v1/buy/quotes' \
-H 'Content-Type: application/json' \
--data '{"address":"<address>","asset":"<asset>","idrAmount":1}'