Library to interact with firefly exchange protocol including its off-chain api-gateway and on-chain contracts
Project description
Firefly Client Library - Python
Python client library to interact with firefly api gateway to place orders on firefly exchange and to interact with on-chain firefly contracts.
How to use
from firefly_exchange_client import FireflyClient
from constants import Networks
from pprint import pprint
def main():
# initialize client
client = FireflyClient(
True, # agree to terms and conditions
Networks["TESTNET_ARBITRUM"], # network to connect with
"0x.....", # private key of wallet
True, # on boards user on firefly. Must be set to true for first time use
)
print('Account Address:', client.get_public_address());
# # gets user account data on-chain
data = client.get_user_account_data()
pprint(data)
Look at example directory to learn more about client usage.
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
Close
Hashes for firefly_exchange_client-0.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 660c1d6c6ad13562b35f2558dc9572622b1c2738168e7c116a62251ee665d818 |
|
MD5 | 9658cee91d1cbd38fba94c50cae57b92 |
|
BLAKE2b-256 | e95f317a9963e001ee994de86b3d27ee8988d0d2945098a9823a609710b6e40d |
Close
Hashes for firefly_exchange_client-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9aa531d231458cdb7b828f469b08a2936f79cada87a28eca00ffa938de3edbb2 |
|
MD5 | 084dcf6106c062f92ab1830f3ae19dbf |
|
BLAKE2b-256 | 2bca1875a24eb42d80ae66f6f07ceed031873f3c99c5927c29696ca0d0d14915 |