not able to find symbols of margines of currency

ayyaz
i am not able to find symbols for currency (USDINR,EURINR) in https://api.kite.trade/margins/currency , whereas i can see respective details in futures in https://api.kite.trade/margins/futures
i would like to know from where i can fetch details of currency related to margine , expiry , lotsize etc..
  • sujith
    Hi @ayyaz,
    NSE doesn't offer currency spot trading. They only offer futures trading.
  • ayyaz
    yeah i know , i am find mis_margin, lotsize and expiry related data of future for currency can you please let me where it is available like https://api.kite.trade/margins/futures
  • ayyaz
    File "future_symbols.py", line 268, in
    data=pull_json('https://api.kite.trade/margins/futures')
    File "future_symbols.py", line 136, in pull_json
    f = urllib.urlopen(url)
    File "/usr/lib/python2.7/urllib.py", line 87, in urlopen
    return opener.open(url)
    File "/usr/lib/python2.7/urllib.py", line 213, in open
    return getattr(self, name)(url)
    File "/usr/lib/python2.7/urllib.py", line 443, in open_https
    h.endheaders(data)
    File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders
    self._send_output(message_body)
    File "/usr/lib/python2.7/httplib.py", line 897, in _send_output
    self.send(msg)
    File "/usr/lib/python2.7/httplib.py", line 859, in send
    self.connect()
    File "/usr/lib/python2.7/httplib.py", line 1278, in connect
    server_hostname=server_hostname)
    File "/usr/lib/python2.7/ssl.py", line 353, in wrap_socket
    _context=self)
    File "/usr/lib/python2.7/ssl.py", line 601, in __init__
    self.do_handshake()
    File "/usr/lib/python2.7/ssl.py", line 830, in do_handshake
    self._sslobj.do_handshake()
    KeyboardInterrupt

    i get this error frequently(randomly) while pulling from above mentioned site , it works most of time but some time i get these issues
  • ayyaz
    if i down the same and upload it to other site and connect from there it just works
  • ayyaz
    finding multiple problems while pulling from https site , is it possible to provide http path which will make it error free
Sign In or Register to comment.