Loading the API documentation
No notifications.
Language
English
No other language is available yet.
Loading the API documentation
/v1/buy/historyThe wallet's own buy orders
Newest first, up to 100. The wallet proves the address by signing (EIP-191 personal_sign) the text Zethar buy history\nAddress: <lowercase address>\nIssued: <issuedAt, ISO 8601>. A signature older than 10 minutes (or more than a minute in the future) is refused with 403, so a copied signature stops working. It is a POST so the signature never lands in a URL or an access log.
No parameters.
| Name | Required | Type and limits | Description |
|---|---|---|---|
address | Yes | string | None |
issuedAt | Yes | string (date-time) | None |
signature | Yes | string | 65 bytes of hex, 0x prefixed |
| Status | Meaning | Body |
|---|---|---|
| 200 | OK | BuyOrderListResponse |
| 403 | Signature does not match, or too old | Error |
curl -s -X POST 'https://exchange.zethareum.com/v1/buy/history' \
-H 'Content-Type: application/json' \
--data '{"address":"<address>","issuedAt":"<issuedAt>","signature":"<signature>"}'