Petersoj / alpaca-java

A Java API for Alpaca, the commission free, algo friendly, stock trading broker. https://alpaca.markets
https://petersoj.github.io/alpaca-java/
MIT License
203 stars 83 forks source link

TradeUpdateMessage (trade_upates) misses few fields #115

Closed selivonchik closed 8 months ago

selivonchik commented 2 years ago

According to Alpaca docs (https://alpaca.markets/docs/broker/api-references/events/#response-2) Trade Update events contains few more fields that are currently missed in TradeUpdateMessage: image To simplify events correlation exposing at least "account_id" and "event_id" might be very useful. Thanks.

Petersoj commented 2 years ago

Those fields are sent on the websocket stream for the Broker API, which isn't currently supported by this library at the moment (only single-user endpoints that use API keys are supported by this library). I'll look into supporting the Broker API at some point in the future.

selivonchik commented 2 years ago

Thank you

Petersoj commented 8 months ago

Broker API is now implemented in 10.0.0.