BTCMarkets / API

API
120 stars 30 forks source link

the new web socket api #191

Open npomfret opened 3 years ago

npomfret commented 3 years ago

is it possible to request some additions to the new web socket api?

npomfret commented 3 years ago

I need the original price and amount of the order in each message if possible

npomfret commented 3 years ago

@martin-nginio

martin-nginio commented 3 years ago

Hi @npomfret

Thanks for your feedback.

So I can better understand your request, please can you clarify

This event includes price/volume for each individual order.

There is another event (recently added, orderbookUpdate event) that allows you to build a copy of the orderbook locally more efficiently but this has aggregate volume so no individual orders are presented.
https://api.btcmarkets.net/doc/v3/#section/OrderbookUpdate-event

Thanks.

Regards, Martin

npomfret commented 3 years ago

No, I mean for the private websocket feed

martin-nginio commented 3 years ago

Thanks @npomfret for your patience.

We have a few update for WebSocket in our roadmap and providing more order related attributes to the orderChange event (e.g. original volume/price ) can be added to it as well. At this stage I can't comment on the timeline but I understand this would be helpful.

Where possible and as a workaround, I'd suggest keeping detail of the order submitted with link to orderId returned by place order API.

Thanks.

Regards Marti

npomfret commented 3 years ago

Thanks,I have workarounds in place but they inevitably cause delays. Most exchanges return the entire original order plus the fill details (id, time, amount, price) - this approach seems to work best.