BTCMarkets / API

API
120 stars 30 forks source link

WebSocket v2 - fundChange type always "Deposit" #205

Open simbesh opened 1 year ago

simbesh commented 1 year ago

While testing the fundChange channel, It seems "Deposit" is always sent.

here are some withdrawals I made:

{
    "fundtransferId": 6502310512,
    "type": "Deposit",
    "status": "Pending Authorization",
    "timestamp": "2023-04-14T00:15:16.645Z",
    "messageType": "fundChange",
    "currency": "LTC",
    "amount": "10",
    "fee": "0"
  },
  {
    "fundtransferId": 6502310496,
    "type": "Deposit",
    "status": "Pending Authorization",
    "timestamp": "2023-04-13T23:52:55.622Z",
    "messageType": "fundChange",
    "currency": "LTC",
    "amount": "63.14840715",
    "fee": "0"
  }

image

As you can see the type looks incorrect.

martin-nginio commented 3 months ago

Hi @simbesh @MediVik333

Thanks for reporting this issue and sorry for not responding earlier.

This is correct and has been added to our roadmap for next update of the WebSocket API.

martin-nginio commented 3 months ago

In the meantime and as a workaround and if you are interested in getting more data (or at least correct transfer type) for the after receiving the WebSocket fundChange event, please call the following Rest API in order to get a list of recent transfers that you can compare with the transferId arrived with the event: https://docs.btcmarkets.net/#tag/Fund-Management-APIs/paths/~1v3~1transfers/get

Thanks.

martin-nginio commented 3 months ago

Hi @simbesh @MediVik333

This issue has been fixed today.

If you can please take a look and let us know if you are still observing the same issue.

Thanks for your feedback again.