alpacahq / alpaca-ts

A TypeScript Node.js library for the https://alpaca.markets REST API and WebSocket streams.
ISC License
156 stars 41 forks source link

LastQuote and other missing methods from v1 #64

Closed husayt closed 3 years ago

husayt commented 3 years ago

There is no LastQuote method in v2. It seems v1 is still operational. Perhaps we could still use missing methods from v1?

husayt commented 3 years ago

@117 I just double checked using old version of this library and v1 is still working. In this case it is best to keep v1 methods, especially those for which there is no alternative in v2

117 commented 3 years ago

I agree it should be.

husayt commented 3 years ago

From what I heard last_quote and last_trade methods are planned to be added to v2 at some point, until then at least v1 versions will be available.

117 commented 3 years ago

I'm on it.

117 commented 3 years ago

The included methods in version 6.0.0+ are:

ColtonIdle commented 3 years ago

Does getLastQuote rely on v1? If so, should that be in the method name as well like you did for getBars?

117 commented 3 years ago

Does getLastQuote rely on v1? If so, should that be in the method name as well like you did for getBars?

Hmm, it probably should be if Alpaca intends to add these methods to v2 as well.