Base URL and paths
Once the API is available, the base URL ishttps://api.bullionwale.com. Each endpoint exists in both environments:
Authentication
Send your API key in theX-API-Key header on every call. A test key (bwk_test.…) works only on the test paths and a live key (bwk_live.…) only on the production paths. See Getting access.
Conventions
- Request and response bodies are JSON.
- In requests,
quantityandexpected_priceare JSON numbers. In responses, every amount and weight is a decimal string. - Quantities are weights in the symbol’s measure (
unit:gorkg), not lots. - Times are ISO 8601. Responses include the UTC offset; a
sincefilter without a zone is read as UTC. POST /ordersrequires anIdempotency-Keyheader. See Idempotency.- Every refusal is
{"detail": {"code": ..., "message": ...}}. See Errors for every code.