Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coinbase api_key file format issue? #851

Open
shervin422 opened this issue Sep 28, 2024 Discussed in #850 · 1 comment
Open

coinbase api_key file format issue? #851

shervin422 opened this issue Sep 28, 2024 Discussed in #850 · 1 comment

Comments

@shervin422
Copy link

Discussed in #850

Originally posted by shervin422 September 28, 2024
I am hoping to use the coinbase exchange via the api key I have setup on my coinbase account. However, I keep getting the same error when launching the bot:

                  File "/home/pitower/pycryptobot/pycryptobot.py", line 21, in <module>
                    main()
                  File "/home/pitower/pycryptobot/pycryptobot.py", line 12, in main
                    app = PyCryptoBot()
                          ^^^^^^^^^^^^^
                  File "/home/pitower/pycryptobot/controllers/PyCryptoBot.py", line 77, in __init__
                    super(PyCryptoBot, self).__init__(filename=self.config_file, exchange=exchange)
                  File "/home/pitower/pycryptobot/models/BotConfig.py", line 181, in __init__
                    self.read_config()
                  File "/home/pitower/pycryptobot/models/BotConfig.py", line 227, in read_config
                    coinbaseConfigParser(self, self.config[self.exchange.value], self.cli_args)
                  File "/home/pitower/pycryptobot/models/config/coinbase_parser.py", line 83, in parser
                    raise TypeError("Coinbase API key is invalid")
                TypeError: Coinbase API key is invalid

Hoping to confirm whether my coinbase.key file needs to be formatted in any particular way? I have previously had success using the binance exchange with my binance.key formatted simply in two lines - this doesn't seem to work with coinbase. I suspect I may be including information not required such as "organizations/ or "apikeys/"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@shervin422 and others