Global Stocks APIs¶
Trade US stocks and ETFs, and UCITS ETFs listed on the London Stock Exchange (LSE), from your own code: look up instruments, read live prices, place and cancel orders, and read your holdings and wallet.
Global Stocks APIs have their own base URL, instrument IDs and error codes. You use the same access token as for Indian Stocks APIs.
Who can use it¶
You can use Global Stocks APIs if you have a US stocks account with INDmoney. You don't need an Indian stocks account.
You don't need to register a static IP or sign the API undertaking for Global stocks. Those apply to Indian stocks only.
Base URLs¶
| Use | URL |
|---|---|
| REST API | https://api.indmoneyglobal.com |
| Live prices (WebSocket) | wss://ws-prices.indmoneyglobal.com/api/v1/ws/prices |
| Token generation | https://api.indmoney.com/generate/token |
Your live account
Every request works on your live INDmoney account, and every order you place is a live order. To try order placement, follow Getting started: it uses a LIMIT order priced well below the market, which you then cancel.
Endpoints¶
| Area | Method | Path | Page |
|---|---|---|---|
| Market status | GET | /v1/market/status | Market data |
| Instruments | GET | /v1/market/instruments | Instruments |
| Quotes | GET | /v1/market/quotes/{ltp\|full} | Market data |
| Live prices | WSS | /api/v1/ws/prices | Live prices |
| Place order | POST | /v1/order/place | Place order |
| Cancel order | POST | /v1/order/cancel | Cancel order |
| Order book | GET | /v1/orders | Order book |
| Get order | GET | /v1/orders/{order_id} | Order book |
| Portfolio | GET | /v1/portfolio | Portfolio and wallet |
| Wallet | GET | /v1/wallet | Portfolio and wallet |
| User profile | GET | /v1/user/profile | User profile |
One access token for Indian and Global stocks
Your access token works for both Indian Stocks APIs and Global Stocks APIs. When you generate a new token, it replaces the previous one for both. If you trade Indian and Global stocks from code at the same time, generate one token and use it in both. See Authentication.
Next steps¶
- Get an access token.
- Follow Getting started to fetch a quote and place your first order.
- Read Conventions before you write production code.