Paca

Latest version: v0.1.0

Safety actively analyzes 685670 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 5

1.2.0

In this release, we add support for fractional amounts (`qty`) and notional values (`notional`) in [POST/v2/orders](https://alpaca.markets/docs/api-documentation/api-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](https://github.com/alpacahq/alpaca-trade-api-python#using-submit_order).

1.1.0

* Added ability to stop the ws connection (d214cbf50d39f85426c74fb6a3721a5195b3493c)
* updated the websocket examples for v2 (a77bc6b099e63b7deb71ad037869790246126e29)
* removed old, unsupported example code
* only support `'raw'` adjustment for `get_bars()` for now (aa748d717c40505966a396dfca75db2ca565658b)

1.0.0

In this release we upgrade our service to Alpaca Data V2 as described [here](https://alpaca.markets/docs/api-documentation/api-v2/market-data/alpaca-data-api-v2/). (1391436dbba635efb56615739d91fdbb2f23cd9c)
We dropped support for the Polygon stream data and Rest APIs.<br>
To learn how to use the new functionality:
* refer to the [docs](https://alpaca.markets/docs/api-documentation/api-v2/market-data/alpaca-data-api-v2/)
* check out the readme file examples
* check out the [sample code](https://github.com/alpacahq/alpaca-trade-api-python/tree/master/examples)

0.53.0

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.(d7e10ec51824947a010b7340b2162578844d4879)
We also add advanced usage example to help tackle the most common usage issues:
* pause/resume websocket connection (fc61ca97ac6d06d3aad6a79d39b1672c03634508)
* change the channels the websocket is subscribed to (85abc5874b0c3b4ce5d608b5f28cfba4e1ab4c72)
* websocket re-connection pattern, making sure we reconnect on ws diconnection (2902cb4a15816074da1374553faeb35b77cbc63a)
* different channels subscriptions for alpaca and polygon data streams.

0.52.0

In this release we enable raw data responses from REST and Stream APIs. (de0fc4f5dbc37ad1fada7624d2a68a9f27d63983)
It is achieved by passing `raw_data=True` to API instances and it returns the data without wrapping it with Entity objects. Default is using Entities, exactly as before.
Also:
* Support for polygon financials V2 (200f667d7779ddb0674aa1bb1190442ce1ef0f7c)
* Update the example code for websocket usage (a02e694faec15bb358aaa1c8daf3fde2be932e8d)
* Add oauth support for StreamConn (05f3a78ab12f9f06cdb5e9d7d1f1aa45c4b1b33b)
* Add CI pipelines for python 3.6-3.9 (be040630fb851edac27d09bbe0ea052c74ee0282)
* Make sure there are no issues with pandas 1.2.0+ and numpy 1.20.0+ which dropped support for python 3.6 (e2eb54d0efc3c4d522012e867ded4a181571a5d8)
Fixes
* handle better aggs empty response (e2c9b74edc1bdb817f46018d428d24ba66ed7f27)
* fixing dates for polygon queries (d84675eb490201dfe932f42283293f72398bfa81)
* fix should use asyncio.sleep inside async methods (c329fbae6f8fdb9696432a6e803e6f8160118e32)
* Calendar Entity dates (f848bdd46e1e31b8a37913302e4f9cd8e545f205)
* polygon grouped_daily() url (013cb801bf810f4b2d7452500bd28bfbee0cd9ea)
* update polygon trade mapping for Entity (8dbb10966353206842ba818fa8c574be97ba408c)

0.51.0

In this release we add support for the [alpaca-proxy-agent](https://github.com/shlomikushchi/alpaca-proxy-agent) which allows users to run multiple strategies in parallel.

also:
* Add a new simple stream example to demonstrate how to use the streaming service.
It's under `examples/websocket_example.py`
* Cleaner look for the documentation (README file)
* Explain exactly how to use `get_barset()`

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.