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

Futures order amount #46

Open
devops35 opened this issue May 18, 2024 · 1 comment
Open

Futures order amount #46

devops35 opened this issue May 18, 2024 · 1 comment

Comments

@devops35
Copy link

I didn't fully understand futures order. For example, I will buy $5 dogecoin. I couldn't understand how to enter 5 dollars into the API. Can you help me? I think I need to set this $5 with another api request. But how and where do I do it?

By looking at the process on the web, I enter size as 1 and price as 0. In this case, it tries to do the same thing I did last time on the web.

@revilwang
Copy link
Collaborator

size parameter in FuturesOrder is the number of contracts placed. If you want to input amount in USDT, you need to calculated the size using the quanto_multiplier(which is how much USDT 1 contract represents) in contract detail. For instance, the quanto_multiplier for DOGE_USDT is 10, so you cannot buy $5, because the minimum size is 1, which is 10 USDT

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