Plugin Decentralized Oracle Price Feed Python Package
Project description
Plugin Feeds : Python Package
Install
pip install py-plugin-feeds
Example to pull the price CIFI/USDT
from web3 import HTTPProvider, Web3
from py_plugin_feeds import get_token_price
def main():
json_rpc_url = "https://rpc-amoy.polygon.technology"
pair = "CIFI/USDT"
web3 = Web3(HTTPProvider(json_rpc_url))
web3.middleware_onion.clear()
result= get_token_price(web3,pair,"latestAnswer")
print("result:::",result)
if __name__ == "__main__":
main()
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
py_plugin_feeds-1.0.1.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file py_plugin_feeds-1.0.1.tar.gz
.
File metadata
- Download URL: py_plugin_feeds-1.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c905a10589e69dbb2b19af8510c3f8d08e0b050d08f1ead2dd2a7388105e426 |
|
MD5 | fab7e362ad3d7b0a59a92aa3b828da91 |
|
BLAKE2b-256 | 1ebfac7f83fb4c6d6473d69a6908e54455c4a3122e078485599277aba841c5db |
Provenance
File details
Details for the file py_plugin_feeds-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: py_plugin_feeds-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c95311737756a6ded164875d987227ba251c1652230426ef86f90491a6569467 |
|
MD5 | 8cac5d0857b2daceb9b5c0744d3f3be3 |
|
BLAKE2b-256 | 4dbd1093d9644f343d797648becb8b6763b15f11f23af5024b62ae418e1e44ce |