What you can do
Every call exists in two environments, with the same paths under different base paths:
- Test,
/api/trading/test/v1: simulated orders. Nothing is booked, so you can build and test freely. - Production,
/api/trading/v1: real orders, booked exactly like an order you place in the app.
Base URL
Once the API is available, the base URL is:GET /me will be https://api.bullionwale.com/api/trading/test/v1/me. Check the availability notice above before you call it.
Things to know before you start
- You do not create keys yourself. Bullionwale turns on API access for your account and issues your keys. See Getting access.
- Quantities are weights, not lots. A quantity is in the symbol’s measure: grams for gram-quoted symbols, kilograms for kilogram-quoted ones. Each order response says which in
unit. - Amounts are strings. Prices, totals, quantities and positions come back as decimal strings such as
"141250.00". Parse them as decimals, not floats. - Limits are weight, not money. Your account has a weight allocation per metal. There is no rupee margin check on a market order. See Orders, status and positions.
- Retries are safe only with the same
Idempotency-Key. See Idempotency and safe retries.
Quickstart
From a test key to your first simulated order.
Getting access
How API access is turned on and how keys are issued.
Errors and troubleshooting
Every error code, rate limits, and what to do.
API reference
Every endpoint, generated from the OpenAPI spec.