Welcome to py_ppi_arg' Documentation
Overview
py_ppi_arg is a Python library that enables interaction with PortfolioPersonal REST APIs. It is designed to save developers hours of research and coding required to connect to PortfolioPersonal REST APIs.
Disclaimer
py_ppi_arg is not owned by Portfolio Personal, and the authors are not responsible for the use of this library.
Installation
To install py_ppi_arg, you can use the following command:
pip install py_ppi_arg
API Credentials
To use this library, you need to have the correct authentication credentials.
Dependencies
The library has the following dependency:
requests>=2.31.0
simplejson>=3.19.1
pyotp>=2.9.0
beautifulsoup4>=4.12.3
bs4>=0.0.2
certifi>=2024.7.4
charset-normalizer>=3.3.2
idna>=3.7
soupsieve>=2.5
urllib3>=2.2.2
Features
Available Methods
Initialization
Before using the library, you need to initialize it with a valid email and password.
REST
The library provides functions to make requests to the REST API and retrieve the corresponding responses.
Functions
- get_tickers_list: Retrieves instruments quote list information filtered by instrument type, operation type and settlement.
- search_tickers : Queries the API to search for a particular instrument based on the name.
- get_technical_data_bonds: Retrieves the techical data for a bond.
- get_historic_data: Retrieves the historic data for an item.
- get_intraday_data: Retrieves the intraday data for an item.
All functions return a dictionary representing the JSON response.
Enumerations
The library also provides enumerations to help developers avoid errors and improve readability.
- Currency : Identifies the available currencies in the app.
- InstrumentTypes : Identifies the instrument types.
- OperationType: Identifies the operation types.
- Settlements : Identifies the different settlement dates.
Usage
Once the library has been installed, you can import and initialize it. The initialization sets the email and password. It then attempts to authenticate with the provided credentials. If the authentication fails, an ApiException is thrown.
from py_ppi_arg import PPI
app = PPI(email="sample@email.com", password="S4mp13.p4ssW0rd")
REST
# Get information about all the available bonds
app.get_tickers_list(
instrument_type = app.instrument_types.PUBLIC_BOND,
operation_type = app.operation_types.COMPRA,
settlement = app.settlements.T2
)
# Get the technical data for a bond
app.get_technical_data_bonds(
settlement=app.settlements.T2,
item_id="804421"
)
# Get the historic price data for an instrument
app.get_historic_data(item_id="261", settlement=app.settlements.T2)
# Get the information about for an instrument
app.search_tickers(short_ticker = "AL30")
For more information you can check this article.
Official API Documentation
There is no official API documentation for this library. The library was created by webscraping the app.
Acknowledgements
This library was created taking as an example the work of the Scrappers Argentinos and Inversiones y Algoritmos Telegram Groups in the pyCocos library.
@LucaGelmini and @patruccoluciano helped by giving feedback and suggestions for a better code. Special thanks to them.
Metadata
Release files for py-ppi-arg 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| py_ppi_arg-0.2.3.tar.gz | 11.4 kB | With provenance | Details for py_ppi_arg-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_ppi_arg-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for py_ppi_arg-0.2.3-py3-none-any.whl |
Total release size: 22.8 kB
Release files / py_ppi_arg-0.2.3.tar.gz
| Download URL | py_ppi_arg-0.2.3.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
957f3a704f4f802068564a4a6058bb1bddde033cc81d9c26962b9c2bf38ac663
|
|
BLAKE2b-256 checksum How to use checksums |
68e29a25992d5aba9e3933471c1a891afee1ccfbf5c5d9a64c31f26487cdc546
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 30, 2026.
Transparency logRelease files / py_ppi_arg-0.2.3-py3-none-any.whl
| Download URL | py_ppi_arg-0.2.3-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
264b0f7338d46ef326666c76bbd590cef5b0646865ea213cf07d9ec372b16685
|
|
BLAKE2b-256 checksum How to use checksums |
fd72360fd661a2b422d36dea10cde12671b025c4094fa436b3e3400003f3aca6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 30, 2026.
Transparency logSecurity for py-ppi-arg 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for py_ppi_arg-0.2.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.