I am trying to get margin for an instrument using this but i keep getting this instead <Response [400]> b'{"status":"error","message":"Invalid `api_key` or `access_token`.","data":null,"error_type":"InputException"}' I have changed access token for about 5 to 6 times, but the response is still the same. Please advice
Authorization
header properly?For ease, you can try using kite connect python client. It has a method to make an Order Margin call.