Skip to content

Releases: alpacahq/alpaca-trade-api-python

Fixes Some Syntax And Updates Dependencies

30 Nov 00:29
Compare
Choose a tag to compare

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 and numpy===1.21.4

add stop/start ws

02 Nov 07:50
b2c0837
Compare
Choose a tag to compare

In this release we add ability to stop/start the ws connection for all streams.

Add support for crypto market data

28 Sep 09:34
Compare
Choose a tag to compare

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

07 Sep 14:16
2538518
Compare
Choose a tag to compare

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

18 Jun 13:58
df9af40
Compare
Choose a tag to compare

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

07 May 12:47
Compare
Choose a tag to compare

In this release we

  • added the v2 latest trades / quotes endpoints
  • added the v2 snapshot / snapshots endpoints

Add Fractional Share Support

19 Apr 13:25
Compare
Choose a tag to compare

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 optional float kwarg
  • notional has been added as an optional float kwarg
  • side 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

19 Mar 09:56
a3354fa
Compare
Choose a tag to compare
  • Added ability to stop the ws connection (d214cbf)
  • updated the websocket examples for v2 (a77bc6b)
  • removed old, unsupported example code
  • only support 'raw' adjustment for get_bars() for now (aa748d7)

New Alpaca Data Service

02 Mar 14:30
23c0c78
Compare
Choose a tag to compare

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

15 Feb 12:52
bfac0f6
Compare
Choose a tag to compare

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:

  • pause/resume websocket connection (fc61ca9)
  • change the channels the websocket is subscribed to (85abc58)
  • websocket re-connection pattern, making sure we reconnect on ws diconnection (2902cb4)
  • different channels subscriptions for alpaca and polygon data streams.