Skip to content

Releases: alpacahq/alpaca-trade-api-js

Add new v2 endpoints

07 May 10:06
Compare
Choose a tag to compare

In this release we

  • added support for fractional orders
  • added the v2 latest trades / quotes endpoints
  • added the v2 snapshot / snapshots endpoints

Alpaca Data V2

17 Mar 14:15
Compare
Choose a tag to compare

In this release we upgrade our service to Alpaca Data V2 as described here.

To learn how to use the new functionality:

  • refer to the docs
  • check out the readme file examples
  • check out the sample code

Add support for the alpaca-proxy-agent-project

25 Sep 16:46
Compare
Choose a tag to compare

In this release we enable the usage of this project: https://github.com/shlomikushchi/alpaca-proxy-agent
go inside for more details.

also, a fix was added to example code: long-short.js (6a0d133)

Support Trailing Stop in replaceOrder

24 Aug 20:22
4871dc0
Compare
Choose a tag to compare

Replace trailing stop orders are now supported by the API.

Adding it to the SDK as well

Add support for trailing stop orders

18 Aug 21:43
Compare
Choose a tag to compare

In this release we add support for the new added feature - trailing stop:

  • submit_order now supports a new type trailing_stop.
  • 2 new optional args to submit_order: trail_price, trail_percent.

Fixes

  • Doc fix for websocket usage
  • Doc fix for getBars()

Small fixes and package updates

28 Jul 18:11
Compare
Choose a tag to compare
  • update used packages
  • changed the used polygon websocket url
  • bugfix: getActivities missing param for pagination
  • fix bug in example code (mean-reversion.js)
  • readme fix for getAccountActivities

Add watchlists and update polygon apis

17 Jun 06:39
73d08ec
Compare
Choose a tag to compare

This release:

  • adds support for watchlists
  • removes old polygon apis and updates some to v2:
    • historicTrades, historicQuotes, historicAggs
    • dividends, financials, splits
  • fix: filter out unsubscribed assets from the ws
  • update vulnerable packages: just-extend, minimist

Alpaca Data WS

16 May 05:56
c9d62a9
Compare
Choose a tag to compare

In this release we fixed some issues with the RC versions.

  • we split the ws to 2 like in the python sdk
    • data ws
    • trade/account updates ws
  • created another example code to show how to use the alpaca ws

Small data schema modification

06 May 19:45
0a093cf
Compare
Choose a tag to compare
Pre-release

We've made small modifications to the api data schema as follow:

  • trade in WS: rename “sym” to “T”, “t” to be nanoseconds (from milliseconds)
  • bars in WS: rename “sym” to “T”
  • trade in REST: timestamp resolution is now nanoseconds
  • quote in REST: timestamp resolution is now nanoseconds

Support the new data api

04 May 16:51
8561a9b
Compare
Choose a tag to compare
Pre-release

In this release we integrate the new Alpaca data API
we now support:

  • getLastQuote - /v1/last_quote/stocks/{symbol}
  • getLastTrade - /v1/last/stocks/{symbol}
  • get minute bars - /v1/bars/{timeframe}
  • websocket for live data streaming:
    • T.{symbol}: trades for the symbol
    • Q.{symbol}: quotes for the symbol
    • AM.{symbol}: minute bars for the symbol