polefinance — Python SDK for the Pôle Finance API
Typed client (sync and async) for https://polefinance-invest.com/api/v1.
Status: 0.1.0, not yet published on PyPI (publication pending approval).
Install (from this repository)
pip install ./python-sdk
Quick start
- Create a project and an API key at https://polefinance-invest.com/developers/dashboard.
export POLEFINANCE_API_KEY="pf_live_…"— never put the key in code.
from polefinance import PoleFinance
with PoleFinance() as client: # reads POLEFINANCE_API_KEY
page = client.instruments.list(exchange="BRVM", limit=20)
for inst in page.data:
print(inst.id, inst.name)
sonatel = client.instruments.get("BRVM:SNTS")
for inst in client.instruments.iterate(q="bank"): # follows pagination
...
Compute on your own series (nothing stored, scope analytics:compute):
closes = [100, 101.2, 99.8, 102.4, 103.1, 104.0]
client.technical.indicators(close=closes, indicators=[{"name": "sma", "period": 3}])
client.risk.metrics(prices=closes, periods_per_year=252, risk_free_rate=0.03)
client.optimization.portfolio({"BRVM:SNTS": snts_returns, "BRVM:ORAC": orac_returns},
method="min_variance") # max_sharpe, risk_parity, equal_weight
client.backtests.run(dates=dates, assets=[{"id": "A", "closes": closes_a}],
strategy="buy_hold", rebalance="monthly", fees=0.01)
Async: AsyncPoleFinance has the same methods (await, async for on iterate).
Errors
AuthenticationError (401), PermissionDeniedError (403), NotFoundError (404),
RateLimitError (429, .retry_after), APIError (others), APIConnectionError (network).
Each carries .code, .message, .request_id.
Behaviour
- Timeout 15 s (
timeout=), up to 2 retries (max_retries=) on network errors, 502/503/504 and 429 withRetry-After. A daily-quota 429 is not retried. v1 calls are GETs or pure computations, so retries are safe. market_data.quotes()currently raisesPermissionDeniedError(code="market_data_not_available").
Develop
pip install -e ".[test]" && pytest
Metadata
Release files for polefinance 0.1.0
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 |
|---|---|---|---|---|
| polefinance-0.1.0.tar.gz | 8.5 kB | With provenance | Details for polefinance-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| polefinance-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for polefinance-0.1.0-py3-none-any.whl |
Total release size: 16.8 kB
Release files / polefinance-0.1.0.tar.gz
| Download URL | polefinance-0.1.0.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
43deb63b649bf6544d860acfc9164dd238728c75462faffd1f51227ebb825105
|
|
BLAKE2b-256 checksum How to use checksums |
3b22dbbd006c02474bf509b3cd68e642be99e5a18058651128fcdf6a9a7a2399
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / polefinance-0.1.0-py3-none-any.whl
| Download URL | polefinance-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
262df050bc94c5d93ea5a1b3a9c1d032523a62f042eb7c214720a2f97e7a75a2
|
|
BLAKE2b-256 checksum How to use checksums |
403793077d71acc0466be0346a2c2a13f1225746a3f2f4227b07e83021c67928
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logSecurity for polefinance 0.1.0
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 polefinance-0.1.0.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 Nov 23, 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.