Invertee / CoinbasePro-Powershell

Powershell module for the CoinbasePro API.
MIT License
11 stars 6 forks source link

Can´t connect to new created API because of "wrong" API Key #10

Closed ChristianTroll closed 3 years ago

ChristianTroll commented 3 years ago

Hi, i just startet new with this API and the Powershell extension. First of all, thanks for creating it! Yesterday i created my API for Coinbase and Pro. Now i want to connect. Created variables for $ApiKey, $ApiPassphrase and $ApiSecret (values are correct) Used command: $Account = Get-CoinbaseAccounts -APIKey $APIKey -APISecret $APISecret -APIPhrase $APIPassphrase

Result: Invoke-CoinbaseProRequest : Unauthorized. Invalid API Key In D:_GIT\CoinbasePro-Powershell\Functions\Private\Get-CoinbaseAccounts.ps1:17 Zeichen:17 $response = Invoke-CoinbaseProRequest $api CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-CoinbaseProRequest

What do i make wrong? Any help would be nice. Thanks

ChristianTroll commented 3 years ago

Found the problem: For whatever reason need to change row in "Invoke-CoinbaseRequest.ps1" from $Timestamp = ([math]::Round($Timestamp, 3)).ToString() to $Timestamp = ([math]::Round($Timestamp, 0)).ToString()

stephenc01 commented 3 years ago

Hey, I just tested and cannot reproduce this. What PS version are you using? I tested on 7.1

Invertee commented 3 years ago

Duplicate of #9