Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transfer amounts are inconsistently scaled #192

Open
npomfret opened this issue Aug 6, 2020 · 2 comments
Open

transfer amounts are inconsistently scaled #192

npomfret opened this issue Aug 6, 2020 · 2 comments

Comments

@npomfret
Copy link

npomfret commented Aug 6, 2020

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: ccxt/ccxt#7413

@npomfret
Copy link
Author

npomfret commented Aug 6, 2020

@martin-nginio

@martin-nginio
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants