{"repo":"alpacahq/alpaca-trade-api-js","free":true,"listed":false,"github":"https://github.com/alpacahq/alpaca-trade-api-js","clone":"git clone https://github.com/alpacahq/alpaca-trade-api-js.git","description":"Node.js library for Alpaca Trade API.","language":"TypeScript","stars":600,"topics":["trading","hacktoberfest","api","javascript"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"@alpacahq/alpaca-trade-api A single Node.js TypeScript SDK for the Alpaca Trading API and Market Data API . Both APIs live under their own namespace ( trading / marketData ) in one package, fronted by a unified Alpaca client with typed errors, resilience (retry / timeout / rate limiting), pagination helpers, ergonomic order builders, and real-time streaming. Upgrading from 3.x? See the Migration guide — it maps every endpoint old → new, explains the ergonomic layer, and ships a codemod that automates most of the work. Both files are included in the published npm package. Requirements - Node.js = 20 (developed against v24) — the REST transport uses the platform-global fetch , Headers , URL , and AbortController . (Node 18 reached end-of-life in April 2025; the package declares engines.node =20 .) - Strict Node TypeScript projects may omit DOM libs; the REST declarations are portable and do not require \"dom\" in the consumer tsconfig . Runtime compatibility Runtime REST Streaming Notes --- :---: :---: --- Node.js = 20 ✅ ✅ Primary target. Bun ✅ ✅ Node-compatible ( ws runs). Deno ✅ ❌ Root auto-resolves to the REST build via the deno export condition. Cloudflare Workers / workerd ✅ ❌ Root auto-resolves to the REST build ( workerd / worker ). Vercel Edge ✅ ❌ Root auto-resolves to the REST build ( edge-light ). Browser ✅ ❌ Resolves to the REST build ( browser ). Not recommended — see caveat. Legend: ✅ supported · ❌ not supported. - Streaming is Node/Bun only. The WebSocket clients us","default_branch":null,"files":null,"tree":[],"storefront":"/r/alpacahq","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/alpacahq/alpaca-trade-api-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}