Hi Team,
I am trying to implement OCO scenario using uplink API. But I am unable to do the same. Here is the payloads.
POSITION PAYLOAD: (NO ISSUES)
{‘quantity’: 15, ‘product’: ‘D’, ‘validity’: ‘DAY’, ‘price’: 545.9, ‘tag’: ‘NSE_FO|47974|2024-08-27 12:57:00|BUY_LIMIT’, ‘instrument_token’: ‘NSE_FO|47974’, ‘order_type’: ‘LIMIT’, ‘transaction_type’: ‘BUY’, ‘disclosed_quantity’: 0, ‘trigger_price’: 546.0, ‘is_amo’: False}
TARGET PAYLOAD:
{‘quantity’: 15, ‘product’: ‘D’, ‘validity’: ‘DAY’, ‘price’: 555.9, ‘tag’: ‘PARENT_ORDER_ID|SELL_LIMIT’, ‘instrument_token’: ‘NSE_FO|47974’, ‘order_type’: ‘LIMIT’, ‘transaction_type’: ‘SELL’, ‘disclosed_quantity’: 0, ‘trigger_price’: 555.0, ‘is_amo’: False}
STOPLOSS PAYLOAD:
{‘quantity’: 15, ‘product’: ‘D’, ‘validity’: ‘DAY’, ‘price’: 535.0, ‘tag’: ‘PARENT_ORDER_ID|SELL_LIMIT’, ‘instrument_token’: ‘NSE_FO|47974’, ‘order_type’: ‘SL’, ‘transaction_type’: ‘SELL’, ‘disclosed_quantity’: 0, ‘trigger_price’: 539.0, ‘is_amo’: False}
I am getting this error RMS:Margin Exceeds,Required:115191.73, Availab
How to solve this issue.
Thanks & Regards
R C Vamsi