ccxt / ccxt

A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges
https://docs.ccxt.com
MIT License
33.42k stars 7.57k forks source link

Bitso: Invalid Nonce or Invalid Credentials (0215 Incorrect request signature) #24419

Open c0dehunter opened 1 day ago

c0dehunter commented 1 day ago

Programming Languages

PHP

CCXT Version

4.4.35

Description

It seems the sign() function for Bitso exchange isn't correctly signing the request. We are getting error:

[Bitso Exchange Error] {\"success\":false,\"error\":{\"message\":\"Invalid Nonce or Invalid Credentials\",\"code\":\"0215\",\"details\":[],\"errorData\":null}}

As per Bitso API docs: 0215 Incorrect request signature

https://docs.bitso.com/bitso-api/docs/create-signed-requests

We created a fresh API key just to be sure, and it's the same issue.

Code

$id = "\\ccxt\\bitso";
$exchange = new $id();
$exchange->apiKey = $key;
$exchange->secret= $secret;
$exchange->enableRateLimit = true;
$exchange->load_markets();
var_dump($exchange->fetch_balance()));
yzh-pelle commented 1 day ago

Hi @c0dehunter! Thank you for your report! We are working on it.