When I try to send GET request to a specific URL with python requests library, I get an error because requests lib does not make query string from params parameter in requests.get method and does not add that query string to the URL. But when I do exactly the same thing to another URL and put to params anything else, everything works as expected.
There is my code and output:
In [1]: import requests
In [2]: r = requests.get('https://bitmex.com/api/v1/user/margin', params={'currency': 'all'})
In [3]: r.request.url
Out[3]: 'https://www.bitmex.com:443/api/v1/user/margin'
In [4]: r = requests.get('https://google.com/bla/bla', params={'a': 1})
In [5]: r.request.url
Out[5]: 'https://google.com/bla/bla?a=1'