Releases: alpacahq/alpaca-trade-api-python
Fixes Some Syntax And Updates Dependencies
In this release:
- Fixed error handling syntax within
rest.py
- Fixed named parameter syntax in
code
package in__main__.py
- Update Python 3.7 CI dependencies to support numpy and pandas
pandas==1.3.4
andnumpy===1.21.4
add stop/start ws
In this release we add ability to stop/start the ws connection for all streams.
Add support for crypto market data
In this release we:
- add support for crypto market data
- add support for the multiple symbols endpoint data queries
fixes:
- data ws disconnections resolved.
- removed polygon old code refereces
Support Asyncio for historic endpoints
In this release we add asyncio support for the historic endpoints
- Bars
- Quotes
- Trades
We also support the latest endpoints:
- latest quote
- latest trade
We also add
- LULDs to stream.
Data V2 minor fixes
In this release we:
- Add daily bars to data stream (f826e5b)
- Add support for closing partial position (253bd6d)
- Fix a data v2 websocket reconnection issue (b649fb4)
- extend
list_order()
to be able to filter by symbol list (e203f38) - update the websockets package and the websocket-client package (d5b5e26, 59b4fb8)
- fix example code -
overnight_hold.py
(797d508)
New v2 endpoints
In this release we
- added the v2 latest trades / quotes endpoints
- added the v2 snapshot / snapshots endpoints
Add Fractional Share Support
In this release, we add support for fractional amounts (qty
) and notional values (notional
) in POST/v2/orders requests, via submit_order()
:
qty
is now an optionalfloat
kwargnotional
has been added as an optionalfloat
kwargside
is now a kwarg (default is"buy"
)type
is now a kwarg (default is"market"
)time_in_force
is now a kwarg (default is"day"
)
With these changes, we encourage users to call submit_order()
with named arguments instead of positional ones.
For examples, please refer to the docs.
Ability to stop websocket v2
New Alpaca Data Service
In this release we upgrade our service to Alpaca Data V2 as described here. (1391436)
We dropped support for the Polygon stream data and Rest APIs.
To learn how to use the new functionality:
- refer to the docs
- check out the readme file examples
- check out the sample code
Advanced Websocket Usage Examples
In this release we add the ability to stop the websocket connection when using the data streams. Allowing the users to "pause/resume" their data stream.(d7e10ec)
We also add advanced usage example to help tackle the most common usage issues: