alpacahq / alpaca-ts

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

Crypto Support #93

Open lvnr opened 2 years ago

lvnr commented 2 years ago

Would love to see support added for crypto endpoints, especially for market data streams.

The API doesn't seem to be much different, I'm guessing most of the differences are in the endpoints.

117 commented 2 years ago

Agreed, will tag PR for this when I have time.

dimitri-deychak commented 2 years ago

+1 to this ER

dimitri-deychak commented 2 years ago

Any updates on this @117 ?

117 commented 2 years ago

Any updates on this @117 ?

It's been a busy month. This addition is on my mind 🙂! I will tag you when I have added it.

CloudProDk commented 2 years ago

I know its not cool to ask, but are there any updates for Crypto support😬

117 commented 2 years ago

I know its not cool to ask, but are there any updates for Crypto support😬

):

gnvk commented 1 year ago

@117 Please make sure to use the latest (currently v1beta3) market data endpoints whenever you implement this!

117 commented 1 year ago

a major version change with support for crypto is happening. will tag PR here

117 commented 1 year ago

v7 is on the way, you can track it here #113

bennycode commented 10 months ago

I was also surprised that stream.subscribe("bars") only works for stocks as it uses this hardcoded URL:

https://github.com/alpacahq/alpaca-ts/blob/d4a2b7bae909f8c4e4d80752940c1a9cd60e7617/src/endpoints.ts#L13

@117 is it possible to change the base URL to wss://stream.data.alpaca.markets/v1beta3/crypto/us?