# 0022. INDmoney has a Global Stocks API, and it changes the transfer graph - **Status:** Accepted - **Date:** 2026-11-30 - **Deciders:** project owner ## Context ADR-0019 and the queue both assumed the US leg of an India→US capital move could not be automated, because INDmoney's US-stock feature was described to me as app-only. That was wrong. INDmoney publishes a separate **Global Stocks API** at `api.indmoneyglobal.com` covering US exchanges (NYSE, NASDAQ, NYSE Arca) and LSE-listed UCITS ETFs, with orders, fractional shares, dollar-amount orders, bracket orders and GTC — using **the same access token** as the Indian API, and requiring **no static IP**. Three consequences follow, and one of them is a warning rather than an opportunity. ## Decision **1. The US leg is automatable.** `indmoney-global` becomes a node in the transfer graph with a USD ledger, and a second adapter rather than a manual task list. **2. The LRS constraint does not disappear.** The graph edge that crosses from INR to USD is still a remittance through a bank under the annual cap; INDmoney performs it, we do not. Automating the *purchase* on the far side does not automate the *movement* to it. **3. The global API has no server-side idempotency, and that is load-bearing.** Its own documentation says each place request creates a new order and advises checking the order book after a timeout. `remarks` is a free-text note, not a key. So invariant 5 has to be enforced entirely on our side: never blind-retry, always read the book before resending, and treat `order_outcome_unknown` (503) as "stop and look" rather than "retry". **4. Placement reports acceptance, not fills.** A place returns `ACCEPTED` and nothing about the fill; the adapter must read the order book. The Indian API behaves the same way. An adapter that returns the place-response as the order will book nothing while the venue fills in the background, and the next reconciliation will see a phantom position and halt the sleeve. ## Consequences **Easy:** the US side of the routing story becomes executable rather than aspirational; one token covers both markets; the Indian static-IP burden stops applying to the US leg. **Hard:** two adapters from one vendor with different dialects (envelopes differ, `security_id` namespaces differ, status vocabularies differ), and no server-side idempotency on the global side means our order store is the only defence against a duplicate order. **Corrected:** the claim in ADR-0019 that the US leg has "no order API" is withdrawn. The graph topology changes; the graph abstraction does not, which is the point of having modelled it. ## Alternatives rejected - **Leave the US leg manual.** Now that an API exists, that is a self-imposed limit rather than a constraint, and it makes the routing story a demo rather than a feature. - **Route the US leg through IBKR only.** Still supported — the graph allows it — but it is a cross-entity remittance with a bank in the middle, which is strictly worse than a single provider that handles the LRS for you. ## Amendment (2026-11-30): the purchase API is real; the funding API does not exist This ADR's decisions stand, but its second point needs its boundary made explicit: INDmoney's Global API automates the **purchase** on the far side, not the **movement** to it. The API's complete surface is eleven operations (market status/instruments/quotes/ws, order place/cancel, orders and order-by-id, portfolio, wallet, user profile); there is no funding, deposit, remittance, bank-link, mandate or withdrawal endpoint, no webhook, and `GET /v1/wallet` returns balances only. So the LRS remains a human act in the app or an AD Category-I bank's portal (SBM, HDFC, Axis, Federal), with a per-transaction Form A2 declaration, PAN, and a one-time net-banking/UPI link plus autopay — which is why the graph's LRS edge is `MANUAL`, states why in one line, and an expected inflow is tracked as an `ExpectedCredit` reconciled against wallet reads rather than assumed. Operationally the numbers are USD 250,000 per financial year and 20% TCS above ₹10 lakh per financial year as modelled (GAP-064: re-check each year); sources are listed in the ADR-0019 amendment and include the endpoint table at , the Indian OpenAPI spec , the RBI LRS Master Direction and the bank portals above. The consequence for this ADR is narrow but important: `SUPPORTED` for trading can be earned by a captured placement, but no amount of capture will make funding executable, so the desk must never render the two halves as one automated path.