# BitMEX API import not working

**URL:** https://discuss.coinpanda.io/t/bitmex-api-import-not-working/177
**Category:** Technical Bugs
**Created:** [November 18, 2021, 3:29pm UTC](https://discuss.coinpanda.io/t/bitmex-api-import-not-working/177 "2021-11-18T15:29:43Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![FrancYescO](https://discuss.coinpanda.io/user_avatar/discuss.coinpanda.io/francyesco/32/31_2.png) [@FrancYescO](https://discuss.coinpanda.io/u/FrancYescO)
#### Post date: [November 18, 2021, 3:29pm UTC](https://discuss.coinpanda.io/t/bitmex-api-import-not-working/177/1 "2021-11-18T15:29:43Z")

</div>

i newly added BitMEX on my account, is anyone using this exchange?  
i made a deposit and just a trade but nothing seems to be imported on coinpanda via API

---

<div class="post-metadata">

### Author: ![eivind](https://discuss.coinpanda.io/letter_avatar_proxy/v4/letter/e/8edcca/32.png) [@eivind](https://discuss.coinpanda.io/u/eivind)
#### Post date: [November 18, 2021, 8:21pm UTC](https://discuss.coinpanda.io/t/bitmex-api-import-not-working/177/2 "2021-11-18T20:21:37Z")

</div>

Hey there,

The BitMEX API returns data also for wallet operations that have not yet occurred (unrealized pnl, etc), so we had to make some changes 1-2 months ago so that we exclude/ignore all transactions happening on the same date as the sync and also any future dates. That means if you ran the sync today (Nov 18), only transactions settled on Nov 17 and prior will be imported. You will need to sync again tomorrow to import today’s transactions.

I don’t remember on top of my head why we had to do this, but I believe it was for a good reason and also necessary to avoid duplicate transactions and/or wrong data imported.

---

<div class="post-metadata">

### Author: ![FrancYescO](https://discuss.coinpanda.io/user_avatar/discuss.coinpanda.io/francyesco/32/31_2.png) [@FrancYescO](https://discuss.coinpanda.io/u/FrancYescO)
#### Post date: [November 22, 2021, 9:42am UTC](https://discuss.coinpanda.io/t/bitmex-api-import-not-working/177/3 "2021-11-22T09:42:35Z")

</div>

Just waited few days, seems transactions still not imported ☹

---

<div class="post-metadata">

### Author: ![David\_Coinpanda](https://discuss.coinpanda.io/user_avatar/discuss.coinpanda.io/david_coinpanda/32/165_2.png) [@David\_Coinpanda](https://discuss.coinpanda.io/u/David_Coinpanda)
#### Post date: [November 22, 2021, 6:54pm UTC](https://discuss.coinpanda.io/t/bitmex-api-import-not-working/177/4 "2021-11-22T18:54:38Z")

</div>

What was the date of that last transaction and any other details you can provide so we can take a look?

---

<div class="post-metadata">

### Author: ![FrancYescO](https://discuss.coinpanda.io/user_avatar/discuss.coinpanda.io/francyesco/32/31_2.png) [@FrancYescO](https://discuss.coinpanda.io/u/FrancYescO)
#### Post date: [November 22, 2021, 7:09pm UTC](https://discuss.coinpanda.io/t/bitmex-api-import-not-working/177/5 "2021-11-22T19:09:52Z")

</div>

Just few hours before I opened this topic

---

<div class="post-metadata">

### Author: ![David\_Coinpanda](https://discuss.coinpanda.io/user_avatar/discuss.coinpanda.io/david_coinpanda/32/165_2.png) [@David\_Coinpanda](https://discuss.coinpanda.io/u/David_Coinpanda)
#### Post date: [November 25, 2021, 11:39pm UTC](https://discuss.coinpanda.io/t/bitmex-api-import-not-working/177/7 "2021-11-25T23:39:27Z")

</div>

Are these transactions for futures? If so, make sure to enable the “import futures trade history” in the API screen page.

![Screenshot from 2021-11-25 15-35-16](https://discuss.coinpanda.io/uploads/default/original/1X/0dbf9b20ee8b4de0018ba799a76d32518be4b123.png)

---

<div class="post-metadata">

### Author: ![FrancYescO](https://discuss.coinpanda.io/user_avatar/discuss.coinpanda.io/francyesco/32/31_2.png) [@FrancYescO](https://discuss.coinpanda.io/u/FrancYescO)
#### Post date: [November 26, 2021, 9:19am UTC](https://discuss.coinpanda.io/t/bitmex-api-import-not-working/177/8 "2021-11-26T09:19:23Z")

</div>

Was a margin trade, enabling this flag imported the trades, but deposit still not shown

---

<div class="post-metadata">

### Author: ![FrancYescO](https://discuss.coinpanda.io/user_avatar/discuss.coinpanda.io/francyesco/32/31_2.png) [@FrancYescO](https://discuss.coinpanda.io/u/FrancYescO)
#### Post date: [November 26, 2021, 10:59am UTC](https://discuss.coinpanda.io/t/bitmex-api-import-not-working/177/9 "2021-11-26T10:59:05Z")

</div>

i’ve also tried CSV upload for deposits, but it spins indefinitely on “Uploading…” (background ajax request returns error 500)

---

<div class="post-metadata">

### Author: ![David\_Coinpanda](https://discuss.coinpanda.io/user_avatar/discuss.coinpanda.io/david_coinpanda/32/165_2.png) [@David\_Coinpanda](https://discuss.coinpanda.io/u/David_Coinpanda)
#### Post date: [November 26, 2021, 5:43pm UTC](https://discuss.coinpanda.io/t/bitmex-api-import-not-working/177/10 "2021-11-26T17:43:01Z")

</div>

Just did a quick test with the Bitmex API and it seems to be working correctly. Is the deposit transaction showing in the CSV file? Is it possible to get a copy of the file so we can check?

---

<div class="post-metadata">

### Author: ![FrancYescO](https://discuss.coinpanda.io/user_avatar/discuss.coinpanda.io/francyesco/32/31_2.png) [@FrancYescO](https://discuss.coinpanda.io/u/FrancYescO)
#### Post date: [November 26, 2021, 6:08pm UTC](https://discuss.coinpanda.io/t/bitmex-api-import-not-working/177/11 "2021-11-26T18:08:35Z")

</div>

Here you are, still failing. [Gofile - Free file sharing and storage platform](https://store4.gofile.io/download/7feb63e9-8c23-48cd-ab7e-f2ed07172652/Wallet%20History%20%202021-11-26.txt)

---

<div class="post-metadata">

### Author: ![eivind](https://discuss.coinpanda.io/letter_avatar_proxy/v4/letter/e/8edcca/32.png) [@eivind](https://discuss.coinpanda.io/u/eivind)
#### Post date: [November 28, 2021, 8:57am UTC](https://discuss.coinpanda.io/t/bitmex-api-import-not-working/177/12 "2021-11-28T08:57:06Z")

</div>

Hey,

Just identified the issue to be that we don’t get wallet balance changes settled in USDT now. Currently, we only get the wallet history in BTC. It will be a quick fix next week!

---

<div class="post-metadata">

### Author: ![eivind](https://discuss.coinpanda.io/letter_avatar_proxy/v4/letter/e/8edcca/32.png) [@eivind](https://discuss.coinpanda.io/u/eivind)
#### Post date: [November 30, 2021, 2:51pm UTC](https://discuss.coinpanda.io/t/bitmex-api-import-not-working/177/13 "2021-11-30T14:51:14Z")

</div>

BitMEX updated today. Please try to sync your wallet again now 🙂

---

<div class="post-metadata">

### Author: ![FrancYescO](https://discuss.coinpanda.io/user_avatar/discuss.coinpanda.io/francyesco/32/31_2.png) [@FrancYescO](https://discuss.coinpanda.io/u/FrancYescO)
#### Post date: [November 30, 2021, 5:47pm UTC](https://discuss.coinpanda.io/t/bitmex-api-import-not-working/177/14 "2021-11-30T17:47:22Z")

</div>

There is some issue with the values…

i made a loss of 0.54USDT but here is imported as -0.0054478 USDT

instead my deposit was of 259USDT and is imported as 2.5993 USDT

all values must be \*100

---

<div class="post-metadata">

### Author: ![eivind](https://discuss.coinpanda.io/letter_avatar_proxy/v4/letter/e/8edcca/32.png) [@eivind](https://discuss.coinpanda.io/u/eivind)
#### Post date: [November 30, 2021, 6:21pm UTC](https://discuss.coinpanda.io/t/bitmex-api-import-not-working/177/15 "2021-11-30T18:21:24Z")

</div>

Aha, looks like BitMEX uses a different number of decimals for USDT than BTC. Should be updated tomorrow.

---

<div class="post-metadata">

### Author: ![eivind](https://discuss.coinpanda.io/letter_avatar_proxy/v4/letter/e/8edcca/32.png) [@eivind](https://discuss.coinpanda.io/u/eivind)
#### Post date: [December 3, 2021, 9:24am UTC](https://discuss.coinpanda.io/t/bitmex-api-import-not-working/177/16 "2021-12-03T09:24:46Z")

</div>

Updated now. Please check again!

---

<div class="post-metadata">

### Author: ![FrancYescO](https://discuss.coinpanda.io/user_avatar/discuss.coinpanda.io/francyesco/32/31_2.png) [@FrancYescO](https://discuss.coinpanda.io/u/FrancYescO)
#### Post date: [December 3, 2021, 9:59am UTC](https://discuss.coinpanda.io/t/bitmex-api-import-not-working/177/17 "2021-12-03T09:59:14Z")

</div>

looks good 🙂 -----------

---

<div class="post-metadata">

### Author: ![eivind](https://discuss.coinpanda.io/letter_avatar_proxy/v4/letter/e/8edcca/32.png) [@eivind](https://discuss.coinpanda.io/u/eivind)
#### Post date: [December 3, 2021, 12:04pm UTC](https://discuss.coinpanda.io/t/bitmex-api-import-not-working/177/18 "2021-12-03T12:04:33Z")

</div>


