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
197 stars 82 forks source link

QuoteMessage does not exist in the new library #89

Closed Mahdi-Roozbahani closed 3 years ago

Mahdi-Roozbahani commented 3 years ago

I noticed that QuoteMessage is removed in your latest update version 7.0.

Petersoj commented 3 years ago

Yes there was some refactoring of names and such with the Data v2 API in 7.0. Check the README for updates names. Here is the Quotes endpoint example and here is the Quotes realtime feed example.

Mahdi-Roozbahani commented 3 years ago

Hi Peter,

I am specifically looking into MarketDataListener streamListener = new MarketDataListenerAdapter. I realized that you still have QuoteMessagethere. I also notice that OrderTimeInForceis gone and not recognized.

I used Maven to pull version seven and it does not recognize those classes.

-update: it does not recognize TradeMessage tradeMessage = (TradeMessage) streamMessage; either.

New update: The problem was on my side; it seems the two libraries were mixing up and it was using the other one. It is now fixed. Thank you for the prompt reply.