ExchangeSharp icon indicating copy to clipboard operation
ExchangeSharp copied to clipboard

Coinbase is not authenticating, at least in sandbox

Open artemiusgreat opened this issue 1 year ago • 0 comments
trafficstars

Trying to get authenticated by Coinbase Advanced API Sandbox.

var exchange = await ExchangeAPI.GetExchangeAPIAsync(ExchangeName.Coinbase);
exchange.LoadAPIKeysUnsecure(ConsumerKey, ConsumerSecret, ConsumerPassword);
exchange.BaseUrlWebSocket = "wss://ws-feed-public.sandbox.exchange.coinbase.com";
exchange.BaseUrl = "https://api-public.sandbox.exchange.coinbase.com";

Getting Invalid passphrase exception when executing some simple request, e.g. get ticker info.

exchange.GetTickerAsync("BTC-USD")

Keys were generated here. https://public.sandbox.exchange.coinbase.com/apikeys

Considering recent changes in Coinbase, is this initialization still valid or I need to generate signature myself using CryptoUtility and somehow include it as a bearer token in every request?

artemiusgreat avatar Mar 20 '24 16:03 artemiusgreat