Streamlit Connection for Google Sheets.
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.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for py_plugin_feeds-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e69a985040d125d3c8d76e2d4db29d1b2c021ee9cf1ffbe5af3c03afe4e153d5 |
|
MD5 | 072402e0fc80ae5e6cbdd611acbbf161 |
|
BLAKE2b-256 | 93ec984a7f59b6bb4b5247f662cf027e7e617fae860c2ef1b11831d324a506d3 |