dougdellolio / coinbasepro-csharp

The unofficial .NET/C# client library for the Coinbase Pro/GDAX API
MIT License
192 stars 90 forks source link

bid, ask and price incorrect in api #217

Closed forReason closed 4 years ago

forReason commented 4 years ago

I am having issues of the Prices beeing wrong coming from GetProductTicketAsync

This is my code: var response = await ProClient.ProductsService.GetProductTickerAsync(CoinbasePro.Shared.Types.ProductType.BtcEur);

the askprice which comes back is 100000

dougdellolio commented 4 years ago

hi @forReason . are you using sandbox or live servers? I am seeing correct pricing on live but sandbox usually returns 100000.

forReason commented 4 years ago

ahh thank you. I used Sandbox. Also, what is the "unsignedSignature" in the Authenticator? I have set it like this, I hope its correct: private static protected Authenticator authenticator = new Authenticator(Credentials.ProApiKey, Credentials.ProApiSecret, Credentials.ProPassphrase); I used the secret for unsigned signature and for the pasphrase i had to create a second api key because it is only shown at generation time.

dougdellolio commented 4 years ago

looks like you have it right. the unsigned signature is the same as the API secret that is generated and shown only once (the long string of characters).

let me know if there's any other problem, thanks!

forReason commented 4 years ago

Thank you, your help is much appreciated.