No project description provided
Project description
minswap-py (v0.2.1)
minswap-py
is a tool to interact with Minswap. The current version has feature parity with the minswap blockfrost-adapter.
Documentation and additional features coming soon.
This tool was recently used to help generate data for the Minswap DAO Emissions and Treasury report. You can read the report here:
https://minswap.org/storage/2023/06/31-3-2023_Emissions_and_Treasury_Report.pdf
Have a question?
Reach out to me on the Minswap discord. You can usually find me on#technical
, and I'm happy to respond to questions there.
https://discord.com/channels/829060079248343090/845208119729979402
Support
If you find this project useful, please consider supporting the project by buying me a beer in the form of ADA or MIN:
addr1q9hw8fuex09vr3rqwtn4fzh9qxjlzjzh8aww684ln0rv0cfu3f0de6qkmh7c7yysfz808978wwe6ll30wu8l3cgvgdjqa7egnl
Changelog
0.2.1
There are now multiple Minswap pool addresses. This patch updates the code to read all of them when using minswap.get_pools
and subsequent functions that require pool addresses.
v0.2.0
Added CHANGELOG.md :)
Improvements:
- Added a blockfrost rate limiter. Every call to blockfrost adds to a time delayed counter, and prevents running into rate limits. This helps to prevent abuse of the blockfrost API.
- Added significant transaction and asset functionality. It is now possible to pull in asset historys.
Changes:
- There was an inconsistency in how time values were being cached. See the
examples/rename_time.py
for a way to translate previously cached data to the new standard.
Quickstart
In order to use this package:
- Install with
pip install minswap-py
- Sign up for blockfrost and get an API key.
- In your working directory, save a
.env
file. In this file, save your blockfrost API key as follows:
PROJECT_ID=YOUR_BLOCKFROST_ID
Once you do this, you can try out the code in the examples
folder on the Github repository.
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
File details
Details for the file minswap_py-0.2.1.tar.gz
.
File metadata
- Download URL: minswap_py-0.2.1.tar.gz
- Upload date:
- Size: 42.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.11 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaa5bd41d6200ea412d917a1abe7756d0cc9059af6dcc5ae518d246d707dd7fc |
|
MD5 | 8f655452a1839addada50179d3683601 |
|
BLAKE2b-256 | 1d88aeec7c1a69548c0d6c220727e28755c8c8ac464b8d9d96c354fec24efc7b |
File details
Details for the file minswap_py-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: minswap_py-0.2.1-py3-none-any.whl
- Upload date:
- Size: 46.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.11 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fbe69f2fb199cd5641018749d2088da7233e878452f2b3f8a631a81bcb366ef |
|
MD5 | 07a27f8a2e2b6bd46beb2d749acfbbb0 |
|
BLAKE2b-256 | c4fd375d08b8c4f7a24f77cca534aeb7ff9a2ce494a8923452e6b2cd9b8c58a1 |