IMC API v1
Layr0 India Market Connector exposes REST APIs under /api/v1.
Hosted URL : https://imc.layr0.org/api/v1
Every endpoint that acts on a broker account requires an apikey in the JSON request body. Trading and write endpoints also require mode precondition fields so clients cannot trade against stale live/analyze state.
Response Shape
Successful responses use:
{
"status": "success"
}
Errors preserve IMC-specific fields:
{
"status": "error",
"error_code": "SERVER_MODE_SWITCH_DETECTED",
"message": "Server mode switch detected",
"mode": "analyze",
"balance_type": "sandbox",
"mode_version": 8
}
Clients should not discard fields they do not immediately use. Mode metadata and error_code values are part of the public contract.