Giter Site home page Giter Site logo

Comments (4)

mattdperkins avatar mattdperkins commented on June 11, 2024

I was having an auth error as well using the basic info from the readme.

require 'bitfinex-api-rb'  

require_relative 'config'  

client = Bitfinex::Client.new  

client.account_info  

irb(main):022:0> client.account_info  
Bitfinex::InvalidAuthKeyError: Bitfinex::InvalidAuthKeyError  
	from /usr/local/share/gems/gems/bitfinex-rb-0.0.11/lib/bitfinex/authenticated_rest.rb:6:in   `authenticated_post'  
	from /usr/local/share/gems/gems/bitfinex-rb-0.0.11/lib/bitfinex/account_info.rb:11:in `account_info'  
	from (irb):22  
	from /usr/bin/irb:11:in `<main>' 

Solved it by changing the secret and key setup slightly:

Bitfinex::Client.configure do |conf|  
  conf.secret = "xxxxxxxxx"  
  conf.api_key = "xxxxxxxxx"  
end  
` ``



from bitfinex-api-rb.

MonsieurLanza avatar MonsieurLanza commented on June 11, 2024

ENV[...] is an environment variable. You should not keep your secrets in the code, instead you may keep it in a .env file. This what the example in the readme is for.

from bitfinex-api-rb.

ilyacherevkov avatar ilyacherevkov commented on June 11, 2024

I'm having the same issue with WS v2 occasionally. It just not passing authentication from time to time.

from bitfinex-api-rb.

f3rno avatar f3rno commented on June 11, 2024

I'm closing this as it is outdated, the repo has been (mostly) completely rewritten.

from bitfinex-api-rb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.