Skip to main content

ModifyOrder

POST /api/v1/modifyorder​

Endpoint URL​

Hosted URL   :  POST https://imc.layr0.org/api/v1/modifyorder

Sample API Request​

{
"apikey": "<your_app_apikey",
"strategy": "Test Message",
"symbol": "USDINR15MAR2483CE",
"action": "BUY",
"exchange": "CDS",
"orderid": "240307000562466",
"product": "NRML",
"pricetype": "LIMIT",
"price": "0.0050",
"quantity": "1",
"disclosed_quantity": "0",
"trigger_price": "0",
"expected_mode": "analyze",
"expected_balance_type": "sandbox",
"expected_mode_version": 7,
"request_id": "saved-example-001"
}

Sample API Response​

{
"orderid": "240307000562466",
"status": "success"
}

Parameter Description​

ParametersDescriptionMandatory/OptionalDefault Value
apikeyApp API keyMandatory-
strategyStrategy nameMandatory-
symbolTrading SymbolMandatory-
actionAction (BUY/SELL)Mandatory-
exchangeExchangeMandatory-
orderidOrder IDMandatory-
productProduct typeMandatory-
pricetypePrice typeMandatory-
quantityQuantityMandatory-
pricePriceMandatory0
trigger_priceTrigger priceMandatory0
disclosed_quantityDisclosed quantityMandatory0

Required mode metadata​

Copy the current mode, balance type and version from Funds or Analyzer; the values above are illustrative. A fresh request ID identifies each ordinary operation.

FieldRequiredMeaning
expected_modeYesCurrent live or analyze state
expected_balance_typeYesCurrent live or sandbox balance
expected_mode_versionYesCurrent API-key mode version
request_idYesCaller-generated operation identifier

Documentation metadata is prohibited in executable requests. See request validation.