Releases: alpacahq/alpaca-trade-api-go
v2.1.0
v2.0.4
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
This release contains the following improvements:
- Add missing
fractionable
field toAsset
- 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
Replace the trade updates implementation (#151) * Replace the trade updates implementation * Add StreamTradeUpdatesInBackground
Make price properties of Position nullable
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
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
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
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
Replace trailing stop orders are now supported by the API.
Adding it to the SDK as well
Add support for trailing stop orders
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