Please visit this thread at the Alpaca forum to get more information on how to run Javascript (Node.js) with the Alpaca API.

A Long-Short in JavaScript (Node.js) Using Stock API
A Long-Short in JavaScript (Node.js) Using Stock API In this post, I will be sharing how I created a simple Long-Short Equity trading script in JavaScript (a Node.js app) using Alpaca’s free paper trading API. Alpaca’s paper trading API simulates the live trading API in a paper environment so we…