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

Limit orders require 11.05x the amount I'm trying to sell. #509

Open
xAzigo opened this issue Mar 19, 2022 · 0 comments
Open

Limit orders require 11.05x the amount I'm trying to sell. #509

xAzigo opened this issue Mar 19, 2022 · 0 comments

Comments

@xAzigo
Copy link

xAzigo commented Mar 19, 2022

My new account has 0.01 XBT

I'm trying to enter a limit order to sell 0.001 XBT for $100,000

I'm trying to execute the following to do so:

if leverage != 1 :
        client.Position.Position_updateLeverage(symbol=symbol, leverage=leverage).result()

client.Order.Order_new(symbol="XBTUSD", ordType="Limit", orderQty=-100000, price=100000).result()

For some reason I am getting back an error saying the following:

Account has insufficient Available Balance, 100150000 XBt required

I understand there could possibly be confusion with what 1 contract equals.

This document suggests 1 contract = 1 USD

https://www.bitmex.com/app/contract/XBTUSD

This document suggest 1 contract = 1 satoshi

https://www.bitmex.com/app/restAPI

maybe that's where I've got mixed up?

@xAzigo xAzigo changed the title Limit orders require 11.5x the amount I'm trying to sell. Limit orders require 11x the amount I'm trying to sell. Mar 19, 2022
@xAzigo xAzigo changed the title Limit orders require 11x the amount I'm trying to sell. Limit orders require 11.05x the amount I'm trying to sell. Mar 19, 2022
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

1 participant