curl and Python with the requests library.
1
Get a test key
Ask your Bullionwale relationship manager or the Bullionwale desk to turn on API access for your account and to issue a test key with the
orders:write scope. See Getting access.The key is shown to you once. Store it in a secret manager, then make it available to your program as an environment variable:2
Check the key
Call
GET /me. It confirms which account and key you are using.200
3
Place a simulated order
Send A test order is filled at once and answers
POST /orders with an Idempotency-Key header. Use a new UUID for each order, and keep it: if the request times out, you resend it with the same key. See Idempotency and safe retries.201 Created:201
quantity is a weight in unit (here 10 grams). price is the rate per the symbol’s quoted measure (for this gold symbol, per 10 grams) and total is the order’s value in rupees.4
Read it back
Use the
id from the response.200
Next steps
- Your first test order goes further: replays, listing, positions and the common errors.
- Test and production explains what changes when you move to real orders.
- Production access requirements lists what must be in place before you can place a real order.