BitMEX / api-connectors

Libraries for connecting to the BitMEX API.

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

xAzigo opened this issue · comments

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?