Bitmex sends balance in XBt (Currency property), which is value in satoshis, exactly the same as it works inside official BTC Core implementation.
Decimals are good for humans but not computers (because of rounding errors), so you need to divide the balance by 10^8 to get value in BTC.
I've prepared utilities, there is BalanceBtc property on Wallet object and also static class BitmexConverter which has method like ConvertToBtc(string from, long value).
Hello,
Bitmex sends balance in
XBt
(Currency
property), which is value insatoshis
, exactly the same as it works inside official BTC Core implementation. Decimals are good for humans but not computers (because of rounding errors), so you need to divide the balance by 10^8 to get value inBTC
.I've prepared utilities, there is
BalanceBtc
property onWallet
object and also static classBitmexConverter
which has method likeConvertToBtc(string from, long value)
.