BTCMarkets / API

API
120 stars 30 forks source link

Trade event only returns partial result in WebSocket #140

Closed it-blockchainglobal closed 4 years ago

it-blockchainglobal commented 6 years ago

The Trade Event via WebSocket runs fines, however, it only returns an object with order id without any details which lists all filled trades information like "price", "volume", "side" or "fees". you need to run another REST API request to get the specific order by id. It will consume one API request and will soon reach the cap of API usage limitation in a high-frequency situation.

Is there a way that we are able to get a full detail response via the WebSocket when trades happen?

martin-nginio commented 5 years ago

Hi @it-blockchainglobal

Thanks for your feedback.

Our team is releasing a new version of WebSocket feed which improves many aspect of the existing solution so please feel free to take a look at the documentation here:

https://github.com/BTCMarkets/API/wiki/WebSocket-v2-%28beta%29

Please note that you should be able to subscribe to the feed in order to get notification for your own orders removing the need to make REST API calls. Please let us know if you have any questions.

Thanks.

martin-nginio commented 4 years ago

Closing the issue due to no recent activity.

And here is the link to the new API: https://api.btcmarkets.net/doc/v3#tag/WS_Overview

Thanks.