Skip to content

Conventions

These rules apply to every Global Stocks API. Read this page before you write production code.

Requests

  • Base URL: https://api.indmoneyglobal.com.
  • Header: Authorization: YOUR_ACCESS_TOKEN.
  • POST bodies are JSON, sent with Content-Type: application/json.
  • Send numbers as JSON numbers: "price": 20, not "price": "20".
  • To skip an optional field, leave it out. A null value is rejected.
  • Fields the API doesn't recognise, including misspelt ones, are rejected.
  • Values aren't rounded. A value with more decimal places than allowed returns 400.

Responses

Check the HTTP status first, then read the body. Responses come in one of two formats.

Market data, orders, order book and portfolio:

JSON
{"status": "success", "data": { }}
JSON
{"status": "error", "error": {"code": "invalid_order_payload", "message": "exactly one of quantity or amount is required"}}

Wallet and user profile:

JSON
{"success": true, "data": { }}
JSON
{"success": false, "error": {"code": "api_authentication_failed", "message": "API authentication failed"}}

In both formats, errors are in error.code and error.message. Use error.code in your code; the message is for people to read and can change. See Errors.

IDs and time

Item Format
security_id, order_id Strings of digits, e.g. "116532". Store them as strings.
Market status times Epoch seconds
Quote ts, WebSocket timestamp, ltt Epoch milliseconds
Order and holding times ISO 8601 with offset, e.g. 2026-11-11T20:42:22.374511+05:30
Trading day New York date. The order book starts afresh at midnight New York time.

Rate limits

Limits apply per user. If you go over a limit, you get 429 with a Retry-After header in seconds. Wait that long before you try again.

Endpoint Limit
POST /v1/order/place 5 per minute, and at most 5 per second
POST /v1/order/cancel 5 per minute
GET /v1/orders and GET /v1/orders/{order_id} 10 per minute, shared
GET /v1/portfolio 10 per minute
GET /v1/wallet 10 per minute
GET /v1/user/profile 10 per minute
GET /v1/market/status 5 per second
GET /v1/market/instruments 5 per second
GET /v1/market/quotes/{mode} 5 per second

Requests rejected with 429 don't count towards your limit. Requests that fail validation do.

Retrying an order

Each place request creates a new order, so sending the same request twice places two orders. If a request times out or the connection drops before you get a response, check the order book to see whether the order was placed before you send it again. See Errors: retrying requests.