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

[info] how to increase precision #562

Open
MushiTheMoshi opened this issue May 12, 2024 · 6 comments
Open

[info] how to increase precision #562

MushiTheMoshi opened this issue May 12, 2024 · 6 comments

Comments

@MushiTheMoshi
Copy link

Hi there,

Greatly appreciated all work done here.

Wondering how to increase asset precision on futures.WsKlineServe, I can only see 2 decimals, I would like to see the full number decimal available, I read about the precision but unsure how to set up from the lib.

Hope you can help me.

Regards,
Julio

@xyq-c-cpp
Copy link
Collaborator

what you mean, can you give a example? @MushiTheMoshi

@MushiTheMoshi
Copy link
Author

if I want to buy 0.000015 BTC (which is 200 usd) I can't because the precision is set to only 2 decimals meaning that I can only buy min 0.01 BTC, is there a way to update this value to be able to buy 0.000015?

@MushiTheMoshi
Copy link
Author

if precision it's not the correct route, I'd appreciate if you can point me in the right direction... thanks

@xyq-c-cpp
Copy link
Collaborator

if I want to buy 0.000015 BTC (which is 200 usd) I can't because the precision is set to only 2 decimals meaning that I can only buy min 0.01 BTC, is there a way to update this value to be able to buy 0.000015?

which place said there's only 2 decimals? you can't create order with 0.000015BTC by the rest api interface?

@MushiTheMoshi
Copy link
Author

MushiTheMoshi commented Jun 20, 2024

I can't create an order with this size '0.000015BTC' with the futures - rest api, that's correct. I can only see 2 decimals when reading the data via kline websocket...

@xyq-c-cpp
Copy link
Collaborator

I can't create an order with this size '0.000015BTC' with the futures - rest api, that's correct. I can only see 2 decimals when reading the data via kline websocket...

Show me your wsklineserve data print

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