CoinMktCap
1.0.0
Pembungkus Python tidak resmi di sekitar API CoinMarketCap
Pypi
Gunakan perintah berikut untuk menginstal:
pip install CoinMktCapKode Sumber
git clone https://github.com/sarthakkimtani/CoinMktCap.git
cd CoinMktCap
python setup.py install from CoinMktCap import CoinMarketCap
market = CoinMarketCap ( "API_KEY" )
eth = market . cryptocurrency_info ( symbol = "ETH" )
something ( eth . data )Lewati parameter yang diperlukan untuk setiap titik akhir. Rujuk dokumen
| Metode | Definisi | Titik akhir |
|---|---|---|
| cryptocurrency_map | Peta semua mata uang | /cryptocurrency/peta |
| cryptocurrency_info | Info mata uang tertentu | /cryptocurrency/info/ |
| cryptocurrency_latest_listings | Cryptocurrency aktif dengan data pasar terbaru | /cryptocurrency/listing/terbaru |
| cryptocurrency_historical_listings | Cryptocurrency untuk tanggal UTC historis | /cryptocurrency/listing/historis |
| cryptocurrency_latest_quotes | Kutipan pasar terbaru untuk 1 atau lebih cryptocurrency | /cryptocurrency/kutipan/terbaru |
| cryptocurrency_historical_quotes | Kutipan Pasar Bersejarah untuk setiap cryptocurrency | /cryptocurrency/kutipan/historis |
| cryptocurrency_market_pairs | Pasangan pasar aktif untuk cryptocurrency yang diberikan | /cryptocurrrency/pasangan pasar/terbaru |
| cryptocurrency_latest_ohlcv | OHLCV Terbaru (Volume Terbuka, Tinggi, Rendah, Tutup, | /cryptocurrency/ohlcv/terbaru |
| cryptocurrency_historical_ohlcv | OHLCV historis (terbuka, tinggi, rendah, dekat, volume) | /cryptocurrency/ohlcv/historis |
| Exchange_map | Daftar semua pertukaran cryptocurrency aktif | /pertukaran/peta |
| Exchange_info | Metadata statis untuk satu atau lebih pertukaran | /pertukaran/info |
| Exchange_latest_listings | Daftar semua pertukaran cryptocurrency | /pertukaran/daftar/terbaru |
| Exchange_historical_listings | Kutipan Pasar Bersejarah Untuk Pertukaran Apa pun | /pertukaran/daftar/historis |
| Exchange_latest_quotes | Data pasar agregat terbaru untuk 1 pertukaran atau lebih | /pertukaran/kutipan/terbaru |
| Exchange_historical_quotes | Kutipan Bersejarah untuk Pertukaran Apa pun | /pertukaran/kutipan/historis |
| Exchange_market_pairs | Pasangan pasar untuk pertukaran yang diberikan | /pertukaran/pasangan pasar/terbaru |
| GLOBAL_METRICS_LATEST | Metrik pasar cryptocurrency global terbaru | /Global-Metrics/Kutipan/Terbaru |
| Global_Metrics_historical | Metrik pasar cryptocurrency global historis | Global-Metrik/Kutipan/Sejarah |
| Price_conversion_tool | Konversi sejumlah satu cryptocurrency atau mata uang fiat | alat/konversi harga |
| blockchain_latest | Statistik blockchain terbaru | Blockchain/Statistik/Terbaru |
| fiat_map | Pemetaan semua mata uang fiat yang didukung | fiat/peta |
| key_info | Detail Kunci API | kunci/info |
data ( Dikt ): Akan memberi Anda hasilnya.status ( Dikt ): Objek status selalu disertakan untuk panggilan dan kegagalan yang berhasil.timesamp ( STR ): Waktu saat ini di server saat panggilan dieksekusi.error_code ( str | None ): Dalam hal kesalahan telah dinaikkan, properti ini akan memberi Anda kode kesalahan status.error_message ( str | None ): Dalam hal kesalahan telah dinaikkan, properti ini akan memberikan perincian tentang kesalahan. Lisensi MIT