aetherx-oracle
SDK Python oficial para a Aether-X Port Congestion Oracle API — sinais preditivos de congestão portuária, atraso de ETA e volatilidade de frete para portos globais.
Instalação
pip install aetherx-oracle
Uso rápido
from aetherx import OracleClient
client = OracleClient(api_key="SUA_RAPIDAPI_KEY")
risk = client.get_port_risk("BRSSZ")
print(risk.port_name) # Santos
print(risk.country) # Brasil
print(risk.congestion_score) # 0.78
print(risk.eta_delay_days) # 1.6
print(risk.waiting_vessels) # 12
print(risk.freight_volatility_index) # 0.42
print(risk.estimated_daily_demurrage_usd) # 63200 (USD/dia)
print(risk.updated_at) # 2026-09-17 15:46:53
Tendência 24/48/72h
trend = client.get_port_trend("NLRTM")
print(trend.trend) # estavel / acelerando / descongestionando
print(trend.projection["h48"].congestion_score)
print(trend.projection["h72"].estimated_daily_demurrage_usd)
Consulta em lote (uma única chamada)
ports = client.get_ports_risk(["BRSSZ", "CNSHA", "NLRTM", "USLAX"])
for p in ports:
print(p.port_id, p.congestion_score, p.estimated_daily_demurrage_usd)
Campos retornados (PortRisk)
| Campo | Tipo | Descrição |
|---|---|---|
port_id |
str |
UN/LOCODE do porto (ex: BRSSZ) |
port_name |
str |
Nome do porto |
country |
str |
País do porto |
congestion_score |
float |
Score de congestão (0.0 a 1.0) |
eta_delay_days |
float |
Atraso estimado de ETA em dias |
waiting_vessels |
int |
Navios aguardando/ancorados |
freight_volatility_index |
float |
Índice de volatilidade de frete |
estimated_daily_demurrage_usd |
int |
Demurrage diária estimada (USD) |
updated_at |
str |
Timestamp da última atualização |
Configuração avançada
client = OracleClient(
api_key="SUA_RAPIDAPI_KEY",
host="aether-x-port-congestion-oracle.p.rapidapi.com", # default
timeout=30.0, # segundos
)
Portos suportados
Portos com dados de exemplo: BRSSZ, BRRIO, CNSHA, CNNGB, CNTAO, SGSIN, NLRTM, USLAX, USNYC, DEHAM, MPTNG, AEDXB, KRPUS, GBLGP, ZACPT, MXZLO.
Portos não cadastrados retornam uma estimativa global (country="Global").
Uso assíncrono (async)
Para consultar múltiplos portos em paralelo (ideal para bots e fundos quantitativos). Requer o extra async:
pip install "aetherx-oracle[async]"
import asyncio
from aetherx import OracleClient
async def main():
client = OracleClient(api_key="SUA_RAPIDAPI_KEY")
# Um porto
risk = await client.get_port_risk_async("BRSSZ")
print(risk.congestion_score)
# Vários portos em paralelo
risks = await client.get_ports_risk_async(["BRSSZ", "CNSHA", "NLRTM"])
for r in risks:
print(r.port_id, r.congestion_score)
# Tendência async
trend = await client.get_port_trend_async("BRSSZ")
print(trend.trend)
asyncio.run(main())
Termos de uso
Os sinais são fornecidos "AS IS", sem garantia e não constituem aconselhamento de investimento. Consulte os Termos de Serviço.
Licença
O código deste SDK é distribuído sob a licença MIT (veja LICENSE). O uso da API hospedada está sujeito aos Termos de Serviço.
Metadata
Release files for aetherx-oracle 0.4.1
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 |
|---|---|---|---|---|
| aetherx_oracle-0.4.1.tar.gz | 7.4 kB | Without provenance | Details for aetherx_oracle-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aetherx_oracle-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for aetherx_oracle-0.4.1-py3-none-any.whl |
Total release size: 14.0 kB
Release files / aetherx_oracle-0.4.1.tar.gz
| Download URL | aetherx_oracle-0.4.1.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29c367af8537caa705fbe7fcb6c01b3ea2561d2f9752fb5fbcc507eab45b46e8
|
|
BLAKE2b-256 checksum How to use checksums |
7f612e81bc904e1ae82b1fc287e7baac9a05428e3c3fbb0c20d2990abfd65ae3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Release files / aetherx_oracle-0.4.1-py3-none-any.whl
| Download URL | aetherx_oracle-0.4.1-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d337433abc9a262a6e3006ef963be5c06edf19900e1819323d788f1c61c43d93
|
|
BLAKE2b-256 checksum How to use checksums |
8cea82727d577f301ce824e0d2153539d6b8101f68c5a9a58343a38170ee6ce9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Security for aetherx-oracle 0.4.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.