title: Authenticating API in R
body: <p>I'm trying to access Bitfinex via api but struggling to properly authenticate my request. There is a Python example of what I want to do (<a href="https://gist.github.com/jordanbaucke/5812039" rel="nofollow noreferrer">https://gist.github.com/jordanbaucke/5812039</a>) but I can't seem to get it to work in <code>R</code>.</p>
  
  <pre><code>key &lt;- c("MY API KEY")
  secret = c("MY API SECRET")
  
  req &lt;- GET("https://api.bitfinex.com/v1/balances", 
                 authenticate(key, secret))
                 add_headers(X-BFX-APIKEY = key))
      stop_for_status(req)
      content(req)
  </code></pre>
  
  <p>Can someone tell me what I'm doing wrong?</p>