Paca

Latest version: v0.1.0

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

Scan your dependencies

Page 5 of 5

0.43

In this release, support for advanced order types - bracket orders - is added. You can now submit bracket orders like so:

{
"side": "buy",
"symbol": "SPY",
"type": "market",
"qty": "100",
"time_in_force": "gtc",
"class": "bracket",
"take_profit": {
"limit_price": "301"
},
"stop_loss": {
"stop_price": "299",
"limit_price": "298.5"
}
}

Please note the inclusion of the new `nested` parameter in the order list call. Specifying nested=true will make it so that bracket orders have `legs` fields which will contain their child orders. Child orders will be in this nested field rather than the main array of orders. For more information about using bracket orders with Alpaca, please refer to https://docs.alpaca.markets.

Watchlist endpoint support was also added - learn more about using it here: https://docs.alpaca.markets/api-documentation/api-v2/watchlist/.

Additionally, support for Alpha Vantage has been added for those looking for more data sources akin to our Polygon integration. Please see the updated README.md for information about using the Alpha Vantage API. We also corrected an issue where Position-closing endpoints were not returning the created Order objects.

0.42

In this release, support has been added for the following Polygon endpoints:

Historic Trades v2: https://polygon.io/docs/#!/Stocks--Equities/get_v2_ticks_stocks_trades_ticker_date
Historic Quotes v2: https://polygon.io/docs/#!/Stocks--Equities/get_v2_ticks_stocks_nbbo_ticker_date

The methods using the v1 endpoints have been marked as deprecated and will be removed from the library in a future release, as Polygon intends to remove them from the API.

0.41

In this release, support for the [Account Activities API](https://docs.alpaca.markets/api-documentation/api-v2/account-activities/) endpoint has been added. This endpoint allows you to see information about transactions related to your account such as dividends, interest payments, and trade executions. Please see the documentation page for a full set of usage instructions.

0.40

In this release, support has been added for the order replacement and account configuration APIs. Documentation for these can be found here: [https://docs.alpaca.markets/api-documentation/api-v2/orders/](orders) and [https://docs.alpaca.markets/api-documentation/api-v2/account-configuration](account configurations). Order replacement allows you to update an order without having to first go through the process of cancelling it and waiting to receive confirmation that the cancel worked. Account configurations allows you to specify some account-level behavior. The following parameters can currently be configured in this way:
- `no_shorting`: Allows you to prevent new short sales from happening - if you attempt a short sale with this set to true, you'll receive an "insufficient qty" error.
- `dtbp_check`: Controls [https://docs.alpaca.markets/user-protections/#day-trade-margin-call-dtmc-protection-at-alpaca](Day Trading Margin Call) checks. Please see our documentation for more information on the options.
- `trade_confirm_email`: If "none" (the string, not python's `None`) is specified, emails for order fills are not sent.
- `suspend_trade`: If true, new orders are blocked.

Additionally, an issue was fixed where user code exceptions would be swallowed by the websocket handler code, which could lead to some errors being difficult to debug.

0.38

In this release, automatic reconnection was added for the Alpaca Websocket stream. This should help with cases in which the network connection is unstable or where the machine running an application using the SDK may go to sleep or otherwise pause execution. Additionally, a fix was made for cases in which async code was using the SDK's websocket connection, and support for OAuth authentication was added.

0.1.0

Initial release
- All asset properties shown with no options
- Asset status colored using [colorama](https://github.com/tartley/colorama)

![paca-example-screenshot](https://user-images.githubusercontent.com/55524335/147372820-68135dc9-e970-4bca-84ac-0d1606b3473c.png)

Page 5 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.