Python wrapper for the updated Archean Vision API (using Bearer Token)
Project description
ArcheanVision API
Un wrapper Python pour consommer l’API Archean Vision. Ce projet permet de récupérer des informations sur les marchés actifs, les signaux en temps réel/historiques, et bien plus encore — le tout via un Bearer Token. Sommaire
Fonctionnalités Principales
Installation
Configuration
Utilisation
Exemple de Code
Contribuer
Licence
Fonctionnalités Principales
Récupération de la liste des marchés actifs et inactifs.
Accès aux signaux historiques ou en temps réel (SSE).
Récupération de données de marché pour chaque actif (historique et temps réel).
Facilité d’intégration grâce à une interface orientée objet.
Installation
Depuis PyPI
pip install archeanvision-api
Assurez-vous d’avoir Python 3.6 ou une version ultérieure.
Installation Manuelle
Clonez ce dépôt ou téléchargez-le :
git clone https://github.com/Archean-Vision/archeanvision-api.git
Placez-vous dans le dossier :
cd archeanvision-api
Installez les dépendances :
pip install -r requirements.txt
(Optionnel) Installez-le en mode développement :
pip install -e .
Configuration
Obtenir une Clé API (Bearer Token)
Rendez-vous sur votre profil Archean Vision.
Créez ou récupérez votre clé API (un token commençant souvent par ...).
Conservez-le précieusement (vous devrez l’utiliser comme Bearer Token).
Utilisation
Une fois la clé API obtenue, vous pouvez l’utiliser pour appeler les endpoints protégés de l’API Archean Vision :
from archeanvision import ArcheanVisionAPI
Remplacez "YOUR_API_KEY" par votre token Bearer
api = ArcheanVisionAPI(api_key="YOUR_API_KEY")
Récupérer la liste des marchés actifs
active_markets = api.get_active_markets() print("Active Markets:", active_markets)
Récupérer les infos du marché BTC (si présent)
if "BTC" in active_markets: market_info = api.get_market_info("BTC") print("Market Info for BTC:", market_info)
Exemple de Code
""" Exemple complet d'utilisation de la librairie ArcheanVision API. Sauvegardez ce fichier sous 'example.py' puis exécutez-le avec : python example.py """
from archeanvision import ArcheanVisionAPI
def main(): # Initialiser l'API avec votre Bearer Token api_key = "YOUR_API_KEY" # Remplacez par votre clé api = ArcheanVisionAPI(api_key)
# 1. Marchés actifs
active = api.get_active_markets()
print("Active Markets:", active)
# 2. Marchés inactifs
inactive = api.get_inactive_markets()
print("Inactive Markets:", inactive)
# 3. Infos d’un marché précis
if "BTC" in active:
btc_info = api.get_market_info("BTC")
print("BTC Info:", btc_info)
# 4. Signaux historiques globaux
all_signals = api.get_all_signals()
print("All Signals (preview):", all_signals[:5])
# 5. Signaux historiques pour un marché
btc_signals = api.get_market_signals("BTC")
print("BTC Signals (preview):", btc_signals[:5])
# 6. Données historiques (24h) d’un marché
btc_data = api.get_market_data("BTC")
print("BTC Data (preview):", btc_data[:5])
if name == "main": main()
Contribuer
Forkez le dépôt.
Créez une branche pour vos modifications : git checkout -b feature/ma-feature.
Commitez vos modifications : git commit -m "Ajout de X ou correction de Y".
Poussez la branche : git push origin feature/ma-feature.
Ouvrez une Pull Request sur GitHub.
Licence
Ce projet est sous licence MIT. Consultez le fichier LICENSE pour plus de détails.
Merci d’utiliser ArcheanVision API ! Pour toute question ou assistance, contactez-nous à support@archeanvision.com.
Dernière mise à jour :jan 2025
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file archeanvision_api-1.0.2.tar.gz.
File metadata
- Download URL: archeanvision_api-1.0.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18153b6166437aa84c1b5ca2697711e97ec0c26099aecace25a5c986698f6fc1
|
|
| MD5 |
f0cbfd8d1e9eb4bdf0be1136575affba
|
|
| BLAKE2b-256 |
3d26818e949de8c252f06c6571fa8006f778dbbd9f2b068ded1df318ed74fb4b
|
File details
Details for the file archeanvision_api-1.0.2-py3-none-any.whl.
File metadata
- Download URL: archeanvision_api-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cc6d3271b0f8e363ed3a54e7d4b0a4553d8a367127bdba67761d3dd65e288c5
|
|
| MD5 |
4de5179fdf20fb5ee748138463a88179
|
|
| BLAKE2b-256 |
3db3c9a55ea35eb128e70d02875b4a656ca1f37a82497ea377c153df5fe09815
|