alpacahq / alpaca-ts

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

Alpaca Stream: Parse Trade Updates Channel #98

Closed tclare closed 2 years ago

tclare commented 2 years ago

Thought I'd parse the Trade Updates channel coming back from the Alpaca Stream, for my own benefit and any dev after me who might find it useful! Let me know if this was by design or something. But I tested locally and everything seems to be working 🙂

Side note no. 1: I'll begin unit testing my stuff! Starting with this PR, haha! Side note no. 2: Sorry about all my commits compounding in my previous PRs, forgot to add this repo as an upstream to my fork.

117 commented 2 years ago

Gimme a few days to review.

tclare commented 2 years ago

No problem! 🙂

117 commented 2 years ago

Thorough comments man. I appreciate these contributions lately! ❤️