BTCMarkets / API

API
120 stars 30 forks source link

transfer amounts are inconsistently scaled #192

Open npomfret opened 4 years ago

npomfret commented 4 years ago

It seems that sometimes amounts in transfers are scaled (eg ETH & BTC), and sometimes they are not (eg XRP). Is there any metadata available that I can use to determine if amounts need to be scaled or not?

See: https://github.com/ccxt/ccxt/issues/7413

npomfret commented 4 years ago

@martin-nginio

martin-nginio commented 4 years ago

Hi @npomfret

Many thanks for spending time to upgrade BTC Markets' API version in ccxt project.

Please note our API v3 will always return amounts in String format and so no scaling will be applied to amounts (e.g. deposit amount, order volume, etc) . However API v2/v1 scale numbers with 10^8 so I'd encourage to use the latest API version (v3) for consistency.

Thanks.

Regards, Martin