To fetch MCX SILVER intraday candle using java

Using Java, while pulling intraday SILVER FUT I am getting error

String intraurl = “https://api.upstox.com/v3/historical-candle/intraday/MCX_FO|INE440576/minutes/1”;

Error: 400 - {“status”:“error”,“errors”:[{“errorCode”:“UDAPI100011”,“message”:“Invalid Instrument key”,“propertyPath”:null,“invalidValue”:null,“error_code”:“UDAPI100011”,“property_path”:null,“invalid_value”:null}]}

But it works fine for TATA Motors EQ.
NSE_EQ|INE155A01022 is the instrument key, but why are we using 7C at first.

String intraurl = “https://api.upstox.com/v3/historical-candle/intraday/NSE_EQ|INE155A01022/minutes/1”;

@ariyur_43195275 Please ensure you’re using the correct instrument key for SILVER FUT: MCX_FO|436580. You can try with the following URL:

https://api.upstox.com/v3/historical-candle/intraday/MCX_FO%7C436580/minutes/1

Here, %7C represents the pipe character (|), which serves as a separator in the instrumentKey.

I hope this helps. Thank you!

1 Like

Thank you. It worked.

Thank you. I got that.

1 Like