title: How can I properly call this API with authentication? [Python/JSON]
body: <p>my python is alright but I am terrible when it comes to understanding APIs, and I'm really stuck on understanding how to authenticate my call to this certain library. I know how to handle JSON data when I receive it, but I cannot even access JSON properly because I'm failing to authenticate the call to this library and there is nothing written online besides the actual documentation. </p>
  
  <p>I've tried using HTTPDigestAuth and OAuth1 and 2 to no avail.
  This is the documentation:
  <a href="https://coinigy.docs.apiary.io/#reference/market-data/market-data" rel="nofollow noreferrer">https://coinigy.docs.apiary.io/#reference/market-data/market-data</a></p>
  
  <p>At the top of the docs it says the REST URI is <a href="https://api.coinigy.com/api/v1/" rel="nofollow noreferrer">https://api.coinigy.com/api/v1/</a>
  And I have been inputting my api key and secret key but the json returns failed authentication attempt, which I know means I am not authenticating correctly. My attempt is:</p>
  
  <pre><code>import requests
  
  url = 'https://api.coinigy.com/api/v1/'
  payload = {'X-API-KEY': '', 'X-API-SECRET': ''}
  
  
  r = requests.get(url, params=payload)
  print(r.json())
  </code></pre>
  
  <p>What type of authentication does this actually require, and how can I properly authenticate it with URL, key and secret key?</p>