Welcome to PySwitcheo¶
pyswitcheo is a simple python client to interact with Switcheo Decentralized Exchange
Installation¶
$ pip install pyswitcheo
Getting Started¶
Client example
import json
from http import HTTPStatus
from pyswitcheo.api import SwitcheoApi
if __name__ == '__main__':
client = SwitcheoApi(base_url="https://test-api.switcheo.network")
resp = client.list_contracts()
if resp.status_code == HTTPStatus.OK:
print(json.loads(resp.text.encode("UTF-8")))
More examples are located at examples
Source code¶
The project is hosted on GitHub
Please feel free to file an issue on the bug tracker if you have found a bug or have some suggestion in order to improve the library.
Dependencies¶
Python 3.5.3+
neo-core
Authors and License¶
The pyswitcheo
package is written by Ankur Srivastava.
It’s MIT licensed and freely available.
Feel free to improve this package and send a pull request to GitHub.