Skip to content

Releases: alpacahq/alpaca-trade-api-go

v2.1.0

03 Jan 21:55
4faf8e4
Compare
Choose a tag to compare

This release contains the following improvements:

  • added support for trade corrections + trade cancel errors
  • added support for latest crypto snapshot
  • other minor changes

v2.0.4

09 Nov 13:16
63ac4e5
Compare
Choose a tag to compare

This release contains the following changes:

  • Added an example where ADTV is calculated using the historical API
  • Updated the link to the SDK documentation
  • marketdata stream's error handling and logging has been improved and certain previously unlogged errors now get logged
  • Minor improvements

v2.0.3

28 Oct 09:29
c78eeb4
Compare
Choose a tag to compare

This release contains the following improvements:

  • Add missing fractionable field to Asset
  • Enable gzip encoding in the marketdata endpoints
  • Add multi-symbol latest endpoints
  • Fix error handling for non-JSON HTTP errors
  • Consider all HTTP 4xx irrecoverable errors in the marketdata stream
  • Replace deprecated Dial with DialContext
  • Lower log level to warning for reconnectable errors
  • Fix marketdata stream subscribe errors
  • Fix a vulnerability

New (incompatible) major version: v2

13 Sep 14:42
9d2664a
Compare
Choose a tag to compare
Replace the trade updates implementation (#151)

* Replace the trade updates implementation

* Add StreamTradeUpdatesInBackground

Make price properties of Position nullable

08 Sep 08:44
Compare
Choose a tag to compare

This is a breaking change

There are cases when an account may have a position in an asset that does not have a current price. This can occur when certain corporate actions are processed or when a stock gets delisted.

In this scenario, API endpoints that call functions that use asset prices are returning an error response.

In order to avoid the error response and keep the API available even in the event that one of your positions’ underlying asset is missing a price, we will introduce a minor breaking change to the API.

Starting September 9, 2021, the following API response fields will change from non-nullable to nullable. They will appear null in the response in the case that the underlying asset is missing the price for some reason.

This change updates this SDK to be in-line with these upcoming API changes. We will be releasing this as a new minor version that we recommend all user's update to ASAP.

Add new v2 endpoints

04 May 09:14
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

Add Ability to Deregister from channel

21 Dec 19:58
Compare
Choose a tag to compare

In this release we

  • Added the ability to deregister from the data service.
  • Added another example code - Martingale example
  • fixed the url for alpaca-proxy-agent

Add support for the alpaca-proxy-agent project

07 Oct 13:04
37d0fb7
Compare
Choose a tag to compare

The websocket connection is limited to 1 connection per account.
The alpaca-proxy-agent enables running
multiple executions under one websocket

Read the README to understand how to use it.

Support Trailing Stop in ReplaceOrder

24 Aug 20:07
8da0a94
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

21 Aug 14:55
88fd96e
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

Also:

  • Trade id changed to string
  • Added oto and oco to OrderClass
  • Changed the polygon websocket to socket.polygon.io
  • Fix typo on AccountActivity