Skip to content

coinbase api_key file format issue? #851

@shervin422

Description

@shervin422

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/"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions